exiftool-vendored.pl 12.26.0 → 12.33.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.
Files changed (59) hide show
  1. package/README.md +1 -2
  2. package/bin/Changes +119 -4
  3. package/bin/MANIFEST +9 -0
  4. package/bin/META.json +1 -1
  5. package/bin/META.yml +1 -1
  6. package/bin/README +44 -43
  7. package/bin/arg_files/xmp2exif.args +2 -1
  8. package/bin/config_files/convert_regions.config +25 -14
  9. package/bin/config_files/example.config +1 -1
  10. package/bin/exiftool +78 -65
  11. package/bin/fmt_files/gpx.fmt +1 -1
  12. package/bin/fmt_files/gpx_wpt.fmt +1 -1
  13. package/bin/lib/Image/ExifTool/BuildTagLookup.pm +11 -3
  14. package/bin/lib/Image/ExifTool/CBOR.pm +331 -0
  15. package/bin/lib/Image/ExifTool/Canon.pm +26 -7
  16. package/bin/lib/Image/ExifTool/DPX.pm +13 -2
  17. package/bin/lib/Image/ExifTool/Exif.pm +98 -4
  18. package/bin/lib/Image/ExifTool/FlashPix.pm +35 -10
  19. package/bin/lib/Image/ExifTool/FujiFilm.pm +1 -0
  20. package/bin/lib/Image/ExifTool/Geotag.pm +13 -2
  21. package/bin/lib/Image/ExifTool/GoPro.pm +16 -1
  22. package/bin/lib/Image/ExifTool/ID3.pm +15 -3
  23. package/bin/lib/Image/ExifTool/JSON.pm +7 -3
  24. package/bin/lib/Image/ExifTool/Jpeg2000.pm +60 -26
  25. package/bin/lib/Image/ExifTool/LIF.pm +153 -0
  26. package/bin/lib/Image/ExifTool/Lang/nl.pm +60 -59
  27. package/bin/lib/Image/ExifTool/M2TS.pm +103 -7
  28. package/bin/lib/Image/ExifTool/MacOS.pm +2 -2
  29. package/bin/lib/Image/ExifTool/Nikon.pm +14 -3
  30. package/bin/lib/Image/ExifTool/NikonSettings.pm +10 -2
  31. package/bin/lib/Image/ExifTool/Olympus.pm +9 -2
  32. package/bin/lib/Image/ExifTool/Other.pm +93 -0
  33. package/bin/lib/Image/ExifTool/PDF.pm +9 -12
  34. package/bin/lib/Image/ExifTool/PNG.pm +7 -6
  35. package/bin/lib/Image/ExifTool/Panasonic.pm +14 -3
  36. package/bin/lib/Image/ExifTool/Pentax.pm +27 -5
  37. package/bin/lib/Image/ExifTool/Photoshop.pm +6 -0
  38. package/bin/lib/Image/ExifTool/QuickTime.pm +105 -24
  39. package/bin/lib/Image/ExifTool/QuickTimeStream.pl +203 -121
  40. package/bin/lib/Image/ExifTool/README +5 -2
  41. package/bin/lib/Image/ExifTool/RIFF.pm +6 -1
  42. package/bin/lib/Image/ExifTool/Samsung.pm +47 -10
  43. package/bin/lib/Image/ExifTool/Sony.pm +85 -34
  44. package/bin/lib/Image/ExifTool/TagLookup.pm +65 -5
  45. package/bin/lib/Image/ExifTool/TagNames.pod +153 -32
  46. package/bin/lib/Image/ExifTool/Torrent.pm +18 -11
  47. package/bin/lib/Image/ExifTool/WritePDF.pl +1 -0
  48. package/bin/lib/Image/ExifTool/WritePNG.pl +2 -0
  49. package/bin/lib/Image/ExifTool/WriteQuickTime.pl +8 -4
  50. package/bin/lib/Image/ExifTool/Writer.pl +3 -0
  51. package/bin/lib/Image/ExifTool/XMP.pm +21 -4
  52. package/bin/lib/Image/ExifTool/XMP2.pl +3 -1
  53. package/bin/lib/Image/ExifTool/XMPStruct.pl +3 -1
  54. package/bin/lib/Image/ExifTool/ZISRAW.pm +121 -2
  55. package/bin/lib/Image/ExifTool.pm +74 -42
  56. package/bin/lib/Image/ExifTool.pod +58 -56
  57. package/bin/perl-Image-ExifTool.spec +43 -42
  58. package/bin/pp_build_exe.args +7 -4
  59. package/package.json +3 -3
