123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- BEGIN { $| = 1; print "1..5\n"; $Image::ExifTool::noConfig = 1; }
- END {print "not ok 1\n" unless $loaded;}
- use Image::ExifTool 'ImageInfo';
- use Image::ExifTool::Panasonic;
- $loaded = 1;
- print "ok 1\n";
- use t::TestLib;
- my $testname = 'Panasonic';
- my $testnum = 1;
- {
- ++$testnum;
- my $exifTool = new Image::ExifTool;
- my $info = $exifTool->ImageInfo('t/images/Panasonic.jpg');
- print 'not ' unless check($exifTool, $info, $testname, $testnum);
- print "ok $testnum\n";
- }
- {
- ++$testnum;
- my @writeInfo = (
- ['Keywords' => 'cool'],
- ['ShootingMode' => 'Panning'],
- );
- print 'not ' unless writeCheck(\@writeInfo, $testname, $testnum);
- print "ok $testnum\n";
- }
- {
- ++$testnum;
- my $exifTool = new Image::ExifTool;
- my $info = $exifTool->ImageInfo('t/images/Panasonic.rw2');
- print 'not ' unless check($exifTool, $info, $testname, $testnum);
- print "ok $testnum\n";
- }
- {
- ++$testnum;
- my @writeInfo = (
- ['XMP:Title' => 'new title'],
- ['IPTC:Keywords' => 'a keyword'],
- ['ModifyDate' => '2009:03:25 12:11:46'],
- );
- print 'not ' unless writeCheck(\@writeInfo, $testname, $testnum, "t/images/$testname.rw2");
- print "ok $testnum\n";
- }
|