2005.01.07 20:18 "[Tiff] JPEG (T.30-E, fax) in TIFF", by Lee Howard

2005.01.21 22:19 "Re: [Tiff] JPEG (T.30-E, fax) in TIFF", by Lee Howard

You should set at least one of these two tags: ImageHeight or RowsPerStrip. If you skip both libtiff makes assumption that you have a strip for every component. I don't know why libtiff operates in such way, probably there was some reasoning in the first place. So just set the ImageHeight and problem should go away.

I think that you meant ImageLength.

In any case, I was using ImageLength, but I wasn't using it before SamplesPerPixel. After doing an additional "dummy" call to TIFFSetField(tif, TIFFTAG_IMAGELENGTH, 2000) just before setting SamplesPerPixel the problem goes away.

Thank you for your help.

Lee.