AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2004.02.02 23:28 "[Tiff] unknown tags, tiffcp makes invalid copies", by Mark McConnell
2004.02.03 07:46 "Re: [Tiff] unknown tags, tiffcp makes invalid copies", by Andrey Kiselev
2004.02.05 10:18 "Re: [Tiff] unknown tags, tiffcp makes invalid copies", by Andrey Kiselev
2004.02.05 17:25 "Re: [Tiff] unknown tags, tiffcp makes invalid copies", by Mark McConnell
[...]

2004.02.02 23:28 "[Tiff] unknown tags, tiffcp makes invalid copies", by Mark McConnell

Please bear with me if this question has been answered elsewhere.

Is there a way to cause tiffcp to make copies with a valid format, even if it encounters unknown tags?

I am trying to use tiffcp on files which contain unknown tags 32931 and 32934. The resulting copy has an invalid format, which can't be opened by an image viewer.

Software (305) ASCII (2) 25<Oi/GFS, writer v00.07.00 ...> 32931 (0x80a3) UNDEFINED (7) 24<0x85 0x6 0x62 0x8d 0x5b 00 0x3e 0x4d 0xb2 0x83 0xd4 0x1f 0x16 0x2a 0xa1 0x61 0x60 0xc6 0x1d 0x91

0x47 0xe6 0xc3 0x1>
32934 (0x80a6) LONG (4) 1<0>

The same thing happens with files containing the unknown tag 3000:

Software (305) ASCII (2) 56<Kofax standard Multi-Pag ...>
DateTime (306) ASCII (2) 20<2003:12:02 12:32:56\0>
33000 (0x80e8) SHORT (3) 1<0>

Following, is the output of tiffdump for the copies made in the first case, followed by the second case (although, I'm not sure that it's informative):

-bash-2.05b$ tiffdump 32931.tif

32931.tif:
Magic: 0x4949 <little-endian> Version: 0x2a
Directory 0: offset 62362 (0xf39a) next 0 (0)
SubFileType (254) LONG (4) 1<0>
ImageWidth (256) SHORT (3) 1<1690>
ImageLength (257) SHORT (3) 1<2796>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
FillOrder (266) SHORT (3) 1<2>
StripOffsets (273) LONG (4) 19<8 2223 6323 9606 13480 15793 19960
20744 23910 26729 29918 32829 37720 42812 46697 50423 55391
59300 62255>
Orientation (274) SHORT (3) 1<1>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) SHORT (3) 1<149>
StripByteCounts (279) LONG (4) 19<2215 4100 3283 3874 2313 4167
784 3166 2819 3189 2911 4891 5092 3885 3726 4968 3909 2955 106>
XResolution (282) RATIONAL (5) 1<200>
YResolution (283) RATIONAL (5) 1<200>
PlanarConfig (284) SHORT (3) 1<1>
Group4Options (293) LONG (4) 1<0>
ResolutionUnit (296) SHORT (3) 1<2>

Software (305) ASCII (2) 25<Oi/GFS, writer v00.07.00 ...>

-bash-2.05b$ tiffdump 3000.tif

3000.tif:
Magic: 0x4949 <little-endian> Version: 0x2a
Directory 0: offset 22122 (0x566a) next 0 (0)
SubFileType (254) LONG (4) 1<0>
ImageWidth (256) SHORT (3) 1<1696>
ImageLength (257) SHORT (3) 1<2779>
BitsPerSample (258) SHORT (3) 1<1>
Compression (259) SHORT (3) 1<4>
Photometric (262) SHORT (3) 1<0>
Threshholding (263) SHORT (3) 1<1>
FillOrder (266) SHORT (3) 1<2>
StripOffsets (273) LONG (4) 1<8>
Orientation (274) SHORT (3) 1<1>
SamplesPerPixel (277) SHORT (3) 1<1>
RowsPerStrip (278) SHORT (3) 1<2779>
StripByteCounts (279) LONG (4) 1<22113>
XResolution (282) RATIONAL (5) 1<200>
YResolution (283) RATIONAL (5) 1<200>
PlanarConfig (284) SHORT (3) 1<1>
ResolutionUnit (296) SHORT (3) 1<2>
Software (305) ASCII (2) 56<Kofax standard Multi-Pag ...>
DateTime (306) ASCII (2) 20<2003:12:02 12:32:56\0>

Mark McConnell
        mkmcconn@hevanet.com