Login  Register

Re: save macro

Posted by Rasband, Wayne (NIH/NIMH) [E] on Feb 23, 2011; 3:46am
URL: http://imagej.273.s1.nabble.com/save-macro-tp3685574p3685575.html

On Feb 22, 2011, at 5:39 PM, Robert Baer wrote:

> I recently pulled out a plug-in (rather large set of of routines that someone else wrote) that analyzes some gray scale images in a series of steps.  The last time I used the plug-in was in the ImageJ 1.43 era, I think, and everything seemed to work well at the time.
>
> Now the plug-in gets part way through its processing of image 1, and halts with an image window showing, and it pops up the dialog box saying, "The save() macro function requires a file name extension."
>
> Since there are numerous .java files associated with this process, I was hoping someone might verify: 1) whether there indeed have been any changes to ImageJ code that might have induced this behavior?  and  2) how a call to the save() macro is likely to appear in the .java associated with the plug-in code.  Would it look like IJ.macro("fname") or something else?
>
> It could be my problems with the plug-in lie elsewhere in ways I don't yet understand.  Any other general debugging tricks to share?  I don't do much code development.

The IJ.save(path) method displays a "The save() macro function requires a file name extension." error message if the file path does not have an extension. Starting with the 1.45c2 daily build, it saves in TIFF format rather than displaying this error message.

-wayne