AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
January 2005

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2005.01.27 15:26 "TIFFSetField bug?", by <melser.anton@gmail.com>
2005.01.27 18:00 "Re: TIFFSetField bug?", by Bob Friesenhahn
2005.01.27 18:35 "Re: TIFFSetField bug?", by <melser.anton@gmail.com>
2005.01.27 19:59 "Re: TIFFSetField bug?", by <melser.anton@gmail.com>
2005.01.27 20:16 "Re: TIFFSetField bug?", by Bob Friesenhahn
2005.01.27 20:05 "Re: TIFFSetField bug?", by <melser.anton@gmail.com>

2005.01.27 19:59 "Re: TIFFSetField bug?", by <melser.anton@gmail.com>

This is from the manpage of TIFFSetField:

...
TIFFTAG_ROWSPERSTRIP            1      uint32             - must be > 0
...

So I can therefore only conclude that when I call this in my hacked tiffcp:

TIFFSetField(out, TIFFTAG_ROWSPERSTRIP, 8192);

and get:

antt@tux tools $ ./tiffdump testout.tif
testout.tif:
Magic: 0x4949 <little-endian> Version: 0x2a
Directory 0: offset 49640 (0xc1e8) next 0 (0)
SubFileType (254) LONG (4) 1<2>
ImageWidth (256) SHORT (3) 1<2489>
ImageLength (257) SHORT (3) 1<3507>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
FillOrder (266) SHORT (3) 1<1>
StripOffsets (273) LONG (4) 1<8>
Orientation (274) SHORT (3) 1<1>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) SHORT (3) 1<8192>
StripByteCounts (279) LONG (4) 1<49632>
XResolution (282) RATIONAL (5) 1<300>
YResolution (283) RATIONAL (5) 1<300>
PlanarConfig (284) SHORT (3) 1<1>
Group4Options (293) LONG (4) 1<0>

That this must be a bug. I would love to have my pitiful knowledge of c 
shown to be the problem!

Cheers
Antoine