Login  Register

Option "Enlarge" does not work when using "Rotate" in a "batch-run" macro

Posted by Albert Rover on Jan 14, 2010; 12:46pm
URL: http://imagej.273.s1.nabble.com/Option-Enlarge-does-not-work-when-using-Rotate-in-a-batch-run-macro-tp3689701.html

Hi,

Option "Enlarge Image to Fit Result" does not work when using the
"Rotate function" in a macro that is run in batch mode. The option is
simply ignored. Running the macro without the "-batch" option works as
expected.

Is this a bug or maybe a "design limitation"? Does anybody know a
fix/workaround?

Steps to reproduce:

1. Create the macro text.txt:

image="/tmp/test.jpg"
open(image);
run("Rotate... ", "45 grid=0 interpolation=None enlarge");
save(image);
close();

2. Run:

$ java -jar ./ij.jar -macro /tmp/test.txt -batch


Regards