TIFF and LibTiff Mail List Archive


2011.04.12 02:06 "[Tiff] Libtiff v4.0.0beta7 released", by Bob Friesenhahn
2011.06.01 10:43 "Re: [Tiff] Write Tile", by Jorge Martin
2011.05.31 10:54 "[Tiff] Write Tile", by Jorge Martin
2011.06.01 13:21 "Re: [Tiff] Write Tile", by Olivier Paquet

2011.06.01 13:21 "Re: [Tiff] Write Tile", by Olivier Paquet

On Wed, Jun 1, 2011 at 6:43 AM, Jorge Martin <> wrote:

Now I have another problem writting tiles. When I open the ouput TIFF there are strange issues in all the tiles located in the left parte of the image, the rest of the image is right. I think that the problem is why the image is 3659x701 and the tiles are 128x128, so there are not an integer number of tiles, If I change the Image size in order to have a integer number of tile

You should write all tiles at the same size, even the ones on the edge of the image which are not fully used. Your code seems to clamp the size of these tiles which is not how libtiff expects the data. eg. If your last tile is 67x128, libtiff expects a 128x128 tile with the data in the first 67 pixels of each row.