google-code-export / thebigpicture

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

Image is much darker after rewriting #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If a copy of this image is made using TBP, it is much darker in all the
image viewers used. However, according to Exiftool, the metadata is identical.

One thing to note is that this image starts with an APP0 segment.

Original issue reported on code.google.com by p.edel...@gmail.com on 10 Apr 2007 at 3:18

Attachments:

GoogleCodeExporter commented 9 years ago
The GIMP reports the following error:

Corrupt JPEG data: premature end of data segment
EXIF data will be ignored.

The IFD0 segment is also much shorter than in the original (1311 versus 9928 
bytes).

Original comment by p.edel...@gmail.com on 10 Apr 2007 at 3:20

GoogleCodeExporter commented 9 years ago
Apparently, all JFIF files have similar errors (too dark or too light).

Original comment by p.edel...@gmail.com on 10 Apr 2007 at 3:43

GoogleCodeExporter commented 9 years ago
In comment #1, IFD0 should have been APP1. This was caused by a lacking 
thumbnail.
This problem is unrelated to the darkening.

Original comment by p.edel...@gmail.com on 10 Apr 2007 at 5:35

GoogleCodeExporter commented 9 years ago
The problem was due to two bytes missing at the start of the image data. The 
image
data is found after the SOS segment, but for some reason the Jpeg writer 
skipped two
bytes at the end of the this marker.

Apparently, non-JFIF file could cope with this, but JFIF can't.

Original comment by p.edel...@gmail.com on 10 Apr 2007 at 8:36