ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Leonard WHYTE on July 17, 2021, 03:38:47 AM

Title: Reporting JPEG APP1 segment length error
Post by: Leonard WHYTE on July 17, 2021, 03:38:47 AM
Attached is a jpg file (together with the htmldump0 output for easy reading).
My belief is, that this file contains an error in the APP1 length/size which is 0xdfca but should be 0xdfea, since the next segment APP2 starts at 0xe000.
I'm disappointed that the exiftool -a -u -G -H output (also attached) does not appear to contain any "warning" or "error" about this.

Is there a way I can get this situation to be reported?
Title: Re: Reporting JPEG APP1 segment length error
Post by: Phil Harvey on July 17, 2021, 07:19:25 AM
Interesting, thanks.

This is perfectly valid according to the JPEG specification, but it does make sense to issue a minor warning for this.  So ExifTool 12.30 will give the following warning for this file:

Warning: [minor] Skipped unknown 32 bytes after JPEG APP1 segment

- Phil
Title: Re: Reporting JPEG APP1 segment length error
Post by: Leonard WHYTE on July 18, 2021, 12:29:27 AM
Phil, That sounds like a suitable resolution.  BTW, will it just be an APP1 check, or will the "Skipped" warning be generated for all segments that are short-sized?  Len
Title: Re: Reporting JPEG APP1 segment length error
Post by: Phil Harvey on July 18, 2021, 06:25:36 AM
For any segment.

- Phil