Main Menu

new lens

Started by Archive, May 12, 2010, 08:53:55 AM

Previous topic - Next topic

Archive

[Originally posted by bozi on 2006-06-13 15:44:45-07]

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

Archive

[Originally posted by exiftool on 2006-06-13 16:26:07-07]

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

Archive

[Originally posted by bozi on 2006-06-13 18:27:17-07]

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 Wink

bozi

Archive

[Originally posted by dlu on 2006-06-13 18:46:57-07]

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

Archive

[Originally posted by exiftool on 2006-06-14 00:04:51-07]

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,

Code:
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