2004.06.01 07:59 "RE: [Tiff] Tiff last tile problems", by Adell, Albert
You are right. I had a bug in the code, libtiff works correctly. Sorry for the trouble and thanks a lot,
From: Andrey Kiselev [mailto:firstname.lastname@example.org] Sent: Friday, May 28, 2004 10:58 PM To: 'email@example.com' Subject: Re: [Tiff] Tiff last tile problems
On Fri, May 28, 2004 at 08:26:18AM +0200, Adell, Albert wrote:
I'm using the LibTiff library with this sequence:
Open Tiff non-compressed A
Create a Tiff compressed B
Do while (exist tile)
copyTile A to B
then the last tile of output tiff is filled up with black data. This behaviour only appears sometimes in release version, not in debug. Trying to look a work around, we use the flush operation (even it is written at the documentation that it is not necessary) but the behavior is the same.
What about a bit of real code you are using? libtiff should work fine using the above algorithm, probably you have a bug in your code (or it is a subtle problem in libtiff).