-
2008.09.23 16:57 "Re: [Tiff] New to list, with a query on TIFFTAG_GDAL_METADATA", by Frank Warmerdam
- 2008.09.24 08:18 "Re: [Tiff] New to list, with a query on TIFFTAG_GDAL_METADATA", by David J Taylor
- 2008.09.24 08:44 "Re: [Tiff] New to list, with a query on TIFFTAG_GDAL_METADATA", by David J Taylor
- 2008.10.22 23:31 "Re: [Tiff] JPEGSetupEncode messages", by Raphaël_Lemoine
2008.10.23 13:44 "Re: [Tiff] JPEGSetupEncode messages", by Bob Friesenhahn
> JPEGSetupEncode: RowsPerStrip must be multiple of 8 for JPEG
I would suggest selecting a RowsPerStrip value that is a multiple of 8.
This is the logic I am using in GraphicsMagick:
case COMPRESSION_JPEG:
{
/*
RowsPerStrip must be multiple of 8 for JPEG. */ rows_per_strip=rows_per_strip+(8-(rows_per_strip % 8)); (void) TIFFSetField(tiff,TIFFTAG_JPEGQUALITY,image_info->quality); if (IsRGBColorspace(image->colorspace))
(void) TIFFSetField(tiff,TIFFTAG_JPEGCOLORMODE,JPEGCOLORMODE_RGB); if (bits_per_sample == 12)
(void) TIFFSetField(tiff,TIFFTAG_JPEGTABLESMODE,JPEGTABLESMODE_QUANT); break;
}
Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/