2017.05.11 17:35 "[Tiff] JPEG compressed RGB tiled TIFF with chroma subsampling", by Yakov Galka

2017.05.11 18:45 "Re: [Tiff] JPEG compressed RGB tiled TIFF with chroma subsampling", by John

Hi, this took me a while to work out too.

Just set TIFFTAG_JPEGCOLORMODE to JPEGCOLORMODE_RGB. This is a pseudo-tag -- it means you are going to supply RGB data, but that the encoder is free to convert to YCBCR and subsample in the usual way.

You need to set it on decompress too I think to make libjpg convert the YCBCR back to RGB for you.

John