2004.12.08 02:35 "[Tiff] Q: writing tiled TIFFs", by Chris Losinger

2004.12.10 21:41 "Re: [Tiff] Q: writing tiled TIFFs", by Andrey Kiselev

Are you properly padding stuff, so as to end up with 256 lines of 256 pixels? If not, you ought to.

yes. i'm copying squares out of my source image into a 256x256 buffer (doing what amounts to an image overlay of the source onto the tile buffer - so the tile buffer maintains its 256x256 nature and the overlayed image only covers a part of the tile buffer). then i pass that to TIFFWriteTile.

  1. Do you need a TIFFWriteTile() function? Probably TIFFWriteEncodedTile() may better suit for your needs.
  2. You should use cropped buffer in your case (this is also happens when you write the last tile in a strip or column). Data in the buffer will be contiguous, i.e. after the end of the first scanline you should start the second one without any NULL bytes or so.


Andrey V. Kiselev
Home phone: +7 812 5970603 ICQ# 26871517