When saving images to compressed TIFF format in Fiji, there’s the way via Bio-Formats Exporter that offers the following compression formats:
(see also this related topic: Save compressed Tiff in ImageJ)
I noticed that in the source code, there seem to be a few more implementations that aren’t exposed in the GUI:
As I was planning to access the Java API via scripting (e.g. in Groovy) anyhow, I was searching for examples how to write to compressed tiff via the Bio-Formats and/or SCIFIO APIs, and ended up looking at this code in a test class for the different compression options:
Is saving via a
byte array the way to go, or are there any higher-level API calls available? Are there any more concise examples how to save compressed images via the Java API (maybe in another gist by @ctrueden )?
I would also be interested in an example using SCIFIO API, if that exists somewhere.