Skip to content

ExifTool trips over SHORT-typed StripOffsets values in TIFF files #52

@marhop

Description

@marhop

Hi,

ExifTool 12.00 seems to have a problem with StripOffsets pointers in TIFF files if they have type SHORT instead of LONG (both are permitted by the TIFF 6.0 spec).

Consider the attached files:

  • stripoffsets-short-0.tif has three StripOffsets values of type SHORT (source)
  • stripoffsets-long-0.tif is the same file with exactly one difference: the three StripOffsets values have type LONG

Writing some tag to these files (I used exiftool -ISO=42) results in these files:

  • stripoffsets-short-1.tif is damaged, it has three StripByteCounts values (0 16448 8100, first one is zero?!) but only two StripOffsets values (248 8348); the file cannot be displayed by various viewers and exiftool -validate -warning -a issues matching warnings:
    • Wrong number of values in IFD0 0x0111 StripOffsets
    • Oversized IFD0 StripByteCounts (24548 bytes, but expected 24300)
  • stripoffsets-long-1.tif is OK though

Any idea what's going wrong here?

Thanks,
Martin

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions