Hi,
You are right that I can use a macro, although it is a little clumsy.
Here is what I do:
imagej filename -run command -macro SaveJpeg.txt
I wrote the following macro:
// Save As JPEG
macro "SaveJPEG" {
saveAs("jpeg", getDirectory("image") + getTitle());
close();
}
Gabriel Lapointe wrote:
> 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
>>
>