2012.12.18 20:56 "[Tiff] decoding tiff images with ycbcr and jpeg compression", by swagat mishra

2012.12.18 20:56 "[Tiff] decoding tiff images with ycbcr and jpeg compression", by swagat mishra

hi,

I am trying to decode the quad-jpeg.tif image with the TiffReadRgbaImage
interface. My libtiff version is 4.0.2 and it is compiled with support for
jpeg,lzw,libz and other compression schemes.
TiffReadRgbaImage returns true but i get a completely black image,instead
of the actual image.

I went through previous posts on the mailing list and it seems this is a bug in 4.x.x. Suggested fix was to set tiff tag JPEGCOLORMODE to RGB. However that did not work.

Can anyone help me with this?

Regards,
Swagat