AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2005.09.08 19:13 "[Tiff] creating JPEG file", by Philip Watkinson
2005.09.08 20:07 "Re: [Tiff] creating JPEG file", by Bob Friesenhahn
2005.09.08 21:00 "RE: [Tiff] creating JPEG file", by Philip Watkinson
2005.09.08 22:11 "Re: [Tiff] creating JPEG file", by Joris Van Damme
2005.09.08 22:31 "Re: [Tiff] creating JPEG file", by Bob Friesenhahn
2005.09.08 23:08 "Re: [Tiff] creating JPEG file", by Joris Van Damme
2005.09.08 20:49 "Re: [Tiff] creating JPEG file", by Joris Van Damme
2005.09.08 23:04 "Re: [Tiff] creating JPEG file", by Bob Friesenhahn
2005.09.08 23:16 "Re: [Tiff] creating JPEG file", by Joris Van Damme
2005.09.09 09:31 "Re: [Tiff] creating JPEG file", by Joris Van Damme
2005.09.09 10:03 "Re: [Tiff] creating JPEG file", by Joris Van Damme
2005.09.09 14:58 "Re: [Tiff] creating JPEG file", by Bob Friesenhahn
2005.09.09 15:11 "Re: [Tiff] creating JPEG file", by Bob Friesenhahn
2005.09.10 17:51 "Re: [Tiff] creating JPEG file", by Andrey Kiselev
2005.09.09 23:30 "Re: [Tiff] creating JPEG file", by Joris Van Damme
2005.09.09 23:49 "Re: [Tiff] creating JPEG file", by Bob Friesenhahn
2005.09.10 00:06 "Re: [Tiff] creating JPEG file", by Joris Van Damme

2005.09.09 14:58 "Re: [Tiff] creating JPEG file", by Bob Friesenhahn

unsigned integer data, unsigned integer data

JPEGTables (289 UNDEFINED): 255, 216, 255, 219, 0, 67, 0, 8, 6, 6,... YCbCrSubSampling (2 SHORT): 2, 2

I've seen YCbCrSubSampling used with YCbCr, of course, and with ITULAB,
and, logically extending it, it could also be used with any other color
space that has a single lightness/brightness channel followed by chroma
channels. But it is not clear to me how it should apply to CMYK. I don't
think this combination makes sense.

That does seem incorrect. As far as I know, this part was done automatically by libtiff (GraphicsMagick did not specifically request subsampling) so it may be that libtiff is doing something wrong with CMYK JPEG compression.

GraphicsMagick is doing something a bit odd though since it uses

   (void) TIFFSetField(tiff,TIFFTAG_JPEGCOLORMODE,JPEGCOLORMODE_RGB);

The only other choice appears to be JPEGCOLORMODE_RAW. Maybe JPEGCOLORMODE_RAW should be used for CMYK?

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/