I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2008-10-30 20:58:00-07 by msbc
Adding user-defined lenses
Phil,

In the Tags documentation under Composite Tags there is a note for the LensID tag that reads:
May be configured by adding user-defined lenses

Can you explain how this can be done? I'd like to add my manual focus lenses - Contax and Leica - that I use on my 5D.
Direct Responses: 9164 | Write a response
Posted on 2008-10-30 21:42:20-07 by exiftool in response to 9163
Re: Adding user-defined lenses
Currently the option is rather limited, and is used only to select the correct lens from the list of known alternatives when there is more than one possible lens for a given LensType value. ie) If there is an "or" in the lenstype value.

What does the LensType tag show for these lenses? If you have any lenses that give "Unknown(##)" values (where ## is anything but 0 or -1), then I should add these to the distribution.

- Phil
Direct Responses: 9165 | Write a response
Posted on 2008-10-30 21:45:09-07 by exiftool in response to 9164
Re: Adding user-defined lenses
Oh. I forgot to answer your question about how it is done. An example is given in the config file documentation at the bottom of the page.
Direct Responses: 9166 | Write a response
Posted on 2008-10-31 03:58:50-07 by msbc in response to 9165
Re: Adding user-defined lenses
Phil,

On a related note - I've tried to change the LensType value in a Canon 5D CR2. The Tags documentation show this tag should be writable but my image file is not updated when I attempt to change this value?

Thanks,
Mark
Direct Responses: 9171 | Write a response
Posted on 2008-10-31 11:31:21-07 by exiftool in response to 9166
Re: Adding user-defined lenses
Hi Mark,

Thanks for pointing out this problem. It turns out that you couldn't write any tag in the CanonCameraInfo5D structure. This will be fixed in the next release.

- Phil
Direct Responses: 9231 | Write a response
Posted on 2008-11-06 03:23:47-08 by msbc in response to 9171
Re: Adding user-defined lenses
Phil,

I just tried the new 7.52 version but am still seeing the same problem.

Mark
Direct Responses: 9233 | Write a response
Posted on 2008-11-06 11:41:21-08 by exiftool in response to 9231
Re: Adding user-defined lenses
Could you please paste a console log showing your exact problem. This works for me:

> exiftool -ver 7.52 > exiftool CanonEOS5D.jpg -lenstype Lens Type : Canon EF 24-70mm f/2.8L > exiftool CanonEOS5D.jpg -lenstype='Canon EF 28-80mm f/2.8-4L or Sigma Lens' 1 image files updated > exiftool CanonEOS5D.jpg -lenstype Lens Type : Canon EF 28-80mm f/2.8-4L or Sigma Lens

- Phil
Direct Responses: 9235 | Write a response
Posted on 2008-11-06 12:24:17-08 by msbc in response to 9233
Re: Adding user-defined lenses
Phil,

Just to clarify:
1. I'm testing against a 5D CR2, not JPG
2. According to your Tags documentation LensType (Index 22) is int16s - so I am entering the following command:
exiftool -s -LensType=5 _MG_1126.CR2
Direct Responses: 9236 | Write a response
Posted on 2008-11-06 12:33:59-08 by exiftool in response to 9235
Re: Adding user-defined lenses
Ah, OK. This is FAQ number 6.

It should work for JPEG or CR2.

- Phil
Direct Responses: 9237 | Write a response
Posted on 2008-11-06 12:39:47-08 by exiftool in response to 9236
Re: Adding user-defined lenses
Also, you can save a bit of typing: The -s option has no effect when writing.

- Phil
Direct Responses: Write a response