Hi again :) Took one of the high quality picture download Exif files. Wrote a small program that writes a new JFIF header to a file, extracts the picture data from the Exif, and inserts it into the new file. The new file is a normal JPEG. No extra data after the EndOfImage marker, and nothing more than a small JFIF header and JPEG data. The picture data however is still exactly what the camera sent, we do not alter the data in any way, leaving the user to use his/her favourite image manipulation programs to do the whatever changes they want to make :) It opens in all image programs perfectly, they do not crash (anymore :), it looks like just a normal fine JPEG. The *only* thing is: Corrupt JPEG data: 47 extraneous bytes before marker 0xd9 0xd9 is the EndOfImage marker. If I take this file, and leave out the 47 bytes before the 0xd9 marker, I get the same JPEG on screen (i.e. not corrupted), but also not any error messages anymore. However many pictures somehow show some errors (i.e. from webpages and stuff), no viewer program should have problems with it. I will read up on the JPEG specs and see if there is a way for us to detect any extraneous bytes at the end, and strip them out. Possibly the camera *always* has the same number of extra bytes, that'd be even easier to fix !! 114835 09-09 13:03 image3.jpg 141312 09-08 22:31 ../picture3.jpg So JPEG is about 30k smaller (thumbnail info is stripped out). We are getting there! DennisReceived on Mon Sep 09 2002 - 12:25:09 CEST
This archive was generated by hypermail 2.2.0 : Tue Oct 20 2009 - 17:33:19 CEST