View Single Post
  #14 (permalink)  
Old 11-28-2009, 02:55 PM
HARRY HARRY is offline
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Netherlands
Posts: 222
Default

Hi,

Quite some time ago I posted sample code tot extract EXIF data from a JPEG file.

Recently I found myself two errers in that code:

1) Some manufacturers of camera devices store values in the EXIF data with the Least Significant Byte first, others with the Most Significant Byte first. This was not covered in my sample.

2) Values of less than 5 bytes will be stored in the OffSet field itself, in stead of the OffSet fields indicating an offset to the place where that data is stored. E.g the manufacturer name HTC will be stored in the offset field itself.

In my sample code this was not always covered.

I found these problems after buying another camera.

For those interested I have attached the improved sample code.

Harry
Attached Files
File Type: sbp JPEG.sbp (4.6 KB, 14 views)
Reply With Quote