#!/usr/bin/perl -s
use vars ($filename);
use Image::ExifTool qw(:Public);
my $exifTool = new Image::ExifTool;
$exifTool->Options(Duplicates => 0);
$info = $exifTool->ImageInfo($filename,
'Make',
'Model',
'Orientation',
'Exposure',
'Aperture',
'Flash',
'ColorSpace',
'FocalLength',
'XResolution',
'YResolution',
'FNumber',
'ImageWidth',
'ImageHeight',
'LightSource',
'Lens',
'DigitalZoomRatio',
'Lens',
'Lens',
'ISO',
'ExposureCompensation',
'Gamma',
'Transformation',
'SceneCaptureType',
'GainControl',
'Contrast',
'Saturation',
'Sharpness',
'DateTimeOriginal',
'MeteringMode',
'UserComment',
'CreateDate',
'ShutterSpeedValue',
'WhiteBalance',
'ExposureMode',
'MaxApertureValue'
);
foreach (keys %$info) {
print "$_ => $$info{$_}\n";
}
Bookmarks