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

2006.02.02 13:54 "Re: [Tiff] RowsPerStrip", by Harsha

Hello Frank,
  Thanks for the eMail.

I found TIFF_STRIPCHOP in tiff_config.h. Now I know why my strip won't grow more than 8KB. But if some one want to increase the size of the Strip then what he/she should do. Could you please exaplain how to disable or increase the size when one is using LibTiff.lib library.

Thanks and Regards
Harsha

Frank Warmerdam <warmerdam@pobox.com> wrote:
  On 1/31/06, Harsha 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.

Harsha,

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.

---------------------------------
Do you Yahoo!?
 With a free 1 GB, there's more in store with Yahoo! Mail.