Writing filesΒΆ
The loci.formats.IFormatWriter API is very similar to the reader API, in that files are written one plane at time (rather than all at once).
The file formats which can be written using Bio-Formats are marked in the supported formats table with a green tick in the ‘export’ column. These include, but are not limited to:
- TIFF (uncompressed, LZW, JPEG, or JPEG-2000)
- OME-TIFF (uncompressed, LZW, JPEG, or JPEG-2000)
- JPEG
- PNG
- AVI (uncompressed)
- QuickTime (uncompressed is supported natively; additional codecs use QTJava)
- Encapsulated PostScript (EPS)
- OME-XML (not recommended)
All writers allow the output file to be changed before the last plane has been written. This allows you to write to any number of output files using the same writer and output settings (compression, frames per second, etc.), and is especially useful for formats that do not support multiple images per file.
See also
- IFormatWriter
- Source code of the
loci.formats.IFormatWriter
interface - loci.formats.tools.ImageConverter
- Source code of the
loci.formats.tools.ImageConverter
class - Further details on exporting raw pixel data to OME-TIFF files
- Examples of OME-TIFF writing