2006.01.31 10:17 "[Tiff] RowsPerStrip", by Harsha

2006.01.31 13:07 "Re: [Tiff] RowsPerStrip", by Frank Warmerdam

On 1/31/06, Harsha <hmt34@yahoo.com> wrote:

Dear all,

I have created a Tiff Image of Width 100 and Height 400. I set the Rows Per Strip as 400.

So If I am not wrong, I have only one strip which contains 400 Rows i.e, Only one strip. I have Tiff Tag Vieer from Lead Tools. Which shows Rows Per Strip as 400. Manually, I open the Tiff file in Binary mode and searched for number 278 (i.e., 16 01 03 00 01 00 00 00 90 01 00 00) and RowsPerStrip is 400. But When I asked for RowsPerStrip using LibTiff I received 81.


Because one-strip TIFF files can be dangerous for applications that assume a single strip is modest sized and can be loaded into RAM, there is special support in libtiff to dynamically split strips up in some cases.

This is what is happening to you.

If you look in tif_config.h (or tiffconf.h?) you will find a setting for the STRIPCHOP_DEFAULT macro. This setting controls whether libtiff does strip chopping by default.

Best regards,

I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent