exiftool_vendored 12.14.0 → 12.18.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of exiftool_vendored might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/bin/Changes +52 -2
- data/bin/MANIFEST +2 -0
- data/bin/META.json +1 -1
- data/bin/META.yml +1 -1
- data/bin/README +2 -2
- data/bin/exiftool +39 -32
- data/bin/lib/Image/ExifTool.pm +30 -1
- data/bin/lib/Image/ExifTool.pod +7 -5
- data/bin/lib/Image/ExifTool/BuildTagLookup.pm +4 -3
- data/bin/lib/Image/ExifTool/Canon.pm +21 -2
- data/bin/lib/Image/ExifTool/CanonCustom.pm +19 -1
- data/bin/lib/Image/ExifTool/DJI.pm +27 -1
- data/bin/lib/Image/ExifTool/DPX.pm +3 -3
- data/bin/lib/Image/ExifTool/Exif.pm +31 -15
- data/bin/lib/Image/ExifTool/FujiFilm.pm +2 -1
- data/bin/lib/Image/ExifTool/GPS.pm +5 -5
- data/bin/lib/Image/ExifTool/H264.pm +20 -5
- data/bin/lib/Image/ExifTool/JPEG.pm +23 -1
- data/bin/lib/Image/ExifTool/Nikon.pm +312 -36
- data/bin/lib/Image/ExifTool/NikonSettings.pm +2013 -0
- data/bin/lib/Image/ExifTool/PNG.pm +11 -3
- data/bin/lib/Image/ExifTool/QuickTime.pm +31 -19
- data/bin/lib/Image/ExifTool/QuickTimeStream.pl +22 -4
- data/bin/lib/Image/ExifTool/README +5 -4
- data/bin/lib/Image/ExifTool/RIFF.pm +8 -7
- data/bin/lib/Image/ExifTool/Sony.pm +20 -18
- data/bin/lib/Image/ExifTool/TagLookup.pm +3983 -3810
- data/bin/lib/Image/ExifTool/TagNames.pod +408 -22
- data/bin/lib/Image/ExifTool/WriteXMP.pl +9 -6
- data/bin/lib/Image/ExifTool/Writer.pl +6 -4
- data/bin/lib/Image/ExifTool/XMP.pm +28 -2
- data/bin/perl-Image-ExifTool.spec +1 -1
- data/lib/exiftool_vendored/version.rb +1 -1
- metadata +36 -3
@@ -12,7 +12,7 @@ use vars qw(%specialStruct %dateTimeInfo %stdXlatNS);
|
|
12
12
|
|
13
13
|
use Image::ExifTool qw(:DataAccess :Utils);
|
14
14
|
|
15
|
-
sub CheckXMP(
|
15
|
+
sub CheckXMP($$$;$);
|
16
16
|
sub CaptureXMP($$$;$);
|
17
17
|
sub SetPropertyPath($$;$$$$);
|
18
18
|
|
@@ -165,12 +165,12 @@ sub FormatXMPDate($)
|
|
165
165
|
|
166
166
|
#------------------------------------------------------------------------------
|
167
167
|
# Check XMP values for validity and format accordingly
|
168
|
-
# Inputs: 0) ExifTool object ref, 1) tagInfo hash ref, 2) raw value ref
|
168
|
+
# Inputs: 0) ExifTool object ref, 1) tagInfo hash ref, 2) raw value ref, 3) conversion type
|
169
169
|
# Returns: error string or undef (and may change value) on success
|
170
170
|
# Note: copies structured information to avoid conflicts with calling code
|
171
|
-
sub CheckXMP(
|
171
|
+
sub CheckXMP($$$;$)
|
172
172
|
{
|
173
|
-
my ($et, $tagInfo, $valPtr) = @_;
|
173
|
+
my ($et, $tagInfo, $valPtr, $convType) = @_;
|
174
174
|
|
175
175
|
if ($$tagInfo{Struct}) {
|
176
176
|
require 'Image/ExifTool/XMPStruct.pl';
|
@@ -250,9 +250,12 @@ sub CheckXMP($$$)
|
|
250
250
|
return "Invalid date/time (use YYYY:mm:dd HH:MM:SS[.ss][+/-HH:MM|Z])" unless $newDate;
|
251
251
|
$$valPtr = $newDate;
|
252
252
|
} elsif ($format eq 'boolean') {
|
253
|
+
# (allow lower-case 'true' and 'false' if not setting PrintConv value)
|
253
254
|
if (not $$valPtr or $$valPtr =~ /false/i or $$valPtr =~ /^no$/i) {
|
254
|
-
$$valPtr
|
255
|
-
|
255
|
+
if (not $$valPtr or $$valPtr ne 'false' or not $convType or $convType eq 'PrintConv') {
|
256
|
+
$$valPtr = 'False';
|
257
|
+
}
|
258
|
+
} elsif ($$valPtr ne 'true' or not $convType or $convType eq 'PrintConv') {
|
256
259
|
$$valPtr = 'True';
|
257
260
|
}
|
258
261
|
} elsif ($format eq '1') {
|
@@ -669,7 +669,7 @@ TAG: foreach $tagInfo (@matchingTags) {
|
|
669
669
|
next TAG unless $lcWant eq lc $grp[1];
|
670
670
|
}
|
671
671
|
}
|
672
|
-
$writeGroup or $writeGroup = ($$tagInfo{WriteGroup} || $grp[0]);
|
672
|
+
$writeGroup or $writeGroup = ($$tagInfo{WriteGroup} || $$tagInfo{Table}{WRITE_GROUP} || $grp[0]);
|
673
673
|
$priority = $hiPri; # highest priority since group was specified
|
674
674
|
}
|
675
675
|
++$foundMatch;
|
@@ -2766,6 +2766,8 @@ sub ConvInv($$$$$;$$)
|
|
2766
2766
|
my ($self, $val, $tagInfo, $tag, $wgrp1, $convType, $wantGroup) = @_;
|
2767
2767
|
my ($err, $type);
|
2768
2768
|
|
2769
|
+
$convType or $convType = $$self{ConvType} || 'PrintConv';
|
2770
|
+
|
2769
2771
|
Conv: for (;;) {
|
2770
2772
|
if (not defined $type) {
|
2771
2773
|
# split value into list if necessary
|
@@ -2779,7 +2781,7 @@ Conv: for (;;) {
|
|
2779
2781
|
$val = @splitVal > 1 ? \@splitVal : @splitVal ? $splitVal[0] : '';
|
2780
2782
|
}
|
2781
2783
|
}
|
2782
|
-
$type = $convType
|
2784
|
+
$type = $convType;
|
2783
2785
|
} elsif ($type eq 'PrintConv') {
|
2784
2786
|
$type = 'ValueConv';
|
2785
2787
|
} else {
|
@@ -2802,11 +2804,11 @@ Conv: for (;;) {
|
|
2802
2804
|
if (ref $val eq 'ARRAY') {
|
2803
2805
|
# loop through array values
|
2804
2806
|
foreach $v (@$val) {
|
2805
|
-
$err2 = &$checkProc($self, $tagInfo, \$v);
|
2807
|
+
$err2 = &$checkProc($self, $tagInfo, \$v, $convType);
|
2806
2808
|
last if $err2;
|
2807
2809
|
}
|
2808
2810
|
} else {
|
2809
|
-
$err2 = &$checkProc($self, $tagInfo, \$val);
|
2811
|
+
$err2 = &$checkProc($self, $tagInfo, \$val, $convType);
|
2810
2812
|
}
|
2811
2813
|
}
|
2812
2814
|
}
|
@@ -50,13 +50,13 @@ use Image::ExifTool::Exif;
|
|
50
50
|
use Image::ExifTool::GPS;
|
51
51
|
require Exporter;
|
52
52
|
|
53
|
-
$VERSION = '3.
|
53
|
+
$VERSION = '3.38';
|
54
54
|
@ISA = qw(Exporter);
|
55
55
|
@EXPORT_OK = qw(EscapeXML UnescapeXML);
|
56
56
|
|
57
57
|
sub ProcessXMP($$;$);
|
58
58
|
sub WriteXMP($$;$);
|
59
|
-
sub CheckXMP(
|
59
|
+
sub CheckXMP($$$;$);
|
60
60
|
sub ParseXMPElement($$$;$$$$);
|
61
61
|
sub DecodeBase64($);
|
62
62
|
sub EncodeBase64($;$);
|
@@ -467,6 +467,19 @@ my %sCorrectionMask = (
|
|
467
467
|
CenterValue => { Writable => 'real', List => 0 },
|
468
468
|
PerimeterValue=>{ Writable => 'real', List => 0 },
|
469
469
|
);
|
470
|
+
my %sCorrectionRangeMask = (
|
471
|
+
STRUCT_NAME => 'CorrectionRangeMask',
|
472
|
+
NAMESPACE => 'crs',
|
473
|
+
Version => { },
|
474
|
+
Type => { },
|
475
|
+
ColorAmount => { Writable => 'real' },
|
476
|
+
LumMin => { Writable => 'real' },
|
477
|
+
LumMax => { Writable => 'real' },
|
478
|
+
LumFeather => { Writable => 'real' },
|
479
|
+
DepthMin => { Writable => 'real' },
|
480
|
+
DepthMax => { Writable => 'real' },
|
481
|
+
DepthFeather=> { Writable => 'real' },
|
482
|
+
);
|
470
483
|
my %sCorrection = (
|
471
484
|
STRUCT_NAME => 'Correction',
|
472
485
|
NAMESPACE => 'crs',
|
@@ -491,6 +504,15 @@ my %sCorrection = (
|
|
491
504
|
LocalDefringe => { FlatName => 'Defringe', Writable => 'real', List => 0 },
|
492
505
|
LocalTemperature => { FlatName => 'Temperature',Writable => 'real', List => 0 },
|
493
506
|
LocalTint => { FlatName => 'Tint', Writable => 'real', List => 0 },
|
507
|
+
LocalHue => { FlatName => 'Hue', Writable => 'real', List => 0 },
|
508
|
+
LocalWhites2012 => { FlatName => 'Whites2012', Writable => 'real', List => 0 },
|
509
|
+
LocalBlacks2012 => { FlatName => 'Blacks2012', Writable => 'real', List => 0 },
|
510
|
+
LocalDehaze => { FlatName => 'Dehaze', Writable => 'real', List => 0 },
|
511
|
+
LocalTexture => { FlatName => 'Texture', Writable => 'real', List => 0 },
|
512
|
+
CorrectionRangeMask => {
|
513
|
+
FlatName => 'RangeMask',
|
514
|
+
Struct => \%sCorrectionRangeMask,
|
515
|
+
},
|
494
516
|
CorrectionMasks => {
|
495
517
|
FlatName => 'Mask',
|
496
518
|
Struct => \%sCorrectionMask,
|
@@ -2311,6 +2333,7 @@ my %sPantryItem = (
|
|
2311
2333
|
Location => { Groups => { 2 => 'Location' } },
|
2312
2334
|
Scene => { Groups => { 2 => 'Other' }, List => 'Bag' },
|
2313
2335
|
SubjectCode => { Groups => { 2 => 'Other' }, List => 'Bag' },
|
2336
|
+
# Copyright - have seen this in a sample (Jan 2021), but I think it is non-standard
|
2314
2337
|
);
|
2315
2338
|
|
2316
2339
|
# Adobe Lightroom namespace properties (lr) (ref PH)
|
@@ -3306,6 +3329,9 @@ NoLoop:
|
|
3306
3329
|
} else {
|
3307
3330
|
$val = ConvertXMPDate($val, $new) if $new or $fmt eq 'date';
|
3308
3331
|
}
|
3332
|
+
if ($$et{XmpValidate} and $fmt and $fmt eq 'boolean') {
|
3333
|
+
$et->WarnOnce("Boolean value for XMP-$ns:$$tagInfo{Name} should be capitalized",1);
|
3334
|
+
}
|
3309
3335
|
# protect against large binary data in unknown tags
|
3310
3336
|
$$tagInfo{Binary} = 1 if $new and length($val) > 65536;
|
3311
3337
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exiftool_vendored
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.
|
4
|
+
version: 12.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew McEachen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-02-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: exiftool
|
@@ -123,6 +123,34 @@ dependencies:
|
|
123
123
|
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: rubocop-minitest
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - ">="
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '0'
|
140
|
+
- !ruby/object:Gem::Dependency
|
141
|
+
name: rubocop-rake
|
142
|
+
requirement: !ruby/object:Gem::Requirement
|
143
|
+
requirements:
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: '0'
|
147
|
+
type: :development
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - ">="
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: '0'
|
126
154
|
- !ruby/object:Gem::Dependency
|
127
155
|
name: simplecov
|
128
156
|
requirement: !ruby/object:Gem::Requirement
|
@@ -352,6 +380,7 @@ files:
|
|
352
380
|
- bin/lib/Image/ExifTool/Nikon.pm
|
353
381
|
- bin/lib/Image/ExifTool/NikonCapture.pm
|
354
382
|
- bin/lib/Image/ExifTool/NikonCustom.pm
|
383
|
+
- bin/lib/Image/ExifTool/NikonSettings.pm
|
355
384
|
- bin/lib/Image/ExifTool/Nintendo.pm
|
356
385
|
- bin/lib/Image/ExifTool/OOXML.pm
|
357
386
|
- bin/lib/Image/ExifTool/Ogg.pm
|
@@ -436,7 +465,11 @@ homepage: https://github.com/exiftool-rb/exiftool_vendored.rb
|
|
436
465
|
licenses:
|
437
466
|
- MIT
|
438
467
|
metadata: {}
|
439
|
-
post_install_message:
|
468
|
+
post_install_message: "\n ***********************\n * Ruby Support Notice *\n
|
469
|
+
\ ***********************\n\n Starting March 31, 2021 releases of `exiftool_vendored`
|
470
|
+
Gem will no longer support following\n Ruby Versions due to their End Of Life
|
471
|
+
(https://www.ruby-lang.org/en/downloads/branches/)\n - Ruby 2.4 (EOL 2020-03-31)\n
|
472
|
+
\ - Ruby 2.5 (EOL 2021-03-31)\n "
|
440
473
|
rdoc_options: []
|
441
474
|
require_paths:
|
442
475
|
- lib
|