[Originally posted by scarvalhojr on 2007-06-01 16:41:58-07]I'm using
$exifTool->Options(PrintConv => 0)
to read/write values as numbers instead of words in fields like Exif:ExposureProgram (using GetInfo), but this isn't working properly with some MakerNotes fields such as CanonExposureMode and EasyMode. I just don't get anything from these fields (if I ask for numbers). What am I doing wrong?
[Originally posted by exiftool on 2007-06-01 17:07:49-07]It should work. I adapted your script to test this, and thi
works fine for me here:
#!/usr/bin/perl -w
use strict;
BEGIN { push @INC, 'lib'}
use Image::ExifTool;
my $file = shift;
my $exifTool = new Image::ExifTool;
my @tags = qw(canonexposuremode);
$exifTool->Options(PrintConv => 0);
$exifTool->ExtractInfo($file);
my $info = $exifTool->GetInfo(\@tags);
print "@tags = $$info{$tags[0]}\n";
For a test 10D image, it prints "4", or "Manual" if I comment out the Options call.
It doesn't matter if the Options call is before or after ExtractInfo().
So I can't think of what the problem could be.
- Phil