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

2004.12.08 02:51 "Re: [Tiff] Q: writing tiled TIFFs", by Bob Friesenhahn

is there a simple tutorial for writing tiled TIFFs? i've looked at the sample apps, but i'm not quite sure what all is going on in there. you C guys sure do hate whitespace and passing parameters where a global variable will suffice!

the Tile Oriented TIFF I/O notes (http://www.remotesensing.org:16080/libtiff/libtiff.html#Tiles) only covers the "I" part of "I/O".

I don't know about a tutorial, but feel free to check out how GraphicsMagick does it. You can view the source file on-line at "http://cvs.graphicsmagick.org/cgi-bin/cvsweb.cgi/GraphicsMagick/coders/tiff.c".

Unfortunately, I must admit that the 'O' part of this code does not actually get executed at the moment since a flag is not being set. It is part of the Pyramid TIFF support. Re-enabling the code is on my list of things to do.

In particular, look at the TIFFWritePixels() function.

Bob

======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us
http://www.simplesystems.org/users/bfriesen