List Info

Thread: new lens




new lens
user name
2006-06-14 00:04:52
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.<br /><br
/>

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,<br /><br />

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

I leave this one as an exercise for the determined
user.<br /><br />

- Phil



To write a respons, access
http://ww
w.cpanforum.com/response_form/2490

To see the full thread, access
http://www.cpan
forum.com/threads/2476

--
You are getting this messages from www.cpanforum.com
To change your subscription information visit http://www.cpanforum.
com/mypan/

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )