2019.12.09 21:07 "Re: [Tiff] help writing RGB TIFF", by Yakov Galka
On Mon, Dec 9, 2019 at 12:19 PM Paul Hemmer <paulhemmer@hotmail.com> wrote:
> TIFFSetField(tiff_handle, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG)
>
You seem to be using a planar configuration here. TIFF spec has this to say about it:
PlanarConfiguration=2 is not currently in widespread use and it is not > recom-mended for general interchange. It is used as an extension and > Baseline TIFFreaders are not required to support it.
>
Which translates into "expect funky behavior by other software when using this feature".
I recommend you convert your planar data into interleaved format, which is really straightforward to do, and save that into "chunky" (aka non-planar) TIFF, which is the baseline default.
--
Yakov Galka
http://stannum.co.il/