2006.03.18 15:59 "[Tiff] old jpeg support", by Mikhail Kruk

2006.03.20 18:13 "Re: [Tiff] 3.8.1 and JPEG problem", by Bob Friesenhahn

I'm getting the following error when trying to process a TIFF file

whith JPEG compression:
none 29213.tif out.tif tiffcp -c

> Assertion failed: sp != 0, file
> ../../tiff-3.8.1-src/libtiff/tif_jpeg.c, line 1524

The file is available here: www.scorch2000.com/~meshko/29213.tif

Using CVS libtiff installed on March 18th, I am able to load this file without problem using development GraphicsMagick on a Sun SPARC workstation.

Note that this is a YCbCr JPEG file. GraphicsMagick uses this option:

   TIFFSetField( tiff, TIFFTAG_JPEGCOLORMODE, JPEGCOLORMODE_RGB );

so that libtiff requests that libjpeg convert the pixels to RGB before returning them to libtiff. This avoids the need for dealing with YCbCr and subsampling in the application.

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