Bug #628

exiv2 puts comments directly after SOI

Added by Andreas Huggel about 8 years ago. Updated almost 8 years ago.

Status:ClosedStart date:27 Apr 2009
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:jpeg parser
Target version:0.18.2

Description

Reported by Johannes Hofmann
http://www.ecademix.com/JohannesHofmann/gipfel.html

I just noticed an issue with JPEG comments.
exiv2 puts a comment directly after the SOI.
If I interpret the Exif standard correctly, the exif marker
should be first. Also the fltk library (www.fltk.org) no longer
recognizes the resulting image.

hofmann@blob:/tmp >hexdump -C test.jpg | head -n 1
00000000 ff d8 ff e1 ff fe 45 78 69 66 00 00 4d 4d 00 2a |ÿØÿáÿþExif..MM.*|
hofmann@blob:/tmp >exiv2 -c foo test.jpg
hofmann@blob:/tmp >hexdump -C test.jpg | head -n 1
00000000 ff d8 ff fe 00 06 66 6f 6f 00 ff e1 ff fe 45 78 |ÿØÿþ..foo.ÿáÿþEx|

Associated revisions

Revision 1785
Added by Andreas Huggel about 8 years ago

#628: Write COM segment (JPEG comment) last, after all APPn segments.

Revision 1787
Added by Andreas Huggel about 8 years ago

#628: Improved version: insert comments just before SOFn. Updated test cases accordingly.

History

#1 Updated by Andreas Huggel about 8 years ago

I agree that the resulting files are probably not "Exif images" according to the Exif standard.

In practice, such not-quite-JFIF JPEG files with or without an Exif APP1 segment are quite common, this is the first time I hear it upsets a JPEG image reader.

#2 Updated by Andreas Huggel about 8 years ago

  • Status changed from New to Resolved

#3 Updated by Andreas Huggel about 8 years ago

  • % Done changed from 0 to 100

#4 Updated by Andreas Huggel almost 8 years ago

  • Target version set to 0.18.2

#5 Updated by Andreas Huggel almost 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux