2004.10.20 18:40 "[Tiff] the BitsPerSymbol tag", by Sachin Garg

2004.10.21 05:49 "Re: [Tiff] the BitsPerSymbol tag", by Sachin Garg

I am actually using the read/write buffer routines from tiffcp. Do these routines return a padded version of image data as described by you above (with pad size determinable from single td_bitspersample value)?

If you try to process a TIFF file with mixed sample sizes, I believe any libtiff tool will just fall over dramatically. I'm not sure, i don't think I have any examples of such files.

Based on that, I don't think there is a meaningful answer for the rest of your questions, but feel free to repose them if I have missed your point.

No, you havent missed the point.

But I was just wondering if there is some way for my program to gracefully exit, instead of dying with a memory-crash etc... One option I can think of is a warning/error when reading the BitsPerSample if its found to be different for different samples.

I think it will be better if it is added in libtiff, instead of me adding it in my copy.

Thanks.

Sachin Garg [India]
http://www.geocities.com/schngrg