Hi Kay,

some details how the lens is saved.
AFAIK the most cameras save the lens in the maker notes. There are
mainly 2 variants:
1) Saving the lens as a (coded) number (e.g. used by Nikon, Olympus)
2) Saving the lens as string (e.g. Panasonic)

For Canon there exists both variants:
* tag LensModel (0x0095): a string
* tag LensType (id depends on camera type): a number (int16s)
I assume that all newer Canon camera are using the LensType tag. The
string variant seems to be an older, now not used tag (Just guessing,
I have no Canon).

Saving the lens name as string would only work for the camera with
store the lens as string (item 2 above).

But I came to another solution:
EXIF specification version 2.3 introduced the tags Lens Specification,
Lens Make, Lens Model and Lens Serial Number.
The tag LensModel is a string and can therefore used for images of all
makers (don't mix this with the tag with same name in the Canon
makernotes).
Maybe some newer camera (compatible with exif version 2.3) do already
write this tag.
I modified the code to read first this new tag, if this is not found
then it should use the lens from the maker notes.

So you can use
exiftool -LensModel=YOUR LENS NAME image
to patch the image file.

Maybe it would be nice to update also Exif version, because the
LensModel is only defined in 2.3 and above (not 2.2), so use
exiftool -LensModel=YOUR LENS NAME -exifversion=0230 image

(For Canon it could be necessary to use -Exif:LensModel for forcing
the exif tag and not update the maker note tag).

> And, while I'm at it, I never got an echo on my proposals to autoload
> lens.ini files based on the Lens Model EXIF tag. Maybe you didn't look
> at my postings concerning the matter, they're in this thread just a
> few up from here.

I did not forget this, but this is postponed after the integration of
the lensfun library.

Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to