gifencoder

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

gifencoder

Aman Goel
Hi,

       I am looking for a image format converter from common formats
(e.g. jpg, bmp, png) to gif. I have to use it as part of an automatic
process, so I cannot use the gui. The documentation mentions GifEncoder
and its write method in the ij.io package. When I compiled the source, I
didn't see the class in the io package. I did find it in the plugin
package, but it doesn't have the write method. Also, it isn't public but
exists in the file GifWriter.java in plugin folder.

       I am using the latest source ij140d-src.zip. Can I find this
class somewhere ? Has it been removed from the source ? Your suggestions ?

Thanx,
aman
Reply | Threaded
Open this post in threaded view
|

Re: gifencoder

Wayne Rasband
>       I am looking for a image format converter from common formats
> (e.g. jpg, bmp, png) to gif. I have to use it as part of an automatic
> process, so I cannot use the gui. The documentation mentions
> GifEncoder and its write method in the ij.io package. When I compiled
> the source, I didn't see the class in the io package. I did find it in
> the plugin package, but it doesn't have the write method. Also, it
> isn't public but exists in the file GifWriter.java in plugin folder.
>
>       I am using the latest source ij140d-src.zip. Can I find this
> class somewhere ? Has it been removed from the source ? Your
> suggestions ?

ImageJ uses the ij.plugin.GifWriter class to save images in GIF format
and stacks as animated GIFs. To save the current image or stack in GIF
format use IJ.saveAs("gif", path). The Batch Converter plugin
(http://rsb.info.nih.gov/ij/plugins/batch-converter.html) saves a
folder of images in any format supported by ImageJ's File>Open command
in TIFF, 8-bit TIFF, JPEG, GIF, PNG, PGM, BMP, FITS, Text Image, ZIP or
Raw format.

-wayne