exiftool-vendored.pl 13.16.0 → 13.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/Changes +114 -4
- package/bin/MANIFEST +16 -2
- package/bin/META.json +1 -1
- package/bin/META.yml +1 -1
- package/bin/README +46 -46
- package/bin/config_files/example.config +1 -1
- package/bin/exiftool +212 -122
- package/bin/lib/Image/ExifTool/Apple.pm +12 -2
- package/bin/lib/Image/ExifTool/BuildTagLookup.pm +16 -10
- package/bin/lib/Image/ExifTool/Canon.pm +3 -2
- package/bin/lib/Image/ExifTool/CanonRaw.pm +1 -1
- package/bin/lib/Image/ExifTool/DJI.pm +190 -29
- package/bin/lib/Image/ExifTool/DarwinCore.pm +22 -11
- package/bin/lib/Image/ExifTool/EXE.pm +2 -9
- package/bin/lib/Image/ExifTool/GM.pm +1 -1
- package/bin/lib/Image/ExifTool/GPS.pm +3 -3
- package/bin/lib/Image/ExifTool/Geolocation.dat +0 -0
- package/bin/lib/Image/ExifTool/GoPro.pm +86 -48
- package/bin/lib/Image/ExifTool/ICO.pm +2 -2
- package/bin/lib/Image/ExifTool/JPEG.pm +12 -2
- package/bin/lib/Image/ExifTool/JSON.pm +5 -1
- package/bin/lib/Image/ExifTool/Kodak.pm +3 -2
- package/bin/lib/Image/ExifTool/Nikon.pm +1003 -1399
- package/bin/lib/Image/ExifTool/NikonCustom.pm +4 -4
- package/bin/lib/Image/ExifTool/Olympus.pm +2 -1
- package/bin/lib/Image/ExifTool/PCAP.pm +462 -0
- package/bin/lib/Image/ExifTool/PDF.pm +10 -1
- package/bin/lib/Image/ExifTool/PLIST.pm +92 -29
- package/bin/lib/Image/ExifTool/PNG.pm +7 -1
- package/bin/lib/Image/ExifTool/Photoshop.pm +2 -2
- package/bin/lib/Image/ExifTool/Plot.pm +713 -0
- package/bin/lib/Image/ExifTool/Protobuf.pm +24 -11
- package/bin/lib/Image/ExifTool/Qualcomm.pm +78 -1
- package/bin/lib/Image/ExifTool/QuickTime.pm +348 -318
- package/bin/lib/Image/ExifTool/QuickTimeStream.pl +75 -27
- package/bin/lib/Image/ExifTool/Samsung.pm +4 -0
- package/bin/lib/Image/ExifTool/Sony.pm +34 -15
- package/bin/lib/Image/ExifTool/TagLookup.pm +5061 -4967
- package/bin/lib/Image/ExifTool/TagNames.pod +8302 -8160
- package/bin/lib/Image/ExifTool/Trailer.pm +318 -0
- package/bin/lib/Image/ExifTool/Validate.pm +4 -4
- package/bin/lib/Image/ExifTool/WriteCanonRaw.pl +1 -1
- package/bin/lib/Image/ExifTool/WriteExif.pl +9 -4
- package/bin/lib/Image/ExifTool/WritePDF.pl +1 -1
- package/bin/lib/Image/ExifTool/WriteQuickTime.pl +62 -5
- package/bin/lib/Image/ExifTool/Writer.pl +14 -13
- package/bin/lib/Image/ExifTool/XMP.pm +34 -6
- package/bin/lib/Image/ExifTool/XMP2.pl +5 -2
- package/bin/lib/Image/ExifTool.pm +193 -92
- package/bin/lib/Image/ExifTool.pod +121 -124
- package/bin/perl-Image-ExifTool.spec +45 -45
- package/bin/windows_exiftool.txt +95 -71
- package/package.json +3 -3
- package/bin/lib/Image/ExifTool/Vivo.pm +0 -124
|
@@ -21,7 +21,7 @@ use Image::ExifTool qw(:DataAccess :Utils);
|
|
|
21
21
|
use Image::ExifTool::XMP;
|
|
22
22
|
use Image::ExifTool::GPS;
|
|
23
23
|
|
|
24
|
-
$VERSION = '1.
|
|
24
|
+
$VERSION = '1.15';
|
|
25
25
|
|
|
26
26
|
sub ExtractObject($$;$);
|
|
27
27
|
sub Get24u($$);
|
|
@@ -46,7 +46,7 @@ my %plistType = (
|
|
|
46
46
|
%Image::ExifTool::PLIST::Main = (
|
|
47
47
|
PROCESS_PROC => \&ProcessPLIST,
|
|
48
48
|
GROUPS => { 0 => 'PLIST', 1 => 'XML', 2 => 'Document' },
|
|
49
|
-
VARS => { LONG_TAGS =>
|
|
49
|
+
VARS => { LONG_TAGS => 12 },
|
|
50
50
|
NOTES => q{
|
|
51
51
|
Apple Property List tags. ExifTool reads both XML and binary-format PLIST
|
|
52
52
|
files, and will extract any existing tags even if they aren't listed below.
|
|
@@ -92,6 +92,35 @@ my %plistType = (
|
|
|
92
92
|
Name => 'GPSMapDatum',
|
|
93
93
|
Groups => { 2 => 'Location' },
|
|
94
94
|
},
|
|
95
|
+
# slow motion stuff found in AAE files
|
|
96
|
+
'slowMotion/regions/timeRange/start/flags' => {
|
|
97
|
+
Name => 'SlowMotionRegionsStartTimeFlags',
|
|
98
|
+
PrintConv => { BITMASK => {
|
|
99
|
+
0 => 'Valid',
|
|
100
|
+
1 => 'Has been rounded',
|
|
101
|
+
2 => 'Positive infinity',
|
|
102
|
+
3 => 'Negative infinity',
|
|
103
|
+
4 => 'Indefinite',
|
|
104
|
+
}},
|
|
105
|
+
},
|
|
106
|
+
'slowMotion/regions/timeRange/start/value' => 'SlowMotionRegionsStartTimeValue',
|
|
107
|
+
'slowMotion/regions/timeRange/start/timescale' => 'SlowMotionRegionsStartTimeScale',
|
|
108
|
+
'slowMotion/regions/timeRange/start/epoch' => 'SlowMotionRegionsStartTimeEpoch',
|
|
109
|
+
'slowMotion/regions/timeRange/duration/flags' => {
|
|
110
|
+
Name => 'SlowMotionRegionsDurationFlags',
|
|
111
|
+
PrintConv => { BITMASK => {
|
|
112
|
+
0 => 'Valid',
|
|
113
|
+
1 => 'Has been rounded',
|
|
114
|
+
2 => 'Positive infinity',
|
|
115
|
+
3 => 'Negative infinity',
|
|
116
|
+
4 => 'Indefinite',
|
|
117
|
+
}},
|
|
118
|
+
},
|
|
119
|
+
'slowMotion/regions/timeRange/duration/value' => 'SlowMotionRegionsDurationValue',
|
|
120
|
+
'slowMotion/regions/timeRange/duration/timescale' => 'SlowMotionRegionsDurationTimeScale',
|
|
121
|
+
'slowMotion/regions/timeRange/duration/epoch' => 'SlowMotionRegionsDurationEpoch',
|
|
122
|
+
'slowMotion/regions' => 'SlowMotionRegions',
|
|
123
|
+
'slowMotion/rate' => 'SlowMotionRate',
|
|
95
124
|
XMLFileType => {
|
|
96
125
|
# recognize MODD files by their content
|
|
97
126
|
RawConv => q{
|
|
@@ -101,6 +130,11 @@ my %plistType = (
|
|
|
101
130
|
return $val;
|
|
102
131
|
},
|
|
103
132
|
},
|
|
133
|
+
adjustmentData => { # AAE file
|
|
134
|
+
Name => 'AdjustmentData',
|
|
135
|
+
CompressedPLIST => 1,
|
|
136
|
+
SubDirectory => { TagTable => 'Image::ExifTool::PLIST::Main' },
|
|
137
|
+
},
|
|
104
138
|
);
|
|
105
139
|
|
|
106
140
|
#------------------------------------------------------------------------------
|
|
@@ -180,8 +214,22 @@ sub FoundTag($$$$;$)
|
|
|
180
214
|
$$et{LastPListTag} = $tagInfo;
|
|
181
215
|
# override file type if applicable
|
|
182
216
|
$et->OverrideFileType($plistType{$tag}) if $plistType{$tag} and $$et{FILE_TYPE} eq 'XMP';
|
|
217
|
+
# handle compressed PLIST/JSON data
|
|
218
|
+
my $proc;
|
|
219
|
+
if ($$tagInfo{CompressedPLIST} and ref $val eq 'SCALAR' and $$val !~ /^bplist00/) {
|
|
220
|
+
if (eval { require IO::Uncompress::RawInflate }) {
|
|
221
|
+
my $inflated;
|
|
222
|
+
if (IO::Uncompress::RawInflate::rawinflate($val => \$inflated)) {
|
|
223
|
+
$val = \$inflated;
|
|
224
|
+
} else {
|
|
225
|
+
$et->Warn("Error inflating PLIST::$$tagInfo{Name}");
|
|
226
|
+
}
|
|
227
|
+
} else {
|
|
228
|
+
$et->Warn('Install IO::Uncompress to decode compressed PLIST data');
|
|
229
|
+
}
|
|
230
|
+
}
|
|
183
231
|
# save the tag
|
|
184
|
-
$et->HandleTag($tagTablePtr, $tag, $val);
|
|
232
|
+
$et->HandleTag($tagTablePtr, $tag, $val, ProcessProc => $proc);
|
|
185
233
|
|
|
186
234
|
return 1;
|
|
187
235
|
}
|
|
@@ -304,7 +352,7 @@ sub ExtractObject($$;$)
|
|
|
304
352
|
my $name = $tag;
|
|
305
353
|
$name =~ s/([^A-Za-z])([a-z])/$1\u$2/g; # capitalize words
|
|
306
354
|
$name =~ tr/-_a-zA-Z0-9//dc; # remove illegal characters
|
|
307
|
-
$name =
|
|
355
|
+
$name = 'Tag'.ucfirst($name) if length($name) < 2 or $name =~ /^[-0-9]/;
|
|
308
356
|
$tagInfo = { Name => ucfirst($name), List => 1 };
|
|
309
357
|
if ($$plistInfo{DateFormat}) {
|
|
310
358
|
$$tagInfo{Groups}{2} = 'Time';
|
|
@@ -390,39 +438,54 @@ sub ProcessBinaryPLIST($$;$)
|
|
|
390
438
|
}
|
|
391
439
|
|
|
392
440
|
#------------------------------------------------------------------------------
|
|
393
|
-
# Extract information from a PLIST file
|
|
441
|
+
# Extract information from a PLIST file (binary, XML or JSON format)
|
|
394
442
|
# Inputs: 0) ExifTool object ref, 1) dirInfo ref, 2) tag table ref
|
|
395
443
|
# Returns: 1 on success, 0 if this wasn't valid PLIST
|
|
396
444
|
sub ProcessPLIST($$;$)
|
|
397
445
|
{
|
|
398
446
|
my ($et, $dirInfo, $tagTablePtr) = @_;
|
|
447
|
+
my $dataPt = $$dirInfo{DataPt};
|
|
448
|
+
my ($result, $notXML);
|
|
399
449
|
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
450
|
+
if ($dataPt) {
|
|
451
|
+
pos($$dataPt) = $$dirInfo{DirStart} || 0;
|
|
452
|
+
$notXML = 1 unless $$dataPt =~ /\G</g;
|
|
453
|
+
}
|
|
454
|
+
unless ($notXML) {
|
|
455
|
+
# process XML PLIST data using the XMP module
|
|
456
|
+
$$dirInfo{XMPParseOpts}{FoundProc} = \&FoundTag;
|
|
457
|
+
$result = Image::ExifTool::XMP::ProcessXMP($et, $dirInfo, $tagTablePtr);
|
|
458
|
+
delete $$dirInfo{XMPParseOpts};
|
|
459
|
+
return $result if $result;
|
|
460
|
+
}
|
|
461
|
+
my $buff;
|
|
462
|
+
my $raf = $$dirInfo{RAF};
|
|
463
|
+
if ($raf) {
|
|
408
464
|
$raf->Seek(0,0) and $raf->Read($buff, 64) or return 0;
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
$buff =~ /^\xfe\xff\x00/)
|
|
421
|
-
{
|
|
422
|
-
# (have seen very old PLIST files encoded as UCS-2BE with leading BOM)
|
|
423
|
-
$et->Error('Old PLIST format currently not supported');
|
|
424
|
-
$result = 1;
|
|
465
|
+
$dataPt = \$buff;
|
|
466
|
+
} else {
|
|
467
|
+
return 0 unless $dataPt;
|
|
468
|
+
}
|
|
469
|
+
if ($$dataPt =~ /^bplist0/) { # binary PLIST
|
|
470
|
+
# binary PLIST file
|
|
471
|
+
my $tagTablePtr = GetTagTable('Image::ExifTool::PLIST::Main');
|
|
472
|
+
$et->SetFileType('PLIST', 'application/x-plist');
|
|
473
|
+
$$et{SET_GROUP1} = 'PLIST';
|
|
474
|
+
unless (ProcessBinaryPLIST($et, $dirInfo, $tagTablePtr)) {
|
|
475
|
+
$et->Error('Error reading binary PLIST file');
|
|
425
476
|
}
|
|
477
|
+
delete $$et{SET_GROUP1};
|
|
478
|
+
$result = 1;
|
|
479
|
+
} elsif ($$dataPt =~ /^\{"/) { # JSON PLIST
|
|
480
|
+
$raf and $raf->Seek(0);
|
|
481
|
+
require Image::ExifTool::JSON;
|
|
482
|
+
$result = Image::ExifTool::JSON::ProcessJSON($et, $dirInfo);
|
|
483
|
+
} elsif ($$et{FILE_EXT} and $$et{FILE_EXT} eq 'PLIST' and
|
|
484
|
+
$$dataPt =~ /^\xfe\xff\x00/)
|
|
485
|
+
{
|
|
486
|
+
# (have seen very old PLIST files encoded as UCS-2BE with leading BOM)
|
|
487
|
+
$et->Error('Old PLIST format currently not supported');
|
|
488
|
+
$result = 1;
|
|
426
489
|
}
|
|
427
490
|
return $result;
|
|
428
491
|
}
|
|
@@ -36,7 +36,7 @@ use strict;
|
|
|
36
36
|
use vars qw($VERSION $AUTOLOAD %stdCase);
|
|
37
37
|
use Image::ExifTool qw(:DataAccess :Utils);
|
|
38
38
|
|
|
39
|
-
$VERSION = '1.
|
|
39
|
+
$VERSION = '1.71';
|
|
40
40
|
|
|
41
41
|
sub ProcessPNG_tEXt($$$);
|
|
42
42
|
sub ProcessPNG_iTXt($$$);
|
|
@@ -371,6 +371,12 @@ my %noLeapFrog = ( SAVE => 1, SEEK => 1, IHDR => 1, JHDR => 1, IEND => 1, MEND =
|
|
|
371
371
|
IgnoreProp => { meta => 1 }, # ignore 'meta' container
|
|
372
372
|
},
|
|
373
373
|
},
|
|
374
|
+
gdAT => {
|
|
375
|
+
Name => 'GainMapImage',
|
|
376
|
+
Groups => { 2 => 'Preview' },
|
|
377
|
+
Binary => 1,
|
|
378
|
+
},
|
|
379
|
+
# gmAP - https://github.com/w3c/png/issues/380 does't correspond to my only sample
|
|
374
380
|
seAl => {
|
|
375
381
|
Name => 'SEAL',
|
|
376
382
|
SubDirectory => { TagTable => 'Image::ExifTool::XMP::SEAL' },
|
|
@@ -1165,7 +1165,7 @@ sub ProcessPSD($$)
|
|
|
1165
1165
|
$len = Set32u(length $data);
|
|
1166
1166
|
Write($outfile, $len, $data) or $err = 1;
|
|
1167
1167
|
# look for trailer and edit if necessary
|
|
1168
|
-
my $trailInfo =
|
|
1168
|
+
my $trailInfo = $et->IdentifyTrailer($raf);
|
|
1169
1169
|
if ($trailInfo) {
|
|
1170
1170
|
my $tbuf = '';
|
|
1171
1171
|
$$trailInfo{OutFile} = \$tbuf; # rewrite trailer(s)
|
|
@@ -1223,7 +1223,7 @@ sub ProcessPSD($$)
|
|
|
1223
1223
|
}
|
|
1224
1224
|
$$et{INDENT} = $oldIndent;
|
|
1225
1225
|
# process trailers if they exist
|
|
1226
|
-
my $trailInfo =
|
|
1226
|
+
my $trailInfo = $et->IdentifyTrailer($raf);
|
|
1227
1227
|
$et->ProcessTrailers($trailInfo) if $trailInfo;
|
|
1228
1228
|
}
|
|
1229
1229
|
return $rtnVal;
|