Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Not all cameras record the focus distance and, of those that do, some record it in the proprietary makernote EXIF field.
Are you sure that the focus distance is there in the first place?
Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.
I don't know, if the focus distance is recorded in the proprietary makernote EXIF field.
I only know, that it is recorded, because the Applications "PhotoMe" and "exiftool" can show this Tag.
The exiftool shows, that the "tag ID number" for FocusDistance is 0x0009, it seems to be an Offset!?
My new Canon does not generate a focus distance and on a test image I get 47 results for a jpg image.
According to http://www.exif.org/Exif2-2.PDF there can be 57 different "official" results for an image? + GPS 31 results and numerous others.
Either ImageMagick is not picking up all the latest tags or if the tag is empty it is not displayed ?
I added some GPS data to an image and when the data was displayed again I had 2 extra tags:
1/ A GPS Info number
2/ EXIF data modified by setting.
So I assume empty EXIF tags are not displayed ?
Running the same image through the php EXIF function I get 104 results. Still no focal distance but there are values similar to 0x0009 in the "MAKERNOTE." section.
Thinking about this - FocusDistance is 0x0009 - the 0x0009 is a hex number or a position within the file ? A "segment marker" or "Private Tag"
Using "Kuso Exif viewer" I get 172 results, are some of these results not EXIF data but other types of metadata e.g. IPTC?
The only results to do with focus are:
FocusDistanceLower: 0
FocusDistanceUpper: 5.84
FocusMode: Single
FocusRange: Auto
There's an EXIF tag called Subject Distance but I can't find anything about Focus Distance in exiftool.
Pete
Sorry, my ISP shutdown all personal webspace so my MagickWand Examples in C is offline.
See my message in this topic for a link to a zip of all the files.