openpreserve / jhove

File validation and characterisation.
http://jhove.openpreservation.org
Other
161 stars 78 forks source link

TIFF Tag 41728 wrong value expected, file declared not well-formed #900

Open jens-st opened 4 months ago

jens-st commented 4 months ago

This was already mentioned in https://github.com/openpreserve/jhove/issues/767 (closed) but it is not yet fixed in version 1.28.0 (TIFF-HUL 1.9.4).

We process sometimes images with EXIF tag FileSource (41728 / 0xA300) set. Jhove expects the value 7 and declares the file Not well-formed if not found. This is incorrect AFAIK, the specification default is 3 (to indicate a digital camera as source). Other values are also valid indicating a different file sources.

$> jhove -m TIFF-hul 00001442.tif 
Jhove (Rel. 1.28.0, 2023-05-18)
 Date: 2024-02-16 11:03:06 MEZ
 RepresentationInformation: 00001442.tif
  ReportingModule: TIFF-hul, Rel. 1.9.4 (2023-03-16)
  LastModified: 2024-02-16 10:05:53 MEZ
  Size: 10254812
  Format: TIFF
  Status: Not well-formed
  SignatureMatches:
   TIFF-hul
  ErrorMessage: Type mismatch for tag 41728; expecting 7, saw 3
   ID: TIFF-HUL-7
  MIMEtype: image/tiff

Exif specification 2.32

* FileSource
Indicates the image source. If a DSC recorded the image, this tag value always shall be set to 3.
Tag = 41728 (A300.H)
Type = UNDEFINED
Count = 1
Default = 3
0 = others
1 = scanner of transparent type
2 = scanner of reflex type
3 = DSC
Other = reserved