2009.12.07 16:06 "[Tiff] Problems with multiple strip G4 to single strip G4 tiff.", by Phillip Wiles

2010.01.09 01:14 "Re: [Tiff] me again...", by Bob Friesenhahn

I am not sure if in either of

TIFFSetField(out, TIFFTAG_SAMPLESPERPIXEL, 1);

TIFFSetField(out, TIFFTAG_BITSPERSAMPLE, 1);

>  

the 1 should be 8. I tried all of them but the program always stops at the same point. any more suggestions? Please help!

If you are not willing to adjust your data, then you can set TIFFTAG_BITSPERSAMPLE to match the actual type you are using. For example, if your data is stored in 'unsigned char' then you could set TIFFTAG_BITSPERSAMPLE to 8 even though it is 8X less space efficient than using a bit-map.

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