package/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # exiftool-vendored.pl
2
2
 
3
- Provides the perl runtime distribution of
4
- [ExifTool](http://www.sno.phy.queensu.ca/~phil/exiftool/) to
3
+ Provides the perl runtime distribution of [ExifTool](https://exiftool.org/) to
5
4
  [node](https://nodejs.org/en/). As of version `10.38.0`, both testing and help
6
5
  files are omitted, as they almost double the size of the package and more than
7
6
  triple the number of files in the package.
package/bin/Changes CHANGED
@@ -4,9 +4,124 @@ ExifTool Version History
4
4
 
5
5
  RSS feed: https://exiftool.org/rss.xml
6
6
 
7
- Note: The most recent production release is Version 12.26. (Other versions are
7
+ Note: The most recent production release is Version 12.30. (Other versions are
8
8
  considered development releases, and are not uploaded to MetaCPAN.)
9
9
 
10
+ Oct. 16, 2021 - Version 12.33
11
+
12
+ - Added support for DNG version 1.6.0.0
13
+ - Added two new Sony LensType values (thanks Jos Roost and LibRaw)
14
+ - Added some new elements to the XMP-crs:Look structure (thanks Herb)
15
+ - Added a few new IPTC XMP tags (thanks Michael Steidl)
16
+ - Added a new Canon RF lens (thanks Norbert Wasser)
17
+ - Decode Canon ShutterMode (thanks John Moyer)
18
+ - Extract LensModel from some Olympus MOV videos
19
+ - Generate MediaDataOffset/Size for MOV videos with zero-sized MDAT chunk
20
+ - Improvements to CBOR reader, including hex dump with -v3 option
21
+ - Recognize Final Cut Pro XML files
22
+ - Allow binary data of Protected tags to be extracted with the -X -j and -php
23
+ options with -b by setting the API RequestAll option to 3
24
+ - Changed name of "Canon EF 80-200mm f/4.5-5.6" lens with LensType 38 to add
25
+ "II" to the name (Exiv2 issue 1906)
26
+ - Fixed runtime warning when processing files with a .DIR extension
27
+
28
+ Sept. 30, 2021 - Version 12.32
29
+
30
+ - Added support for CBOR-format metadata in JUMBF (note that JUMBF support is
31
+ still experimental)
32
+ - Added a new Nikon LensID
33
+ - Added a new Pentax LensType
34
+ - Decode timed GPS for two more dashcam formats
35
+ - Support reference direction columns in -geotag CSV input
36
+ - Removed generation of GPSSpeedRef and GPSTrackRef tags in timed metadata for
37
+ most dashcam formats when speed is km/h and track is relative to true north
38
+ - Patched to allow writing of console output to named pipes
39
+ - Fixed formatting of InternalSerialNumber for some Panasonic cameras
40
+ - Fixed bug in arg_files/xmp2exif.args support file
41
+
42
+ Sept. 22, 2021 - Version 12.31
43
+
44
+ - Added a new SonyModelID and a couple of new Sony lenses (thanks Jos Roost)
45
+ - Added a new Canon LensType (thanks Chris Skopec)
46
+ - Added Composite GPSLatitude/Longitude tags for Sony videos to combine the
47
+ reference hemispheres as with the Composite tags for EXIF GPS
48
+ - Decode DPX AspectRatio
49
+ - Decode more GoPro MP4 tags
50
+ - Extract ICC_Profile from CS0 object in PDF files
51
+ - Extract encrypted GPS from Akaso V1 dashcam videos (can't yet decrypt)
52
+ - Improved handling of QuickTime iTunesInfo tags, and created new "iTunes"
53
+ family 1 group for these
54
+ - Patched so NoPDFList option also applies when writing
55
+ - Patched to allow user-defined PNG TextualData tags to be written only as iTXt
56
+ - Patched PDF reader to avoid concatenating values of multiple List-type tags
57
+ into a single tag
58
+
59
+ Aug. 12, 2021 - Version 12.30 (production release)
60
+
61
+ - Added read support for Portable FloatMap (PFM) images (this was a bit of a
62
+ pain because they have the same file extension as Printer Font Metrix files)
63
+ - Added a few new Nikon LensID values (thanks LibRaw)
64
+ - Added a new Canon LensType
65
+ - Added a new Olympus CameraType (thanks LibRaw)
66
+ - Added minor warning about unknown data between JPEG segments
67
+ - Added a couple of new NikonSettings tags (thanks Warren Hatch)
68
+ - Added a new Sony LensType (thanks Jos Roost)
69
+ - Decode 'id3 ' chunk in WAV audio files
70
+ - Decode timed GPS from concatenated Garmin dashcam videos
71
+ - Decode SamsungTrailer information from sefd atom in HEIC images
72
+ - Decode more Sony MakerNote tags for the ZV-E10 (thanks Jos Roost)
73
+ - Decode DepthMapTiff from JPEG images of more Samsung models
74
+ - Decode timed GPS from M2TS videos of yet another type of dashcam
75
+ - Extract PreviewImage from Xaiomi MP4 videos
76
+ - Changed name of second EmbeddedImage in Samsung trailer to EmbeddedImage2
77
+ - Improved Dutch translations for GPS tags (thanks Peter Dubbelman)
78
+ - Allow ICC_Profile to be "deleted" from AVIF files (actually, the profile
79
+ isn't really deleted. Instead, a zero-length profile is written to allow a
80
+ profile to be added back later since QuickTime item property containers
81
+ currently can't be created)
82
+ - Patched to remove 2 GB size limit when reading Photoshop ImageSourceData
83
+
84
+ July 9, 2021 - Version 12.29
85
+
86
+ - Added a few new Nikon and Olympus lenses (thanks LibRaw)
87
+ - Improved a QuickTime "File format error" message to be more meaningful, and
88
+ made it a minor error
89
+ - Changed PNG writer to add EXIF before IDAT
90
+ - Some changes the way JUMBF metadata is handled
91
+ - Patched to read timed GPS from a different type of INSV videos
92
+ - Patched a security issue
93
+ - Fixed problem where ExifTool could hang when processing mebx timed metadata
94
+
95
+ June 22, 2021 - Version 12.28
96
+
97
+ - Added read support for Leica Image File (LIF) images
98
+ - Added a new Olympus LensType (thanks LibRaw)
99
+ - Decode another Panasonic tag (thanks LibRaw)
100
+ - Decode more timed metadata from Sony MP4 videos
101
+ - Attempt to shorten tag names for metadata in CZI files
102
+ - Allow full QuickTime Keys tag ID's in UserDefined tags (fixes backward
103
+ incompatibility introduced in 12.02)
104
+ - Patched to handle special characters in Torrent tag values
105
+
106
+ June 9, 2021 - Version 12.27
107
+
108
+ - Added a new SonyModelID value
109
+ - Added two new Nikon LensID values (thanks Daniel)
110
+ - Added a new Pentax RawDevelopmentProcess value
111
+ - Added a few new Sony LensType values (thanks Jos Roost)
112
+ - Added warning if IPTCDigest is not current
113
+ - Decode a couple more Pentax tags (thanks LibRaw)
114
+ - Decode streaming GPS from Novatek INNOVV MP4 and TS videos
115
+ - Improved tag names in config_files/covert_regions.config (thanks StarGeek)
116
+ - Changed MIME types for MS Office macro-enabled formats to add the .12
117
+ - Patched Canon LensID logic to properly identify the Canon RF 24-105mm F4 L
118
+ IS USM lens
119
+ - Patched decoding of camm6 GPSDateTime to use a flexible epoch because other
120
+ apps don't seem to use a consistent time zero
121
+ - Fixed family 7 group names for QuickTime Keys tags
122
+ - Fixed problem reading BeatsPerMinute from some MP4 files
123
+ - Fixed hemisphere problem when extracting GPS from 70mai dashcam videos
124
+
10
125
  May 20, 2021 - Version 12.26 (production release)
11
126
 
12
127
  - Added support for JPEG Stereo (JPS) images
@@ -1387,8 +1502,8 @@ Oct. 9, 2018 - Version 11.13
1387
1502
  - Added a new Canon LensType (thanks LibRaw)
1388
1503
  - Minor improvements to verbose dump of streaming GPS metadata
1389
1504
  - Reverted change of version 10.71 which resulted in Windows not recognizing
1390
- PNG CreationTime as written by ExifTool (added this feature to the
1391
- StrictDate API option instead)
1505
+ PNG CreationTime as written by ExifTool (added this feature to the API
1506
+ StrictDate option instead)
1392
1507
  - Improved decoding of Nikon CropHiSpeed (thanks LibRaw)
1393
1508
  - Improved -fast option to reduce memory usage when reading JPG, PNG,
1394
1509
  QuickTime-based and RIFF-based files via a sequential stream
@@ -1502,7 +1617,7 @@ June 21, 2018 - Version 11.03
1502
1617
  June 13, 2018 - Version 11.02
1503
1618
 
1504
1619
  - Added support for a different format of Apple iWorks files
1505
- - Added undocumented FixCorruptedMOV API option to allow fixing MOV videos
1620
+ - Added undocumented API FixCorruptedMOV option to allow fixing MOV videos
1506
1621
  with multiple 'mdat' atoms which were corrupted by ExifTool
1507
1622
  - Decode more QuickTime tags
1508
1623
  - Decode more PanasonicRaw tags (thanks Klaus Homeister)
package/bin/MANIFEST CHANGED
@@ -48,6 +48,7 @@ html/TagNames/Apple.html
48
48
  html/TagNames/Audible.html
49
49
  html/TagNames/BMP.html
50
50
  html/TagNames/BPG.html
51
+ html/TagNames/CBOR.html
51
52
  html/TagNames/Canon.html
52
53
  html/TagNames/CanonCustom.html
53
54
  html/TagNames/CanonRaw.html
@@ -94,6 +95,7 @@ html/TagNames/JVC.html
94
95
  html/TagNames/Jpeg2000.html
95
96
  html/TagNames/Kodak.html
96
97
  html/TagNames/KyoceraRaw.html
98
+ html/TagNames/LIF.html
97
99
  html/TagNames/LNK.html
98
100
  html/TagNames/Leaf.html
99
101
  html/TagNames/Lytro.html
@@ -124,6 +126,7 @@ html/TagNames/Ogg.html
124
126
  html/TagNames/Olympus.html
125
127
  html/TagNames/OpenEXR.html
126
128
  html/TagNames/Opus.html
129
+ html/TagNames/Other.html
127
130
  html/TagNames/PCX.html
128
131
  html/TagNames/PDF.html
129
132
  html/TagNames/PGF.html
@@ -215,6 +218,7 @@ lib/Image/ExifTool/BPG.pm
215
218
  lib/Image/ExifTool/BZZ.pm
216
219
  lib/Image/ExifTool/BigTIFF.pm
217
220
  lib/Image/ExifTool/BuildTagLookup.pm
221
+ lib/Image/ExifTool/CBOR.pm
218
222
  lib/Image/ExifTool/Canon.pm
219
223
  lib/Image/ExifTool/CanonCustom.pm
220
224
  lib/Image/ExifTool/CanonRaw.pm
@@ -299,6 +303,7 @@ lib/Image/ExifTool/JVC.pm
299
303
  lib/Image/ExifTool/Jpeg2000.pm
300
304
  lib/Image/ExifTool/Kodak.pm
301
305
  lib/Image/ExifTool/KyoceraRaw.pm
306
+ lib/Image/ExifTool/LIF.pm
302
307
  lib/Image/ExifTool/LNK.pm
303
308
  lib/Image/ExifTool/Lang/cs.pm
304
309
  lib/Image/ExifTool/Lang/de.pm
@@ -348,6 +353,7 @@ lib/Image/ExifTool/Ogg.pm
348
353
  lib/Image/ExifTool/Olympus.pm
349
354
  lib/Image/ExifTool/OpenEXR.pm
350
355
  lib/Image/ExifTool/Opus.pm
356
+ lib/Image/ExifTool/Other.pm
351
357
  lib/Image/ExifTool/PCX.pm
352
358
  lib/Image/ExifTool/PDF.pm
353
359
  lib/Image/ExifTool/PGF.pm
@@ -715,6 +721,8 @@ t/PDF_6.out
715
721
  t/PDF_7.out
716
722
  t/PDF_8.out
717
723
  t/PDF_9.out
724
+ t/PFM.t
725
+ t/PFM_2.out
718
726
  t/PGF.t
719
727
  t/PGF_2.out
720
728
  t/PICT.t
@@ -1048,6 +1056,7 @@ t/images/Opus.opus
1048
1056
  t/images/PCX.pcx
1049
1057
  t/images/PDF.pdf
1050
1058
  t/images/PDF2.pdf
1059
+ t/images/PFM.pfm
1051
1060
  t/images/PGF.pgf
1052
1061
  t/images/PICT.pict
1053
1062
  t/images/PLIST-bin.plist
package/bin/META.json CHANGED
@@ -47,6 +47,6 @@
47
47
  }
48
48
  },
49
49
  "release_status" : "stable",
50
- "version" : "12.26",
50
+ "version" : "12.33",
51
51
  "x_serialization_backend" : "JSON::PP version 4.02"
52
52
  }
package/bin/META.yml CHANGED
@@ -28,5 +28,5 @@ recommends:
28
28
  Time::HiRes: 0
29
29
  requires:
30
30
  perl: 5.004
31
- version: 12.26
31
+ version: 12.33
32
32
  x_serialization_backend: 'JSON::PP version 4.02'
package/bin/README CHANGED
@@ -14,47 +14,48 @@ supported by ExifTool (r = read, w = write, c = create):
14
14
 
15
15
  File Types
16
16
  ------------+-------------+-------------+-------------+------------
17
- 360 r/w | DPX r | ITC r | NUMBERS r | RAM r
18
- 3FR r | DR4 r/w/c | J2C r | O r | RAR r
19
- 3G2 r/w | DSS r | JNG r/w | ODP r | RAW r/w
20
- 3GP r/w | DV r | JP2 r/w | ODS r | RIFF r
21
- A r | DVB r/w | JPEG r/w | ODT r | RSRC r
22
- AA r | DVR-MS r | JSON r | OFR r | RTF r
23
- AAE r | DYLIB r | JXL r | OGG r | RW2 r/w
24
- AAX r/w | EIP r | K25 r | OGV r | RWL r/w
25
- ACR r | EPS r/w | KDC r | ONP r | RWZ r
26
- AFM r | EPUB r | KEY r | OPUS r | RM r
27
- AI r/w | ERF r/w | LA r | ORF r/w | SEQ r
28
- AIFF r | EXE r | LFP r | ORI r/w | SKETCH r
29
- APE r | EXIF r/w/c | LNK r | OTF r | SO r
30
- ARQ r/w | EXR r | LRV r/w | PAC r | SR2 r/w
31
- ARW r/w | EXV r/w/c | M2TS r | PAGES r | SRF r
32
- ASF r | F4A/V r/w | M4A/V r/w | PBM r/w | SRW r/w
33
- AVI r | FFF r/w | MACOS r | PCD r | SVG r
34
- AVIF r/w | FITS r | MAX r | PCX r | SWF r
35
- AZW r | FLA r | MEF r/w | PDB r | THM r/w
36
- BMP r | FLAC r | MIE r/w/c | PDF r/w | TIFF r/w
37
- BPG r | FLIF r/w | MIFF r | PEF r/w | TORRENT r
38
- BTF r | FLV r | MKA r | PFA r | TTC r
39
- CHM r | FPF r | MKS r | PFB r | TTF r
40
- COS r | FPX r | MKV r | PFM r | TXT r
41
- CR2 r/w | GIF r/w | MNG r/w | PGF r | VCF r
42
- CR3 r/w | GPR r/w | MOBI r | PGM r/w | VRD r/w/c
43
- CRM r/w | GZ r | MODD r | PLIST r | VSD r
44
- CRW r/w | HDP r/w | MOI r | PICT r | WAV r
45
- CS1 r/w | HDR r | MOS r/w | PMP r | WDP r/w
46
- CSV r | HEIC r/w | MOV r/w | PNG r/w | WEBP r
47
- CZI r | HEIF r/w | MP3 r | PPM r/w | WEBM r
48
- DCM r | HTML r | MP4 r/w | PPT r | WMA r
49
- DCP r/w | ICC r/w/c | MPC r | PPTX r | WMV r
50
- DCR r | ICS r | MPG r | PS r/w | WTV r
51
- DFONT r | IDML r | MPO r/w | PSB r/w | WV r
52
- DIVX r | IIQ r/w | MQV r/w | PSD r/w | X3F r/w
53
- DJVU r | IND r/w | MRC r | PSP r | XCF r
54
- DLL r | INSP r/w | MRW r/w | QTIF r/w | XLS r
55
- DNG r/w | INSV r | MXF r | R3D r | XLSX r
56
- DOC r | INX r | NEF r/w | RA r | XMP r/w/c
57
- DOCX r | ISO r | NRW r/w | RAF r/w | ZIP r
17
+ 360 r/w | DR4 r/w/c | JNG r/w | ODP r | RIFF r
18
+ 3FR r | DSS r | JP2 r/w | ODS r | RSRC r
19
+ 3G2 r/w | DV r | JPEG r/w | ODT r | RTF r
20
+ 3GP r/w | DVB r/w | JSON r | OFR r | RW2 r/w
21
+ A r | DVR-MS r | JXL r | OGG r | RWL r/w
22
+ AA r | DYLIB r | K25 r | OGV r | RWZ r
23
+ AAE r | EIP r | KDC r | ONP r | RM r
24
+ AAX r/w | EPS r/w | KEY r | OPUS r | SEQ r
25
+ ACR r | EPUB r | LA r | ORF r/w | SKETCH r
26
+ AFM r | ERF r/w | LFP r | ORI r/w | SO r
27
+ AI r/w | EXE r | LIF r | OTF r | SR2 r/w
28
+ AIFF r | EXIF r/w/c | LNK r | PAC r | SRF r
29
+ APE r | EXR r | LRV r/w | PAGES r | SRW r/w
30
+ ARQ r/w | EXV r/w/c | M2TS r | PBM r/w | SVG r
31
+ ARW r/w | F4A/V r/w | M4A/V r/w | PCD r | SWF r
32
+ ASF r | FFF r/w | MACOS r | PCX r | THM r/w
33
+ AVI r | FITS r | MAX r | PDB r | TIFF r/w
34
+ AVIF r/w | FLA r | MEF r/w | PDF r/w | TORRENT r
35
+ AZW r | FLAC r | MIE r/w/ | PEF r/w | TTC r
36
+ BMP r | FLIF r/w | MIFF r c | PFA r | TTF r
37
+ BPG r | FLV r | MKA r | PFB r | TXT r
38
+ BTF r | FPF r | MKS r | PFM r | VCF r
39
+ CHM r | FPX r | MKV r | PGF r | VRD r/w/c
40
+ COS r | GIF r/w | MNG r/w | PGM r/w | VSD r
41
+ CR2 r/w | GPR r/w | MOBI r | PLIST r | WAV r
42
+ CR3 r/w | GZ r | MODD r | PICT r | WDP r/w
43
+ CRM r/w | HDP r/w | MOI r | PMP r | WEBP r
44
+ CRW r/w | HDR r | MOS r/w | PNG r/w | WEBM r
45
+ CS1 r/w | HEIC r/w | MOV r/w | PPM r/w | WMA r
46
+ CSV r | HEIF r/w | MP3 r | PPT r | WMV r
47
+ CZI r | HTML r | MP4 r/w | PPTX r | WTV r
48
+ DCM r | ICC r/w/c | MPC r | PS r/w | WV r
49
+ DCP r/w | ICS r | MPG r | PSB r/w | X3F r/w
50
+ DCR r | IDML r | MPO r/w | PSD r/w | XCF r
51
+ DFONT r | IIQ r/w | MQV r/w | PSP r | XLS r
52
+ DIVX r | IND r/w | MRC r | QTIF r/w | XLSX r
53
+ DJVU r | INSP r/w | MRW r/w | R3D r | XMP r/w/c
54
+ DLL r | INSV r | MXF r | RA r | ZIP r
55
+ DNG r/w | INX r | NEF r/w | RAF r/w |
56
+ DOC r | ISO r | NRW r/w | RAM r |
57
+ DOCX r | ITC r | NUMBERS r | RAR r |
58
+ DPX r | J2C r | O r | RAW r/w |
58
59
 
59
60
  Meta Information
60
61
  ----------------------+----------------------+---------------------
@@ -106,8 +107,8 @@ your home directory, then you would type the following commands in a
106
107
  terminal window to extract and run ExifTool:
107
108
 
108
109
  cd ~/Desktop
109
- gzip -dc Image-ExifTool-12.26.tar.gz | tar -xf -
110
- cd Image-ExifTool-12.26
110
+ gzip -dc Image-ExifTool-12.33.tar.gz | tar -xf -
111
+ cd Image-ExifTool-12.33
111
112
  ./exiftool t/images/ExifTool.jpg
112
113
 
113
114
  Note: These commands extract meta information from one of the test images.
@@ -13,6 +13,7 @@
13
13
  # 2015/01/12 - PH Avoid copying from non-standard namespaces
14
14
  # 2016/09/26 - PH Write Composite SubSec tags
15
15
  # 2018/05/07 - PH Added support for GPSDestXxxRef tags
16
+ # 2021/09/30 - PH Removed erroneous "-" when copying CreatorTool
16
17
  #
17
18
  # References: http://www.metadataworkinggroup.org/specs/
18
19
  #
@@ -34,7 +35,7 @@
34
35
  -Composite:SubSecDateTimeOriginal < XMP-photoshop:DateCreated
35
36
  -Composite:SubSecCreateDate < XMP-xmp:CreateDate
36
37
  -Composite:SubSecModifyDate < XMP-xmp:ModifyDate
37
- -EXIF:Software < -XMP-xmp:CreatorTool
38
+ -EXIF:Software < XMP-xmp:CreatorTool
38
39
  -EXIF:Copyright < XMP-dc:Rights
39
40
  -EXIF:Artist < XMP-dc:Creator
40
41
  # XMP flash information is translated by the Composite Flash tag
@@ -7,15 +7,15 @@
7
7
  #
8
8
  # Usage: 1) Convert from MP WLPG or IPTC regions to MWG regions:
9
9
  #
10
- # exiftool -config convert_regions.config "-regioninfo<myregion" FILE
10
+ # exiftool -config convert_regions.config "-RegionInfo<MPRegion2MWGRegion" FILE
11
11
  #
12
12
  # 2) Convert from MWG or IPTC to MP WLPG regions:
13
13
  #
14
- # exiftool -config convert_regions.config "-regioninfomp<myregionmp" FILE
14
+ # exiftool -config convert_regions.config "-RegionInfoMP<MWGRegion2MPRegion" FILE
15
15
  #
16
16
  # 3) Convert from MWG or MP WLPG to IPTC regions:
17
17
  #
18
- # exiftool -config convert_regions.config "-imageregion<myregioniptc" FILE
18
+ # exiftool -config convert_regions.config "-ImageRegion<MWGRegion2IPTCRegion" FILE
19
19
  #
20
20
  # Requires: ExifTool version 11.74 or later
21
21
  #
@@ -23,6 +23,8 @@
23
23
  # 2013/02/20 - PH Don't add ignored MP faces
24
24
  # 2017/02/13 - PH Handle MP regions without Rectangle or Name entries
25
25
  # 2019/10/26 - PH Added support for the new IPTC ImageRegion
26
+ # 2021/05-27 - PH Changed a few tag names and added shortcuts for
27
+ # backward compatibility
26
28
  #
27
29
  # References: http://www.metadataworkinggroup.org/specs/
28
30
  #------------------------------------------------------------------------------
@@ -32,7 +34,7 @@
32
34
  'Image::ExifTool::Composite' => {
33
35
 
34
36
  # create an MWG RegionInfo structure from a Microsoft RegionInfoMP structure
35
- MyRegion => {
37
+ MPRegion2MWGRegion => {
36
38
  Require => {
37
39
  0 => 'RegionInfoMP',
38
40
  1 => 'ImageWidth',
@@ -69,8 +71,8 @@
69
71
  },
70
72
 
71
73
  # create an MWG RegionInfo structure from an IPTC ImageRegion list
72
- MyRegion2 => {
73
- Name => 'MyRegion',
74
+ IPTCRegion2MWGRegion => {
75
+ Name => 'MPRegion2MWGRegion',
74
76
  Require => {
75
77
  0 => 'ImageRegion',
76
78
  1 => 'ImageWidth',
@@ -78,7 +80,7 @@
78
80
  },
79
81
  ValueConv => q{
80
82
  my ($rgn, @newRgns);
81
- my $rgns = ref $val[0] eq 'ARRAY' ? $val[0] : [ $val[0] ];
83
+ my $rgns = ref $val[0] eq 'ARRAY' ? $val[0] : [ $val[0] ];
82
84
  foreach $rgn (@$rgns) {
83
85
  my %newRgn = ( Type => 'Face' );
84
86
  if ($$rgn{RegionBoundary} and $$rgn{RegionBoundary}{RbShape} eq 'rectangle') {
@@ -108,7 +110,7 @@
108
110
  },
109
111
 
110
112
  # create a Microsoft RegionInfoMP structure from an MWG RegionInfo structure
111
- MyRegionMP => {
113
+ MWGRegion2MPRegion => {
112
114
  Require => 'RegionInfo',
113
115
  ValueConv => q{
114
116
  my ($rgn, @newRgns);
@@ -129,8 +131,8 @@
129
131
  },
130
132
 
131
133
  # create a Microsoft RegionInfoMP structure from an IPTC ImageRegion list
132
- MyRegionMP2 => {
133
- Name => 'MyRegionMP',
134
+ IPTCRegion2MPRegion => {
135
+ Name => 'MWGRegion2MPRegion',
134
136
  Require => {
135
137
  0 => 'ImageRegion',
136
138
  1 => 'ImageWidth',
@@ -138,7 +140,7 @@
138
140
  },
139
141
  ValueConv => q{
140
142
  my ($rgn, @newRgns);
141
- my $rgns = ref $val[0] eq 'ARRAY' ? $val[0] : [ $val[0] ];
143
+ my $rgns = ref $val[0] eq 'ARRAY' ? $val[0] : [ $val[0] ];
142
144
  foreach $rgn (@$rgns) {
143
145
  my %newRgn;
144
146
  if ($$rgn{RegionBoundary} and $$rgn{RegionBoundary}{RbShape} eq 'rectangle') {
@@ -159,7 +161,7 @@
159
161
  },
160
162
 
161
163
  # create an IPTC ImageRegion list from an MWG RegionInfo structure
162
- MyRegionIPTC => {
164
+ MWGRegion2IPTCRegion => {
163
165
  Require => 'RegionInfo',
164
166
  ValueConv => q{
165
167
  my ($rgn, @newRgns);
@@ -187,8 +189,8 @@
187
189
  },
188
190
 
189
191
  # create an IPTC ImageRegion list from a Microsoft RegionInfoMP structure
190
- MyRegionIPTC2 => {
191
- Name => 'MyRegionIPTC',
192
+ MPRegion2IPTCRegion => {
193
+ Name => 'MWGRegion2IPTCRegion',
192
194
  Require => 'RegionInfoMP',
193
195
  ValueConv => q{
194
196
  my ($rgn, @newRgns);
@@ -220,4 +222,13 @@
220
222
  },
221
223
  );
222
224
 
225
+ %Image::ExifTool::UserDefined::Shortcuts = (
226
+ MyRegion => 'MPRegion2MWGRegion',
227
+ MyRegion2 => 'IPTCRegion2MWGRegion',
228
+ MyRegionMP => 'MWGRegion2MPRegion',
229
+ MyRegionMP2 => 'IPTCRegion2MPRegion',
230
+ MyRegionIPTC => 'MWGRegion2IPTCRegion',
231
+ MyRegionIPTC2 => 'MPRegion2IPTCRegion',
232
+ );
233
+
223
234
  1; #end
@@ -133,7 +133,7 @@
133
133
  # Example 12. PNG:NewPngTag1
134
134
  NewPngTag1 => { },
135
135
  # Example 13. PNG:NewPngTag2
136
- NewPngTag2 => { },
136
+ NewPngTag2 => { iTXt => 1 }, # (force this tag to be written as iTXt)
137
137
  # Example 14. PNG:NewPngTag3
138
138
  NewPngTag3 => { },
139
139
  },