2009.12.10 18:28 "[Tiff] YCbCr", by Steve Mills

2009.12.11 18:37 "Re: [Tiff] YCbCr", by Antonio Scuri

I don't think so. Because the logic will set downsampled_output to TRUE only if h_sampling!=1, and that happen only for YCBCR.

If you want to debug the code, add a breakpoint at the line where "downsampled_output = FALSE;" in "tif_jpeg.c". If it sets "downsampled_output = TRUE;" then the output is donwsampled.

If you send me a sample, I can test your image here if I can read it. The test I have supports CMYK images.

Best,
scuri

> -----Original Message-----
> From: tiff-bounces@lists.maptools.org [mailto:tiff-
> bounces@lists.maptools.org] On Behalf Of Steve Mills

On Dec 11, 2009, at 10:15:39, Antonio Scuri wrote:

As Joris pointed out, you actually get Y Cb and Cr planes. So the first component, that looks red, is infact Y, and indeed has the correct size. But the Cb and Cr planes are downsampled. At least this is what I got here.

What if the file is jpeg-compressed cmyk? The TIFFTAG_PHOTOMETRIC tag says it's cmyk, not YCbCr. I expect cmyk data in this case, but it sure doesn't look correct.