Ok, when creating a normal JFIF from the Exif data, right before the EndOfImage marker (0xffd9) can be a number of 0x00's, which are not part of the data. If I strip these out, and append the 0xffd9 to the end of the data, I get a clean JFIF JPEG file which opens and displays with no errors whatsoever! So now we have clean JPEG photo's, and clean PPM thumbnails. When the camera uses internal memory, it looks like the first data is directly the thumbnail (without any headers), but we know it is 12288 pixels (128x96) at 2 bytes per pixel, and after that should be the JPEG data. It's worth a try, but I can't do it until I get home. Then all thats needed is wrapping it in a Gphoto camlib. Dennis :-)Received on Mon Sep 09 2002 - 16:08:33 CEST
This archive was generated by hypermail 2.2.0 : Tue Oct 20 2009 - 17:33:19 CEST