Image-ExifTool - Does exiftool needs some special start-up init?

Posted on Tue Oct 18 10:06:37 2005 by tschnebeck
Does exiftool needs some special start-up init?
Hi Phil,

ok, a new strange problem. As you know I use a perl program in a C++ program. As a debug message I print out the program and two non-string values. When using this program in a console window I get:
perl -e 'my $file="/home/schnebeck/EOS/20D-Test/2005-10-16/img_7365.cr2";use Image::ExifTool;my $ex +iftool = new Image::ExifTool;$exiftool->Options(PrintConv => 1);$exiftool->Options(Binary => 0);my + $info = $exiftool->ImageInfo($file);$return01=$$info{'Make'};$return02=$$info{'Model'};$return03= +$$info{'FocalLength35efl'};if ($return03 == "") {$return03=$$info{'FocalLength'};}$return04=$$info +{'Aperture'}; print $return04;$return05=$$info{'ShutterSpeedValue'};if ($return05 == "") {$return0 +5=$$info{'ShutterSpeed'};};$return05=$return05."s"; print $return05;$return06=$$info{'Lens'}."/".$ +$info{'MaxAperture'};$return07=$$info{'CreateDate'};if ($return07 == "") {$return07=$$info{'DateTi +meOriginal'};}$return08=$$info{'ISO'};$return09=$$info{'FlashOn'};$return10=$$info{'ExifImageWidth +'};if ($return10 == "") {$return10=$$info{'ImageWidth'};}$return11=$$info{'ExifImageLength'};if ($ +return11 == "") {$return11=$$info{'ImageHeight'};}$return12=$$info{'XResolution'};' 6.3 1/1000s
when using the same code in my embedded perl I get
KFileMetainfo (plugins): rawimagePlugin::readInfo: my $file="/home/schnebeck/EOS/20D-Test/2005-10-1 +6/img_7365.cr2";use Image::ExifTool;my $exiftool = new Image::ExifTool;$exiftool->Options(PrintCon +v => 1);$exiftool->Options(Binary => 0);my $info = $exiftool->ImageInfo($file);$return01=$$info{'M +ake'};$return02=$$info{'Model'};$return03=$$info{'FocalLength35efl'};if ($return03 == "") {$return +03=$$info{'FocalLength'};}$return04=$$info{'Aperture'}; print $return04;$return05=$$info{'ShutterS +peedValue'};if ($return05 == "") {$return05=$$info{'ShutterSpeed'};};$return05=$return05."s"; prin +t $return05;$return06=$$info{'Lens'}."/".$$info{'MaxAperture'};$return07=$$info{'CreateDate'};if ( +$return07 == "") {$return07=$$info{'DateTimeOriginal'};}$return08=$$info{'ISO'};$return09=$$info{' +FlashOn'};$return10=$$info{'ExifImageWidth'};if ($return10 == "") {$return10=$$info{'ImageWidth'}; +}$return11=$$info{'ExifImageLength'};if ($return11 == "") {$return11=$$info{'ImageHeight'};}$retur +n12=$$info{'XResolution'}; 6,0 1/512s
This error only happens with non string values. Maybe anything with LANG cause of dot and comma? Any idea?

Bye
Thorsten
Direct Responses: 1191 | Write a response