exiftool-vendored.pl 12.67.0 → 12.69.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 +40 -2
- package/bin/MANIFEST +5 -0
- package/bin/META.json +1 -1
- package/bin/META.yml +1 -1
- package/bin/README +7 -7
- package/bin/exiftool +21 -16
- package/bin/lib/Image/ExifTool/Canon.pm +25 -1
- package/bin/lib/Image/ExifTool/DNG.pm +25 -2
- package/bin/lib/Image/ExifTool/Exif.pm +95 -13
- package/bin/lib/Image/ExifTool/FujiFilm.pm +17 -1
- package/bin/lib/Image/ExifTool/Geotag.pm +16 -11
- package/bin/lib/Image/ExifTool/Nikon.pm +38 -11
- package/bin/lib/Image/ExifTool/PNG.pm +14 -7
- package/bin/lib/Image/ExifTool/Panasonic.pm +13 -9
- package/bin/lib/Image/ExifTool/Pentax.pm +6 -1
- package/bin/lib/Image/ExifTool/PhotoMechanic.pm +2 -1
- package/bin/lib/Image/ExifTool/QuickTime.pm +62 -52
- package/bin/lib/Image/ExifTool/README +7 -3
- package/bin/lib/Image/ExifTool/RIFF.pm +8 -2
- package/bin/lib/Image/ExifTool/Sony.pm +66 -21
- package/bin/lib/Image/ExifTool/TagLookup.pm +6881 -6710
- package/bin/lib/Image/ExifTool/TagNames.pod +445 -32
- package/bin/lib/Image/ExifTool/Validate.pm +18 -16
- package/bin/lib/Image/ExifTool/WriteCanonRaw.pl +2 -2
- package/bin/lib/Image/ExifTool/WriteExif.pl +14 -4
- package/bin/lib/Image/ExifTool/WriteQuickTime.pl +2 -0
- package/bin/lib/Image/ExifTool/WriteRIFF.pl +22 -3
- package/bin/lib/Image/ExifTool/Writer.pl +52 -11
- package/bin/lib/Image/ExifTool/XISF.pm +185 -0
- package/bin/lib/Image/ExifTool/XMP.pm +67 -2
- package/bin/lib/Image/ExifTool/XMP2.pl +35 -0
- package/bin/lib/Image/ExifTool.pm +36 -15
- package/bin/lib/Image/ExifTool.pod +5 -5
- package/bin/perl-Image-ExifTool.spec +6 -6
- package/bin/pp_build_exe.args +5 -4
- package/package.json +1 -1
package/bin/Changes
CHANGED
|
@@ -7,6 +7,44 @@ RSS feed: https://exiftool.org/rss.xml
|
|
|
7
7
|
Note: The most recent production release is Version 12.60. (Other versions are
|
|
8
8
|
considered development releases, and are not uploaded to MetaCPAN.)
|
|
9
9
|
|
|
10
|
+
Oct. 26, 2023 - Version 12.69
|
|
11
|
+
|
|
12
|
+
- Added support for DNG version 1.7.0.0
|
|
13
|
+
- Added a new XMP-GCamera tag
|
|
14
|
+
- Added a number of new Nikon Z lenses (thanks Warren Hatch and Stefan)
|
|
15
|
+
- Added a number of new XMP-crs tags
|
|
16
|
+
- Extract XML metadata from some Hasselblad images
|
|
17
|
+
- Tweaked -fast2 option to read metadata from inside mdat atom of HEIC images
|
|
18
|
+
- Patched FFF reader to be more tolerant of the mess made by incompetent
|
|
19
|
+
Hasselblad programmers (wrong IFD count for some values)
|
|
20
|
+
- Patched WebP reader to be more tolerant of the mess made by incompetent
|
|
21
|
+
Google programmers (EXIF with wrong header and XMP with wrong ID)
|
|
22
|
+
- Fixed problem which could cause "use of uninitialized variable" warnings
|
|
23
|
+
when reading images from some Nikon cameras
|
|
24
|
+
- Fixed List type for new XMP-photomech:CreatorIdentity tag
|
|
25
|
+
|
|
26
|
+
Oct. 16, 2023 - Version 12.68
|
|
27
|
+
|
|
28
|
+
- Added preliminary read support for XISF images
|
|
29
|
+
- Added the ability to delete JUMBF metadata from PNG images
|
|
30
|
+
- Added support for writing Canon burst-roll CR3 images
|
|
31
|
+
- Added a new Nikon Z9 SubjectDetection value, and improved Zf support (thanks
|
|
32
|
+
Warren Hatch)
|
|
33
|
+
- Added a couple of new PentaxModelID values
|
|
34
|
+
- Added a few couple of new tag values for the Pentax K-3 Mark III Monochrome (github #226)
|
|
35
|
+
- Added a new XMP-photomech tag
|
|
36
|
+
- Added a new QuickTime ItemList tag
|
|
37
|
+
- Added a new Nikon LensID
|
|
38
|
+
- Added a new Canon LensType
|
|
39
|
+
- Support decimal values for FujiFilm ShadowTone and HighlightTone tags
|
|
40
|
+
- Decode some new Sony tags (thanks Jos Roost)
|
|
41
|
+
- Decode ShutterCount for Canon EOS R6 (thanks gamin)
|
|
42
|
+
- Decode QuickTime VideoFullRangeFlag
|
|
43
|
+
- Decode JPGCompression for the Nikon D3S
|
|
44
|
+
- Enhanced -geotag feature to allow writing QuickTime:GPSCoordinates
|
|
45
|
+
- Renamed Panasonic HDRShot tag to MergedImages (forum 15298)
|
|
46
|
+
- Fixed problem where some NEF files were misidentified as NRW
|
|
47
|
+
|
|
10
48
|
Sept. 19, 2023 - Version 12.67
|
|
11
49
|
|
|
12
50
|
- Added a new Pentax LensType (thanks dmont)
|
|
@@ -155,6 +193,8 @@ Apr. 5, 2023 - Version 12.60 (production release)
|
|
|
155
193
|
- Fixed problem where setting the Geotime value didn't work when using an
|
|
156
194
|
advanced-formatting expression containing a greater-than symbol (>)
|
|
157
195
|
|
|
196
|
+
History of older versions (back to Nov. 19, 2003 - Version 1.00) -->
|
|
197
|
+
|
|
158
198
|
Mar. 28, 2023 - Version 12.59
|
|
159
199
|
|
|
160
200
|
- COMPATIBILITY WARNING: Changed the calculated ImageDataMD5 for JPEG images
|
|
@@ -343,8 +383,6 @@ Nov. 8, 2022 - Version 12.50 (production release)
|
|
|
343
383
|
- Fixed inconsistent year and time zone for Kenwood dashcam timed GPS in MP4
|
|
344
384
|
videos
|
|
345
385
|
|
|
346
|
-
History of older versions (back to Nov. 19, 2003 - Version 1.00) -->
|
|
347
|
-
|
|
348
386
|
Oct. 19, 2022 - Version 12.49
|
|
349
387
|
|
|
350
388
|
- Added read support for Windows ICO and CUR files
|
package/bin/MANIFEST
CHANGED
|
@@ -179,6 +179,7 @@ html/TagNames/VCard.html
|
|
|
179
179
|
html/TagNames/Vorbis.html
|
|
180
180
|
html/TagNames/WPG.html
|
|
181
181
|
html/TagNames/WTV.html
|
|
182
|
+
html/TagNames/XISF.html
|
|
182
183
|
html/TagNames/XMP.html
|
|
183
184
|
html/TagNames/ZIP.html
|
|
184
185
|
html/TagNames/ZISRAW.html
|
|
@@ -432,6 +433,7 @@ lib/Image/ExifTool/WriteQuickTime.pl
|
|
|
432
433
|
lib/Image/ExifTool/WriteRIFF.pl
|
|
433
434
|
lib/Image/ExifTool/WriteXMP.pl
|
|
434
435
|
lib/Image/ExifTool/Writer.pl
|
|
436
|
+
lib/Image/ExifTool/XISF.pm
|
|
435
437
|
lib/Image/ExifTool/XMP.pm
|
|
436
438
|
lib/Image/ExifTool/XMP2.pl
|
|
437
439
|
lib/Image/ExifTool/XMPStruct.pl
|
|
@@ -916,6 +918,8 @@ t/Writer_6.out
|
|
|
916
918
|
t/Writer_60.out
|
|
917
919
|
t/Writer_7.out
|
|
918
920
|
t/Writer_9.out
|
|
921
|
+
t/XISF.t
|
|
922
|
+
t/XISF_2.out
|
|
919
923
|
t/XMP.t
|
|
920
924
|
t/XMP_10.out
|
|
921
925
|
t/XMP_11.out
|
|
@@ -1144,6 +1148,7 @@ t/images/Vorbis.ogg
|
|
|
1144
1148
|
t/images/WPG.wpg
|
|
1145
1149
|
t/images/WTV.wtv
|
|
1146
1150
|
t/images/Writer.jpg
|
|
1151
|
+
t/images/XISF.xisf
|
|
1147
1152
|
t/images/XMP.inx
|
|
1148
1153
|
t/images/XMP.jpg
|
|
1149
1154
|
t/images/XMP.svg
|
package/bin/META.json
CHANGED
package/bin/META.yml
CHANGED
package/bin/README
CHANGED
|
@@ -51,11 +51,11 @@ supported by ExifTool (r = read, w = write, c = create):
|
|
|
51
51
|
DCP r/w | ICO r | MPG r | PSB r/w | WV r
|
|
52
52
|
DCR r | ICS r | MPO r/w | PSD r/w | X3F r/w
|
|
53
53
|
DFONT r | IDML r | MQV r/w | PSP r | XCF r
|
|
54
|
-
DIVX r | IIQ r/w | MRC r | QTIF r/w |
|
|
55
|
-
DJVU r | IND r/w | MRW r/w | R3D r |
|
|
56
|
-
DLL r | INSP r/w | MXF r | RA r |
|
|
57
|
-
DNG r/w | INSV r | NEF r/w | RAF r/w |
|
|
58
|
-
DOC r | INX r | NKSC r/w | RAM r |
|
|
54
|
+
DIVX r | IIQ r/w | MRC r | QTIF r/w | XISF r
|
|
55
|
+
DJVU r | IND r/w | MRW r/w | R3D r | XLS r
|
|
56
|
+
DLL r | INSP r/w | MXF r | RA r | XLSX r
|
|
57
|
+
DNG r/w | INSV r | NEF r/w | RAF r/w | XMP r/w/c
|
|
58
|
+
DOC r | INX r | NKSC r/w | RAM r | ZIP r
|
|
59
59
|
DOCX r | ISO r | NRW r/w | RAR r |
|
|
60
60
|
|
|
61
61
|
Meta Information
|
|
@@ -108,8 +108,8 @@ your home directory, then you would type the following commands in a
|
|
|
108
108
|
terminal window to extract and run ExifTool:
|
|
109
109
|
|
|
110
110
|
cd ~/Desktop
|
|
111
|
-
gzip -dc Image-ExifTool-12.
|
|
112
|
-
cd Image-ExifTool-12.
|
|
111
|
+
gzip -dc Image-ExifTool-12.69.tar.gz | tar -xf -
|
|
112
|
+
cd Image-ExifTool-12.69
|
|
113
113
|
./exiftool t/images/ExifTool.jpg
|
|
114
114
|
|
|
115
115
|
Note: These commands extract meta information from one of the test images.
|
package/bin/exiftool
CHANGED
|
@@ -11,7 +11,7 @@ use strict;
|
|
|
11
11
|
use warnings;
|
|
12
12
|
require 5.004;
|
|
13
13
|
|
|
14
|
-
my $version = '12.
|
|
14
|
+
my $version = '12.69';
|
|
15
15
|
|
|
16
16
|
# add our 'lib' directory to the include list BEFORE 'use Image::ExifTool'
|
|
17
17
|
my $exePath;
|
|
@@ -4665,11 +4665,11 @@ supported by ExifTool (r = read, w = write, c = create):
|
|
|
4665
4665
|
DCP r/w | ICO r | MPG r | PSB r/w | WV r
|
|
4666
4666
|
DCR r | ICS r | MPO r/w | PSD r/w | X3F r/w
|
|
4667
4667
|
DFONT r | IDML r | MQV r/w | PSP r | XCF r
|
|
4668
|
-
DIVX r | IIQ r/w | MRC r | QTIF r/w |
|
|
4669
|
-
DJVU r | IND r/w | MRW r/w | R3D r |
|
|
4670
|
-
DLL r | INSP r/w | MXF r | RA r |
|
|
4671
|
-
DNG r/w | INSV r | NEF r/w | RAF r/w |
|
|
4672
|
-
DOC r | INX r | NKSC r/w | RAM r |
|
|
4668
|
+
DIVX r | IIQ r/w | MRC r | QTIF r/w | XISF r
|
|
4669
|
+
DJVU r | IND r/w | MRW r/w | R3D r | XLS r
|
|
4670
|
+
DLL r | INSP r/w | MXF r | RA r | XLSX r
|
|
4671
|
+
DNG r/w | INSV r | NEF r/w | RAF r/w | XMP r/w/c
|
|
4672
|
+
DOC r | INX r | NKSC r/w | RAM r | ZIP r
|
|
4673
4673
|
DOCX r | ISO r | NRW r/w | RAR r |
|
|
4674
4674
|
|
|
4675
4675
|
Meta Information
|
|
@@ -5582,7 +5582,7 @@ with this command:
|
|
|
5582
5582
|
|
|
5583
5583
|
produces output like this:
|
|
5584
5584
|
|
|
5585
|
-
-- Generated by ExifTool 12.
|
|
5585
|
+
-- Generated by ExifTool 12.69 --
|
|
5586
5586
|
File: a.jpg - 2003:10:31 15:44:19
|
|
5587
5587
|
(f/5.6, 1/60s, ISO 100)
|
|
5588
5588
|
File: b.jpg - 2006:05:23 11:57:38
|
|
@@ -6418,10 +6418,14 @@ from the track log, and they are supported by the destination metadata
|
|
|
6418
6418
|
format): GPSLatitude, GPSLatitudeRef, GPSLongitude, GPSLongitudeRef,
|
|
6419
6419
|
GPSAltitude, GPSAltitudeRef, GPSDateStamp, GPSTimeStamp, GPSDateTime,
|
|
6420
6420
|
GPSTrack, GPSTrackRef, GPSSpeed, GPSSpeedRef, GPSImgDirection,
|
|
6421
|
-
GPSImgDirectionRef, GPSPitch, GPSRoll, AmbientTemperature
|
|
6422
|
-
CameraElevationAngle. By default, tags are created in
|
|
6423
|
-
XMP only if they already exist.
|
|
6424
|
-
|
|
6421
|
+
GPSImgDirectionRef, GPSPitch, GPSRoll, GPSCoordinates, AmbientTemperature
|
|
6422
|
+
and CameraElevationAngle. By default, in image files tags are created in
|
|
6423
|
+
EXIF, and updated in XMP only if they already exist. In QuickTime-format
|
|
6424
|
+
files GPSCoordinates is created in the preferred location (ItemList by
|
|
6425
|
+
default) as well as in XMP. However, C<EXIF:Geotime>, C<XMP:Geotime> or
|
|
6426
|
+
C<QuickTime:Geotime> may be specified to write to write only to one group.
|
|
6427
|
+
Also, C<ItemList:Geotime>, C<Keys:Geotime> or C<UserData:Geotime> may be
|
|
6428
|
+
used to write to a specific location in QuickTime-format files. Note that
|
|
6425
6429
|
GPSPitch and GPSRoll are non-standard, and require user-defined tags in
|
|
6426
6430
|
order to be written.
|
|
6427
6431
|
|
|
@@ -6544,11 +6548,12 @@ options on the command line.
|
|
|
6544
6548
|
|
|
6545
6549
|
Load specified configuration file instead of the default ".ExifTool_config".
|
|
6546
6550
|
If used, this option must come before all other arguments on the command
|
|
6547
|
-
line and applies to all B<-execute>'d commands.
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
|
|
6551
|
+
line and applies to all B<-execute>'d commands. This file is used to create
|
|
6552
|
+
user-defined tags as well as set default ExifTool options. The I<CFGFILE>
|
|
6553
|
+
must exist relative to the current working directory or the exiftool
|
|
6554
|
+
application directory unless an absolute path is specified. Loading of the
|
|
6555
|
+
default config file may be disabled by setting I<CFGFILE> to an empty string
|
|
6556
|
+
(ie. ""). See L<https://exiftool.org/config.html> and
|
|
6552
6557
|
config_files/example.config in the full ExifTool distribution for details
|
|
6553
6558
|
about the configuration file syntax.
|
|
6554
6559
|
|
|
@@ -88,7 +88,7 @@ sub ProcessCTMD($$$);
|
|
|
88
88
|
sub ProcessExifInfo($$$);
|
|
89
89
|
sub SwapWords($);
|
|
90
90
|
|
|
91
|
-
$VERSION = '4.
|
|
91
|
+
$VERSION = '4.70';
|
|
92
92
|
|
|
93
93
|
# Note: Removed 'USM' from 'L' lenses since it is redundant - PH
|
|
94
94
|
# (or is it? Ref 32 shows 5 non-USM L-type lenses)
|
|
@@ -490,6 +490,7 @@ $VERSION = '4.68';
|
|
|
490
490
|
'368.11' => 'Sigma 70mm f/2.8 DG Macro', #IB (A018)
|
|
491
491
|
'368.12' => 'Sigma 18-35mm f/1.8 DC HSM | A', #50
|
|
492
492
|
'368.13' => 'Sigma 24-105mm f/4 DG OS HSM | A', #forum3833
|
|
493
|
+
'368.14' => 'Sigma 18-300mm f/3.5-6.3 DC Macro OS HSM | C', #forum15280 (014)
|
|
493
494
|
# Note: LensType 488 (0x1e8) is reported as 232 (0xe8) in 7D CameraSettings
|
|
494
495
|
488 => 'Canon EF-S 15-85mm f/3.5-5.6 IS USM', #PH
|
|
495
496
|
489 => 'Canon EF 70-300mm f/4-5.6L IS USM', #Gerald Kapounek
|
|
@@ -1389,6 +1390,11 @@ my %offOn = ( 0 => 'Off', 1 => 'On' );
|
|
|
1389
1390
|
Condition => '$$self{Model} =~ /\b(1200D|REBEL T5|Kiss X70)\b/',
|
|
1390
1391
|
SubDirectory => { TagTable => 'Image::ExifTool::Canon::CameraInfo60D' },
|
|
1391
1392
|
},
|
|
1393
|
+
{
|
|
1394
|
+
Name => 'CanonCameraInfoR6',
|
|
1395
|
+
Condition => '$$self{Model} =~ /\bEOS R6$/',
|
|
1396
|
+
SubDirectory => { TagTable => 'Image::ExifTool::Canon::CameraInfoR6' },
|
|
1397
|
+
},
|
|
1392
1398
|
{
|
|
1393
1399
|
Name => 'CanonCameraInfoPowerShot',
|
|
1394
1400
|
# valid if format is int32u[138] or int32u[148]
|
|
@@ -4695,6 +4701,19 @@ my %ciMaxFocal = (
|
|
|
4695
4701
|
},
|
|
4696
4702
|
);
|
|
4697
4703
|
|
|
4704
|
+
%Image::ExifTool::Canon::CameraInfoR6 = (
|
|
4705
|
+
%binaryDataAttrs,
|
|
4706
|
+
FIRST_ENTRY => 0,
|
|
4707
|
+
PRIORITY => 0,
|
|
4708
|
+
GROUPS => { 0 => 'MakerNotes', 2 => 'Camera' },
|
|
4709
|
+
NOTES => 'CameraInfo tags for the EOS R6.',
|
|
4710
|
+
0x0af1 => { #forum15210
|
|
4711
|
+
Name => 'ShutterCount',
|
|
4712
|
+
Format => 'int32u',
|
|
4713
|
+
Notes => 'includes electronic + mechanical shutter',
|
|
4714
|
+
},
|
|
4715
|
+
);
|
|
4716
|
+
|
|
4698
4717
|
# Canon camera information for 70D (MakerNotes tag 0x0d) (ref PH)
|
|
4699
4718
|
%Image::ExifTool::Canon::CameraInfo70D = (
|
|
4700
4719
|
%binaryDataAttrs,
|
|
@@ -9081,6 +9100,11 @@ my %filterConv = (
|
|
|
9081
9100
|
CMT3 => { # (CR3 files)
|
|
9082
9101
|
Name => 'MakerNoteCanon',
|
|
9083
9102
|
PreservePadding => 1,
|
|
9103
|
+
Writable => 'undef', # (writable directory!)
|
|
9104
|
+
# (note that ExifTool 12.68 and earlier lacked the ability to write this as a block,
|
|
9105
|
+
# and would instead add the maker notes the the CMT2 ExifIFD. To remove these
|
|
9106
|
+
# incorrectly-placed maker notes, use "exiftool -exififd:makernotes= FILE")
|
|
9107
|
+
MakerNotes => 1,
|
|
9084
9108
|
SubDirectory => {
|
|
9085
9109
|
TagTable => 'Image::ExifTool::Canon::Main',
|
|
9086
9110
|
ProcessProc => \&ProcessCMT3,
|
|
@@ -17,7 +17,7 @@ use Image::ExifTool::Exif;
|
|
|
17
17
|
use Image::ExifTool::MakerNotes;
|
|
18
18
|
use Image::ExifTool::CanonRaw;
|
|
19
19
|
|
|
20
|
-
$VERSION = '1.
|
|
20
|
+
$VERSION = '1.24';
|
|
21
21
|
|
|
22
22
|
sub ProcessOriginalRaw($$$);
|
|
23
23
|
sub ProcessAdobeData($$$);
|
|
@@ -120,6 +120,25 @@ sub WriteAdobeStuff($$$);
|
|
|
120
120
|
},
|
|
121
121
|
);
|
|
122
122
|
|
|
123
|
+
# (DNG 1.7)
|
|
124
|
+
%Image::ExifTool::DNG::ImageSeq = (
|
|
125
|
+
PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
|
|
126
|
+
0 => { Name => 'SeqID', Format => 'var_string' },
|
|
127
|
+
1 => { Name => 'SeqType', Format => 'var_string' },
|
|
128
|
+
2 => { Name => 'SeqFrameInfo', Format => 'var_string' },
|
|
129
|
+
3 => { Name => 'SeqIndex', Format => 'int32u' },
|
|
130
|
+
7 => { Name => 'SeqCount', Format => 'int32u' },
|
|
131
|
+
11 => { Name => 'SeqFinal', Format => 'int8u', PrintConv => { 0 => 'No', 1 => 'Yes' } },
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
# (DNG 1.7)
|
|
135
|
+
%Image::ExifTool::DNG::ProfileDynamicRange = (
|
|
136
|
+
PROCESS_PROC => \&Image::ExifTool::ProcessBinaryData,
|
|
137
|
+
0 => { Name => 'PDRVersion', Format => 'int16u' },
|
|
138
|
+
2 => { Name => 'DynamicRange', Format => 'int16u', PrintConv => { 0 => 'Standard', 1 => 'High' } },
|
|
139
|
+
4 => { Name => 'HintMaxOutputValue', Format => 'float' },
|
|
140
|
+
);
|
|
141
|
+
|
|
123
142
|
# fill in maker notes
|
|
124
143
|
{
|
|
125
144
|
my $tagInfo;
|
|
@@ -786,7 +805,11 @@ sub ProcessAdobeMakN($$$)
|
|
|
786
805
|
return 1 unless $$tagInfo{Writable};
|
|
787
806
|
}
|
|
788
807
|
$val = substr($$dataPt, 20) unless defined $val;
|
|
789
|
-
$et->FoundTag($tagInfo, $val);
|
|
808
|
+
my $key = $et->FoundTag($tagInfo, $val);
|
|
809
|
+
if ($$et{MAKER_NOTE_FIXUP}) {
|
|
810
|
+
$$et{TAG_EXTRA}{$key}{Fixup} = $$et{MAKER_NOTE_FIXUP};
|
|
811
|
+
delete $$et{MAKER_NOTE_FIXUP};
|
|
812
|
+
}
|
|
790
813
|
}
|
|
791
814
|
}
|
|
792
815
|
return 1;
|
|
@@ -57,7 +57,7 @@ use vars qw($VERSION $AUTOLOAD @formatSize @formatName %formatNumber %intFormat
|
|
|
57
57
|
use Image::ExifTool qw(:DataAccess :Utils);
|
|
58
58
|
use Image::ExifTool::MakerNotes;
|
|
59
59
|
|
|
60
|
-
$VERSION = '4.
|
|
60
|
+
$VERSION = '4.45';
|
|
61
61
|
|
|
62
62
|
sub ProcessExif($$$);
|
|
63
63
|
sub WriteExif($$$);
|
|
@@ -250,6 +250,7 @@ $formatName[129] = 'utf8'; # (Exif 3.0)
|
|
|
250
250
|
34927 => 'WebP', #LibTiff
|
|
251
251
|
34933 => 'PNG', # (TIFF mail list)
|
|
252
252
|
34934 => 'JPEG XR', # (TIFF mail list)
|
|
253
|
+
52546 => 'JPEG XL', # (DNG 1.7)
|
|
253
254
|
65000 => 'Kodak DCR Compressed', #PH
|
|
254
255
|
65535 => 'Pentax PEF Compressed', #Jens
|
|
255
256
|
);
|
|
@@ -3077,14 +3078,31 @@ my %opcodeInfo = (
|
|
|
3077
3078
|
},
|
|
3078
3079
|
PrintConvInv => '$val =~ /^PrintIM/ ? $val : undef', # quick validation
|
|
3079
3080
|
},
|
|
3081
|
+
0xc519 => { # (Hasselblad X2D)
|
|
3082
|
+
Name => 'HasselbladXML',
|
|
3083
|
+
Format => 'undef',
|
|
3084
|
+
TruncateOK => 1, # (incorrect size written by X2D)
|
|
3085
|
+
SubDirectory => {
|
|
3086
|
+
DirName => 'XML',
|
|
3087
|
+
TagTable => 'Image::ExifTool::PLIST::Main',
|
|
3088
|
+
Start => '$valuePtr + 4',
|
|
3089
|
+
},
|
|
3090
|
+
},
|
|
3080
3091
|
0xc51b => { # (Hasselblad H3D)
|
|
3081
3092
|
Name => 'HasselbladExif',
|
|
3082
3093
|
Format => 'undef',
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3094
|
+
SubDirectory => {
|
|
3095
|
+
Start => '$valuePtr',
|
|
3096
|
+
Base => '$start',
|
|
3097
|
+
TagTable => 'Image::ExifTool::Exif::Main',
|
|
3098
|
+
ProcessProc => \&Image::ExifTool::ProcessSubTIFF,
|
|
3099
|
+
# Writing this is problematic due to the braindead Hasselblad programmers.
|
|
3100
|
+
# One problem is that some values run outside the HasselbladExif data so they
|
|
3101
|
+
# will be lost if we do a simple copy (which is what we are currently doing
|
|
3102
|
+
# by returning undef from the WriteProc), but we can't rebuild this directory
|
|
3103
|
+
# by writing it properly because there is an erroneous StripByteCounts value
|
|
3104
|
+
# written by the X2D 100C that renders the data unreadable
|
|
3105
|
+
WriteProc => sub { return undef },
|
|
3088
3106
|
},
|
|
3089
3107
|
},
|
|
3090
3108
|
0xc573 => { #PH
|
|
@@ -3123,7 +3141,7 @@ my %opcodeInfo = (
|
|
|
3123
3141
|
0xc612 => {
|
|
3124
3142
|
Name => 'DNGVersion',
|
|
3125
3143
|
Notes => q{
|
|
3126
|
-
tags 0xc612-
|
|
3144
|
+
tags 0xc612-0xcd48 are defined by the DNG specification unless otherwise
|
|
3127
3145
|
noted. See L<https://helpx.adobe.com/photoshop/digital-negative.html> for
|
|
3128
3146
|
the specification
|
|
3129
3147
|
},
|
|
@@ -3609,6 +3627,11 @@ my %opcodeInfo = (
|
|
|
3609
3627
|
Writable => 'int16u',
|
|
3610
3628
|
WriteGroup => 'IFD0',
|
|
3611
3629
|
Protected => 1,
|
|
3630
|
+
PrintConv => {
|
|
3631
|
+
0 => 'Scene-referred',
|
|
3632
|
+
1 => 'Output-referred (ICC Profile Dynamic Range)',
|
|
3633
|
+
2 => 'Output-referred (High Dyanmic Range)', # DNG 1.7
|
|
3634
|
+
},
|
|
3612
3635
|
},
|
|
3613
3636
|
0xc6c5 => { Name => 'SRawType', Description => 'SRaw Type', WriteGroup => 'IFD0' }, #exifprobe (CR2 proprietary)
|
|
3614
3637
|
0xc6d2 => { #JD (Panasonic DMC-TZ5)
|
|
@@ -4133,7 +4156,7 @@ my %opcodeInfo = (
|
|
|
4133
4156
|
0xcd2d => { # DNG 1.6
|
|
4134
4157
|
Name => 'ProfileGainTableMap',
|
|
4135
4158
|
Writable => 'undef',
|
|
4136
|
-
WriteGroup => 'SubIFD',
|
|
4159
|
+
WriteGroup => 'SubIFD', # (according to DNG 1.7 docs, this was an error and it should have been IFD0)
|
|
4137
4160
|
Protected => 1,
|
|
4138
4161
|
Binary => 1,
|
|
4139
4162
|
},
|
|
@@ -4221,6 +4244,51 @@ my %opcodeInfo = (
|
|
|
4221
4244
|
WriteGroup => 'IFD0',
|
|
4222
4245
|
Protected => 1,
|
|
4223
4246
|
},
|
|
4247
|
+
0xcd40 => { # DNG 1.7
|
|
4248
|
+
Name => 'ProfileGainTableMap2',
|
|
4249
|
+
Writable => 'undef',
|
|
4250
|
+
WriteGroup => 'IFD0',
|
|
4251
|
+
Protected => 1,
|
|
4252
|
+
Binary => 1,
|
|
4253
|
+
},
|
|
4254
|
+
0xcd43 => { # DNG 1.7
|
|
4255
|
+
Name => 'ColumnInterleaveFactor',
|
|
4256
|
+
Writable => 'int32u',
|
|
4257
|
+
WriteGroup => 'SubIFD',
|
|
4258
|
+
Protected => 1,
|
|
4259
|
+
},
|
|
4260
|
+
0xcd44 => { # DNG 1.7
|
|
4261
|
+
Name => 'ImageSequenceInfo',
|
|
4262
|
+
Writable => 'undef',
|
|
4263
|
+
WriteGroup => 'IFD0',
|
|
4264
|
+
SubDirectory => {
|
|
4265
|
+
TagTable => 'Image::ExifTool::DNG::ImageSeq',
|
|
4266
|
+
ByteOrder => 'BigEndian',
|
|
4267
|
+
},
|
|
4268
|
+
},
|
|
4269
|
+
0xcd46 => { # DNG 1.7
|
|
4270
|
+
Name => 'ImageStats',
|
|
4271
|
+
Writable => 'undef',
|
|
4272
|
+
WriteGroup => 'IFD0',
|
|
4273
|
+
Binary => 1,
|
|
4274
|
+
Protected => 1,
|
|
4275
|
+
},
|
|
4276
|
+
0xcd47 => { # DNG 1.7
|
|
4277
|
+
Name => 'ProfileDynamicRange',
|
|
4278
|
+
Writable => 'undef',
|
|
4279
|
+
WriteGroup => 'IFD0',
|
|
4280
|
+
SubDirectory => {
|
|
4281
|
+
TagTable => 'Image::ExifTool::DNG::ProfileDynamicRange',
|
|
4282
|
+
ByteOrder => 'BigEndian', # (not indicated in spec)
|
|
4283
|
+
},
|
|
4284
|
+
},
|
|
4285
|
+
0xcd48 => { # DNG 1.7
|
|
4286
|
+
Name => 'ProfileGroupName',
|
|
4287
|
+
Writable => 'string',
|
|
4288
|
+
Format => 'string',
|
|
4289
|
+
WriteGroup => 'IFD0',
|
|
4290
|
+
Protected => 1,
|
|
4291
|
+
},
|
|
4224
4292
|
0xea1c => { #13
|
|
4225
4293
|
Name => 'Padding',
|
|
4226
4294
|
Binary => 1,
|
|
@@ -5944,6 +6012,12 @@ sub ProcessExif($$$)
|
|
|
5944
6012
|
my $inMakerNotes = $$tagTablePtr{GROUPS}{0} eq 'MakerNotes';
|
|
5945
6013
|
my $isExif = ($tagTablePtr eq \%Image::ExifTool::Exif::Main);
|
|
5946
6014
|
|
|
6015
|
+
# warn for incorrect maker notes in CR3 files
|
|
6016
|
+
if ($$dirInfo{DirName} eq 'MakerNotes' and $$et{FileType} eq 'CR3' and
|
|
6017
|
+
$$dirInfo{Parent} and $$dirInfo{Parent} eq 'ExifIFD')
|
|
6018
|
+
{
|
|
6019
|
+
$et->WarnOnce("MakerNotes shouldn't exist ExifIFD of CR3 image", 1);
|
|
6020
|
+
}
|
|
5947
6021
|
# set flag to calculate image data hash if requested
|
|
5948
6022
|
$doHash = 1 if $$et{ImageDataHash} and (($$et{FILE_TYPE} eq 'TIFF' and not $base and not $inMakerNotes) or
|
|
5949
6023
|
($$et{FILE_TYPE} eq 'RAF' and $dirName eq 'FujiIFD'));
|
|
@@ -6219,7 +6293,7 @@ sub ProcessExif($$$)
|
|
|
6219
6293
|
}
|
|
6220
6294
|
# read from file if necessary
|
|
6221
6295
|
unless (defined $buff) {
|
|
6222
|
-
my $wrn;
|
|
6296
|
+
my ($wrn, $truncOK);
|
|
6223
6297
|
my $readFromRAF = ($tagInfo and $$tagInfo{ReadFromRAF});
|
|
6224
6298
|
if (not $raf->Seek($base + $valuePtr + $dataPos, 0)) {
|
|
6225
6299
|
$wrn = "Invalid offset for $dir entry $index";
|
|
@@ -6229,18 +6303,22 @@ sub ProcessExif($$$)
|
|
|
6229
6303
|
$buff = "$$tagInfo{Name} data $size bytes";
|
|
6230
6304
|
$readSize = length $buff;
|
|
6231
6305
|
} elsif ($raf->Read($buff,$size) != $size) {
|
|
6232
|
-
$wrn = "Error reading value for $dir entry $index";
|
|
6306
|
+
$wrn = sprintf("Error reading value for $dir entry $index, ID 0x%.4x", $tagID);
|
|
6307
|
+
if ($tagInfo and not $$tagInfo{Unknown}) {
|
|
6308
|
+
$wrn .= " $$tagInfo{Name}";
|
|
6309
|
+
$truncOK = $$tagInfo{TruncateOK};
|
|
6310
|
+
}
|
|
6233
6311
|
} elsif ($readFromRAF) {
|
|
6234
6312
|
# seek back to the start of the value
|
|
6235
6313
|
$raf->Seek($base + $valuePtr + $dataPos, 0);
|
|
6236
6314
|
}
|
|
6237
6315
|
if ($wrn) {
|
|
6238
|
-
$et->Warn($wrn, $inMakerNotes);
|
|
6239
|
-
return 0 unless $inMakerNotes or $htmlDump;
|
|
6316
|
+
$et->Warn($wrn, $inMakerNotes || $truncOK);
|
|
6317
|
+
return 0 unless $inMakerNotes or $htmlDump or $truncOK;
|
|
6240
6318
|
++$warnCount;
|
|
6241
6319
|
$buff = '' unless defined $buff;
|
|
6242
6320
|
$readSize = length $buff;
|
|
6243
|
-
$bad = 1;
|
|
6321
|
+
$bad = 1 unless $truncOK;
|
|
6244
6322
|
}
|
|
6245
6323
|
}
|
|
6246
6324
|
$valueDataLen = length $buff;
|
|
@@ -6813,6 +6891,10 @@ sub ProcessExif($$$)
|
|
|
6813
6891
|
# save original components of rational numbers (used when copying)
|
|
6814
6892
|
$$et{RATIONAL}{$tagKey} = $rational if defined $rational;
|
|
6815
6893
|
$$et{TAG_EXTRA}{$tagKey}{G6} = $saveFormat if $saveFormat;
|
|
6894
|
+
if ($$et{MAKER_NOTE_FIXUP}) {
|
|
6895
|
+
$$et{TAG_EXTRA}{$tagKey}{Fixup} = $$et{MAKER_NOTE_FIXUP};
|
|
6896
|
+
delete $$et{MAKER_NOTE_FIXUP};
|
|
6897
|
+
}
|
|
6816
6898
|
}
|
|
6817
6899
|
}
|
|
6818
6900
|
|
|
@@ -31,7 +31,7 @@ use vars qw($VERSION);
|
|
|
31
31
|
use Image::ExifTool qw(:DataAccess :Utils);
|
|
32
32
|
use Image::ExifTool::Exif;
|
|
33
33
|
|
|
34
|
-
$VERSION = '1.
|
|
34
|
+
$VERSION = '1.90';
|
|
35
35
|
|
|
36
36
|
sub ProcessFujiDir($$$);
|
|
37
37
|
sub ProcessFaceRec($$$);
|
|
@@ -428,6 +428,14 @@ my %faceCategories = (
|
|
|
428
428
|
Name => 'ShadowTone',
|
|
429
429
|
Writable => 'int32s',
|
|
430
430
|
PrintConv => {
|
|
431
|
+
OTHER => sub {
|
|
432
|
+
my ($val, $inv) = @_;
|
|
433
|
+
if ($inv) {
|
|
434
|
+
return int(-$val * 16);
|
|
435
|
+
} else {
|
|
436
|
+
return -$val / 16;
|
|
437
|
+
}
|
|
438
|
+
},
|
|
431
439
|
-64 => '+4 (hardest)',
|
|
432
440
|
-48 => '+3 (very hard)',
|
|
433
441
|
-32 => '+2 (hard)',
|
|
@@ -441,6 +449,14 @@ my %faceCategories = (
|
|
|
441
449
|
Name => 'HighlightTone',
|
|
442
450
|
Writable => 'int32s',
|
|
443
451
|
PrintConv => {
|
|
452
|
+
OTHER => sub {
|
|
453
|
+
my ($val, $inv) = @_;
|
|
454
|
+
if ($inv) {
|
|
455
|
+
return int(-$val * 16);
|
|
456
|
+
} else {
|
|
457
|
+
return -$val / 16;
|
|
458
|
+
}
|
|
459
|
+
},
|
|
444
460
|
-64 => '+4 (hardest)',
|
|
445
461
|
-48 => '+3 (very hard)',
|
|
446
462
|
-32 => '+2 (hard)',
|
|
@@ -29,7 +29,7 @@ use vars qw($VERSION);
|
|
|
29
29
|
use Image::ExifTool qw(:Public);
|
|
30
30
|
use Image::ExifTool::GPS;
|
|
31
31
|
|
|
32
|
-
$VERSION = '1.
|
|
32
|
+
$VERSION = '1.73';
|
|
33
33
|
|
|
34
34
|
sub JITTER() { return 2 } # maximum time jitter
|
|
35
35
|
|
|
@@ -1196,24 +1196,29 @@ Category: foreach $category (qw{pos track alt orient atemp}) {
|
|
|
1196
1196
|
# write GPSDateStamp if date included in track log, otherwise delete it
|
|
1197
1197
|
$gpsDate = sprintf('%.2d:%.2d:%.2d', $t[5]+1900, $t[4]+1, $t[3]) unless $noDate;
|
|
1198
1198
|
# write GPSAltitude tags if altitude included in track log, otherwise delete them
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
$gpsAltRef = ($$fix{alt} < 0 ? 1 : 0);
|
|
1202
|
-
} elsif ($$has{alt} and defined $iExt) {
|
|
1199
|
+
my $alt = $$fix{alt};
|
|
1200
|
+
if (not defined $alt and $$has{alt} and defined $iExt) {
|
|
1203
1201
|
my $tFix = FindFix($et,'alt',$times,$points,$iExt,$iDir,$geoMaxExtSecs);
|
|
1204
|
-
if
|
|
1205
|
-
$gpsAlt = abs $$tFix{alt};
|
|
1206
|
-
$gpsAltRef = ($$tFix{alt} < 0 ? 1 : 0);
|
|
1207
|
-
}
|
|
1202
|
+
$alt = $$tFix{alt} if $tFix;
|
|
1208
1203
|
}
|
|
1209
1204
|
# set new GPS tag values (EXIF, or XMP if write group is 'xmp')
|
|
1210
|
-
my ($xmp, $exif, @r);
|
|
1205
|
+
my ($xmp, $exif, $qt, @r);
|
|
1211
1206
|
my %opts = ( Type => 'ValueConv' ); # write ValueConv values
|
|
1212
1207
|
if ($writeGroup) {
|
|
1213
1208
|
$opts{Group} = $writeGroup;
|
|
1214
1209
|
$xmp = ($writeGroup =~ /xmp/i);
|
|
1215
1210
|
$exif = ($writeGroup =~ /^(exif|gps)$/i);
|
|
1211
|
+
$qt = $writeGroup =~ /^(quicktime|keys|itemlist|userdata)$/i;
|
|
1212
|
+
}
|
|
1213
|
+
# set QuickTime GPSCoordinates
|
|
1214
|
+
my $coords = "$$fix{lat} $$fix{lon}";
|
|
1215
|
+
if (defined $alt) {
|
|
1216
|
+
$gpsAlt = abs $alt;
|
|
1217
|
+
$gpsAltRef = ($alt < 0 ? 1 : 0);
|
|
1218
|
+
$coords .= " $alt";
|
|
1216
1219
|
}
|
|
1220
|
+
@r = $et->SetNewValue(GPSCoordinates => $coords, %opts);
|
|
1221
|
+
return $err if $qt; # all done if writing to QuickTime only
|
|
1217
1222
|
# (capture error messages by calling SetNewValue in list context)
|
|
1218
1223
|
@r = $et->SetNewValue(GPSLatitude => $$fix{lat}, %opts);
|
|
1219
1224
|
@r = $et->SetNewValue(GPSLongitude => $$fix{lon}, %opts);
|
|
@@ -1288,7 +1293,7 @@ Category: foreach $category (qw{pos track alt orient atemp}) {
|
|
|
1288
1293
|
GPSAltitude GPSAltitudeRef GPSDateStamp GPSTimeStamp GPSDateTime
|
|
1289
1294
|
GPSTrack GPSTrackRef GPSSpeed GPSSpeedRef GPSImgDirection
|
|
1290
1295
|
GPSImgDirectionRef GPSPitch GPSRoll CameraElevationAngle
|
|
1291
|
-
AmbientTemperature))
|
|
1296
|
+
AmbientTemperature GPSCoordinates))
|
|
1292
1297
|
{
|
|
1293
1298
|
my @r = $et->SetNewValue($_, undef, %opts);
|
|
1294
1299
|
}
|