diff options
author | Tomas Farago <sensej007@email.cz> | 2019-03-25 12:39:33 +0100 |
---|---|---|
committer | Tomas Farago <sensej007@email.cz> | 2019-03-25 12:39:33 +0100 |
commit | bb1dddf2714210c96781023731e6d97350abd563 (patch) | |
tree | e5d9c9663f3fe6ab5c89fb588db5fec66d9a5d1a /src | |
parent | 325b26c78b43d1f4d0c90f323b39fd53cff94ae5 (diff) | |
download | ufo-filters-bb1dddf2714210c96781023731e6d97350abd563.tar.gz ufo-filters-bb1dddf2714210c96781023731e6d97350abd563.tar.bz2 ufo-filters-bb1dddf2714210c96781023731e6d97350abd563.tar.xz ufo-filters-bb1dddf2714210c96781023731e6d97350abd563.zip |
tiff writer: Add photometric tag
so that we can open multitiff series by using the bio-format in ImageJ.
Diffstat (limited to 'src')
-rw-r--r-- | src/writers/ufo-tiff-writer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/writers/ufo-tiff-writer.c b/src/writers/ufo-tiff-writer.c index d6cdefb..cf332b4 100644 --- a/src/writers/ufo-tiff-writer.c +++ b/src/writers/ufo-tiff-writer.c @@ -94,6 +94,7 @@ ufo_tiff_writer_write (UfoWriter *writer, TIFFSetField (priv->tiff, TIFFTAG_IMAGELENGTH, image->requisition->dims[1]); TIFFSetField (priv->tiff, TIFFTAG_SAMPLESPERPIXEL, is_rgb ? 3 : 1); TIFFSetField (priv->tiff, TIFFTAG_ROWSPERSTRIP, TIFFDefaultStripSize (priv->tiff, (guint32) - 1)); + TIFFSetField (priv->tiff, TIFFTAG_PHOTOMETRIC, PHOTOMETRIC_MINISBLACK); /* * I seriously don't know if this is supposed to be supported by the format, |