google-code-export / thebigpicture

Automatically exported from code.google.com/p/thebigpicture
1 stars 1 forks source link

Read multiple similar segments in JPEG #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Both EXIF data and XMP data are in JPEG stored in an APP1 segment, each
with a different intro string. So it is possible to have multiple segments
with the same number in JPEG.

The JPEG reader and writer do not account for this, and take the latest
read segment.

Original issue reported on code.google.com by p.edel...@gmail.com on 12 Mar 2007 at 6:22

GoogleCodeExporter commented 9 years ago

Original comment by p.edel...@gmail.com on 13 Mar 2007 at 6:05

GoogleCodeExporter commented 9 years ago

Original comment by p.edel...@gmail.com on 13 Mar 2007 at 6:57

GoogleCodeExporter commented 9 years ago
This is now handled by a dict with the possible segment types as keys and a 
list of
associated segments as vars. The small drawback is that the read order of the
segments is lost (the read order of similar segments is kept). The library thus 
needs
to become a bit more intelligent about the structure of JPEG files :)

Original comment by p.edel...@gmail.com on 13 Mar 2007 at 10:45