Thread

Posted on Tue Jun 13 18:44:45 2006 by bozi
new lens
hi
I was looking at the exif data and found out that my Sigma 150mm Macro Lens is displayed as
"Canon EF 180mm Macro f/3.5L or Sigma 180mm EX HSM Macro f/3.5"
I think the canonLensTypes are limited and Sigma has decided to use #173 too, isnt it?
So this lens ist the 3rd with #173
I think its better to use the short version (150mm F2.8 EX DG) for the 2 Sigmas. The complete String is really long: "APO MACRO 150mm F3.5 EX DG IF HSM"
The new #173 lenstype string would be
"Macro lens: Canon EF 180mm f3.5L or Sigma 180mm F3.5 EX DG or Sigma 150mm F2.8 EX DG"
The heading "Macro lens:" shortens the whole string a little bit too.

bozi
Direct Responses: 2478 | Write a response
Posted on Tue Jun 13 19:26:07 2006 by exiftool in response to 2476
Re: new lens
Thanks for this information. It is unfortunate that Sigma reuses the same lens ID's, but of course they are constrained to work within the space that Canon has provided them.

When this happens, I am tempted to drop the details about the Sigma lenses to shorten the string. So how about something like this?:

"Canon EF 180mm Macro f/3.5L or Sigma 180mm F3.5 or 150mm f/2.8 Macro"

- Phil
Direct Responses: 2482 | Write a response
Posted on Tue Jun 13 21:27:17 2006 by bozi in response to 2478
Re: new lens
I think its a good compromise.
btw. the "Sigma 10-20mm F4-5.6" produces Unknown (152). I hope the #152 is the dedicated number for this lens ;)

bozi
Direct Responses: 2483 | Write a response
Posted on Tue Jun 13 21:46:57 2006 by dlu in response to 2482
Re: new lens
How about adding a switch (or perhaps a configuration file) that would enable specifying which lens option to pick -- something like "lensmfg=nikon" for cases when you knew which was the right choice? Thanks, Doug
Direct Responses: 2490 | Write a response
Posted on Wed Jun 14 03:04:51 2006 by exiftool in response to 2483
Re: new lens
I try to avoid adding options if possible. Every additional option complicates the code, user interface, and documentation. However, I was quick with the -fast option (hehe) because frankly I was concerned about the performance hit when I added the scanning for AFCP information, and was prepared to fix this if it adversely affected anyone. Also, an option was necessary here because there was no way to work around this behaviour via the API.

But adding an option to select a particular brand of lens along with all of the necessary support code is getting a bit beyond the scope of the exiftool application. And since this can be done in a custom script,

my $make = 'Canon'; my $info = ImageInfo($file, 'LensType'); my $lensType = $$info{LensType}; my @types = split / or /, $lensType; my @myTypes = grep /$make/, @types; print 'My lens type is ', join(' or ', @myTypes), "\n";

I leave this one as an exercise for the determined user.

- Phil
Write a response