Login  Register

Re: Command line non-interactive save as jpeg

Posted by Gabriel Lapointe on Jul 28, 2009; 5:19pm
URL: http://imagej.273.s1.nabble.com/Command-line-non-interactive-save-as-jpeg-tp3691640p3691641.html

Hello Jon,
From the macro recorder:
saveAs("Jpeg", "/path/fileName.jpg");

in a macro it works without bringing a dialogue. However, if you don't
put the filename as an option it will bring a dialogue box.

Gabriel Lapointe

Jon Harman wrote:

> Hi,
>
> I would like to use the ImageJ command line to process an image then
> save it as a jpeg.  Is there any command I can run to save the file
> that will not require any user input.  I want to do something like:
> imagej filename -run command -run Jpeg...
> But this brings up a saveas dialog.
>
> Jon
>