2011.04.12 02:06 "[Tiff] Libtiff v4.0.0beta7 released", by Bob Friesenhahn

2011.05.31 13:02 "Re: [Tiff] Write Tile", by Edward Lam

Hi Jorge,

On 31/05/2011 6:54 AM, Jorge Martin wrote:

I am trying to write a tiled TIFF file but the

function TIFFWriteTile is always returning "Can not write tiles to a stripped image" I have set the fields Tilewidth and TileLength and I do

not know what is happening because I did not set any field about the

strips.

How can I solve this issue? I pasted some code that I used to write the TIFF:

 //TILES INFO

>      TIFFGetField(OutTIFF, TIFFTAG_TILEWIDTH, 128);
>      TIFFGetField(OutTIFF, TIFFTAG_TILELENGTH,  128);

Since you're writing the TIFF file, shouldn't you use TIFFSetField() here? This might explain why libtiff thinks you're using the stripped interface instead of the tile interface.

Best Regards,

-Edward