exiftool_vendored 12.76.1 → 12.80.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/bin/Changes +79 -4
  3. data/bin/MANIFEST +27 -0
  4. data/bin/META.json +1 -1
  5. data/bin/META.yml +1 -1
  6. data/bin/README +3 -3
  7. data/bin/config_files/acdsee.config +37 -57
  8. data/bin/config_files/example.config +16 -2
  9. data/bin/exiftool +84 -29
  10. data/bin/lib/Image/ExifTool/Canon.pm +12 -9
  11. data/bin/lib/Image/ExifTool/CanonVRD.pm +7 -1
  12. data/bin/lib/Image/ExifTool/Exif.pm +52 -4
  13. data/bin/lib/Image/ExifTool/FujiFilm.pm +3 -0
  14. data/bin/lib/Image/ExifTool/GPS.pm +5 -3
  15. data/bin/lib/Image/ExifTool/GeoLang/cs.pm +978 -0
  16. data/bin/lib/Image/ExifTool/GeoLang/de.pm +1975 -0
  17. data/bin/lib/Image/ExifTool/GeoLang/en_ca.pm +44 -0
  18. data/bin/lib/Image/ExifTool/GeoLang/en_gb.pm +124 -0
  19. data/bin/lib/Image/ExifTool/GeoLang/es.pm +2921 -0
  20. data/bin/lib/Image/ExifTool/GeoLang/fi.pm +1116 -0
  21. data/bin/lib/Image/ExifTool/GeoLang/fr.pm +3171 -0
  22. data/bin/lib/Image/ExifTool/GeoLang/it.pm +2750 -0
  23. data/bin/lib/Image/ExifTool/GeoLang/ja.pm +10256 -0
  24. data/bin/lib/Image/ExifTool/GeoLang/ko.pm +4499 -0
  25. data/bin/lib/Image/ExifTool/GeoLang/nl.pm +1270 -0
  26. data/bin/lib/Image/ExifTool/GeoLang/pl.pm +3019 -0
  27. data/bin/lib/Image/ExifTool/GeoLang/ru.pm +18220 -0
  28. data/bin/lib/Image/ExifTool/GeoLang/sk.pm +441 -0
  29. data/bin/lib/Image/ExifTool/GeoLang/sv.pm +714 -0
  30. data/bin/lib/Image/ExifTool/GeoLang/tr.pm +452 -0
  31. data/bin/lib/Image/ExifTool/GeoLang/zh_cn.pm +2225 -0
  32. data/bin/lib/Image/ExifTool/GeoLang/zh_tw.pm +72 -0
  33. data/bin/lib/Image/ExifTool/Geolocation.dat +0 -0
  34. data/bin/lib/Image/ExifTool/Geolocation.pm +775 -0
  35. data/bin/lib/Image/ExifTool/Geotag.pm +8 -1
  36. data/bin/lib/Image/ExifTool/HtmlDump.pm +2 -1
  37. data/bin/lib/Image/ExifTool/Import.pm +5 -2
  38. data/bin/lib/Image/ExifTool/JSON.pm +15 -10
  39. data/bin/lib/Image/ExifTool/MWG.pm +1 -0
  40. data/bin/lib/Image/ExifTool/MacOS.pm +19 -4
  41. data/bin/lib/Image/ExifTool/Nikon.pm +2 -2
  42. data/bin/lib/Image/ExifTool/Ogg.pm +3 -2
  43. data/bin/lib/Image/ExifTool/Olympus.pm +3 -1
  44. data/bin/lib/Image/ExifTool/OpenEXR.pm +17 -17
  45. data/bin/lib/Image/ExifTool/PDF.pm +5 -5
  46. data/bin/lib/Image/ExifTool/Pentax.pm +1 -1
  47. data/bin/lib/Image/ExifTool/QuickTime.pm +183 -11
  48. data/bin/lib/Image/ExifTool/QuickTimeStream.pl +253 -237
  49. data/bin/lib/Image/ExifTool/README +6 -5
  50. data/bin/lib/Image/ExifTool/TagLookup.pm +2624 -2520
  51. data/bin/lib/Image/ExifTool/TagNames.pod +184 -4
  52. data/bin/lib/Image/ExifTool/WriteQuickTime.pl +15 -1
  53. data/bin/lib/Image/ExifTool/WriteXMP.pl +1 -1
  54. data/bin/lib/Image/ExifTool/Writer.pl +59 -8
  55. data/bin/lib/Image/ExifTool/XMP.pm +17 -2
  56. data/bin/lib/Image/ExifTool/XMP2.pl +64 -0
  57. data/bin/lib/Image/ExifTool.pm +249 -47
  58. data/bin/lib/Image/ExifTool.pod +57 -25
  59. data/bin/perl-Image-ExifTool.spec +2 -2
  60. data/lib/exiftool_vendored/version.rb +1 -1
  61. metadata +22 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7acf0f7d008e3a9b01730fbe29d0c0fa4019e40bab81347a6f28600afa11a0ad
4
- data.tar.gz: adbae416142dd2f73e5184b29552400f2862bb8e6310b3e6bdb3b6cfe10f5a25
3
+ metadata.gz: 6f29848f7a068302c03f2847eff9e3daf8ce7379cc676fcbfda76a3ef534fba4
4
+ data.tar.gz: 80952d3f13272898576e90899f3b3623eec46d3a193fa334daaa7838219a12f0
5
5
  SHA512:
6
- metadata.gz: 667df77a43ef7d665315ce5da38775d5d9027099e507dda712da9c4099fcbaf372ef5364bffddc91323f18072ab31c408077ee7f57e52d7eff2b674c6d62dcf1
7
- data.tar.gz: ccc0c4439a7f155acdada214d73944361e9ffffae98959860fcac18a034547d6ccd3f4d63e79c93b291051f0ca7ab14dbdc0c180acb16eae9f18da47a3bc390f
6
+ metadata.gz: f8c2b1352e32b75492ab82b890c9745e5fab108779eb0411d6fdfc76d2584e26082a9cbd8cdf9e4a1fe3bd7b370cec4969d3e84459db4e8876155304d3f0f524
7
+ data.tar.gz: daeab0ada07d19fa91766bff48d1e3c5d31ea4b3f3856d21972bc31890fbe9f1cba4cf6b1b66672cec07ffa0df62b9432a02960e4a0ab97365c0fecdf8bf030a
data/bin/Changes CHANGED
@@ -7,6 +7,80 @@ RSS feed: https://exiftool.org/rss.xml
7
7
  Note: The most recent production release is Version 12.76. (Other versions are
8
8
  considered development releases, and are not uploaded to MetaCPAN.)
9
9
 
10
+ Mar. 19, 2024 - Version 12.80
11
+
12
+ - Added GeolocationFeatureCode tag
13
+ - Added XMP-acdsee-rs tags and a new XMP-xmpDM tag
14
+ - Added ACDSeeRegion2MWGRegion conversion to config_files/acdsee.config
15
+ - Added GPSAltitudeRef to XMP-iptcExt LocationDetails structure
16
+ - Added a couple of new FujiFilm tags and a new CropMode value
17
+ - Added conversion for XMP-aux:ApproximateFocusDistance "infinity"
18
+ - Improved Geolocation regular expressions to allow negative matches
19
+ - Improved accuracy of Geolocation distance/bearing calculations
20
+ - Changed structure of Geolocation database (now version 1.02)
21
+ - Minor change to key format for user-defined Geolocation name translations
22
+ - Fixed case/spacing of "C2PA" in some CBOR tag descriptions
23
+ - Fixed bug extracting binary data from EXR files
24
+ - API Changes:
25
+ - Added GeolocFeature option
26
+
27
+ Mar. 15, 2024 - Version 12.79
28
+
29
+ - Improvements to new Geolocation feature:
30
+ - Added reverse Geolocation ability (obtain GPS coordinates from city
31
+ name), with support for regular expressions
32
+ - Added -listgeo option to list the Geolocation database
33
+ - Added the ability to include user-defined cities in the Geolocation
34
+ database
35
+ - Added the ability to write XMP-iptcExt LocationShown tags using Geolocate
36
+ feature
37
+ - Added the ability to specify which tags to read from file for the API
38
+ Geolocation option
39
+ - Added language translations for Geolocation names
40
+ - Increased resolution of Geolocation GPS positions and stored populations
41
+ - API Changes:
42
+ - Save necessary data members to allow GetInfo to be accessed by
43
+ user-defined tags
44
+
45
+ Mar. 5, 2024 - Version 12.78 - "Geolocation"
46
+
47
+ - Added new Geolocation feature and write-only Geolocate tag
48
+ - Added new config file entry (@Image::ExifTool::UserDefined::Arguments) to
49
+ allow default command-line arguments to be specified
50
+ - Added print conversion for TIFF-EPStandardID
51
+ - Added ability to delete Nextbase information from MP4 videos
52
+ - Decode timed GPS from MP4 videos written by Nextbase software
53
+ - Decode a number of new tags from Nextbase MP4 videos
54
+ - Decode a few new tags from Garmin MP4 videos
55
+ - Extract PreviewJXL images from DNG 1.7 files
56
+ - Generate Validate, ImageDataHash and UserParam tags earlier to allow them to
57
+ be used in UserDefined Composite tags
58
+ - Enhanced the -c option so a minus sign in the format specification prints a
59
+ signed coordinate without a leading "+" for positive numbers
60
+ - Changed formatting of some Accelerometer tags for consistency
61
+ - Changed behaviour of -ee3 option to do a brute-force scan for freeGPS in the
62
+ media data even when referenced by 'gps ' atom
63
+ - Other internal changes to decoding of timed GPS from videos
64
+ - Fixed problem were ExifTool would give up on extracting some types of timed
65
+ GPS from videos after 100 void fixes
66
+ - Fixed bug that could cause runtime error when reading Ogg files
67
+ - Fixed issue where some tags from alternate files using the -fileNUM option
68
+ weren't generated as requested
69
+ - API Changes:
70
+ - Added Geolocation, GeolocMaxDist and GeolocMinPop API options
71
+
72
+ Feb. 16, 2024 - Version 12.77
73
+
74
+ - Added new Olympus CameraType and LensType value (thanks herb)
75
+ - Added a new Canon Irix LensType
76
+ - Added the ability to delete MacOS XAttrMDItemWhereFroms
77
+ - Decode a few new Canon DPP tags (thanks John Moyer)
78
+ - Decode timed GPS from Adzome GS65H MOV videos
79
+ - Improved handling of XML-unfriendly characters in JSON field names (fixes
80
+ issue where -X option could produce invalid XML when reading JSON with the
81
+ -struct option)
82
+ - Fixed decoding of ShutterCount for Canon G5X-ii CR3 files
83
+
10
84
  Jan. 31, 2024 - Version 12.76 (production release)
11
85
 
12
86
  - Properly implement patch of 12.45 to avoid duplicating raw data when writing
@@ -19,6 +93,7 @@ Jan. 30, 2024 - Version 12.75 (production release)
19
93
  - CORRUPTION WARNING: Fixed bug introduced in 12.45 which could result in
20
94
  corrupted Sony ARW images from some newer models when rewriting lossless
21
95
  compressed ARW images which were previously edited by 12.44 or earlier
96
+ (the corruption is repairable, but requires a special version of ExifTool)
22
97
  - Added ability to read C2PA JUMBF metadata from PDF and SVG files
23
98
  - Added ability to extract JUMBF metadata as a block
24
99
  - Added read support for C2PA (JUMBF-format) files
@@ -547,7 +622,7 @@ Oct. 13, 2022 - Version 12.48
547
622
  "Z" are actually in Zulu time -- a bit of a mess really)
548
623
  - Prevent dynamically-generated Unknown tags from being extracted when the
549
624
  -validate option is used without -u
550
- - Patched to better handle irregular timestamps in streaming GPS of NextBase
625
+ - Patched to better handle irregular timestamps in streaming GPS of Nextbase
551
626
  dashcam videos
552
627
  - Fixed incompatibility with Sigma Photo Pro which could result in Sigma Photo
553
628
  Pro corrupting an ExifTool-edited X3F image (the section length in the
@@ -1419,7 +1494,7 @@ Mar. 19, 2020 - Version 11.92
1419
1494
  - Added a new Nikon LensID (thanks Wolfgang Exler)
1420
1495
  - Decode a few new Leica tags (thanks Tim Gray)
1421
1496
  - Decode AccelerometerData from Samsung Gear 360 videos
1422
- - Fixed a couple of problems decoding timed GPS metadata from NextBase dashcam
1497
+ - Fixed a couple of problems decoding timed GPS metadata from Nextbase dashcam
1423
1498
  videos
1424
1499
  - Fixed problem where -X option could produce invalid XML when reading
1425
1500
  corrupted XMP
@@ -2308,7 +2383,7 @@ Oct. 16, 2018 - Version 11.14
2308
2383
 
2309
2384
  Oct. 9, 2018 - Version 11.13
2310
2385
 
2311
- - Decode GPS from NextBase 512G dashcam MOV videos (different than 512GW)
2386
+ - Decode GPS from Nextbase 512G dashcam MOV videos (different than 512GW)
2312
2387
  - Added a new Canon LensType (thanks LibRaw)
2313
2388
  - Minor improvements to verbose dump of streaming GPS metadata
2314
2389
  - Reverted change of version 10.71 which resulted in Windows not recognizing
@@ -2327,7 +2402,7 @@ Oct. 2, 2018 - Version 11.12
2327
2402
  - Added a new Sony/Minolta LensType (thanks LibRaw and Jos Roost)
2328
2403
  - Added a new Nikon LensID
2329
2404
  - Decode a few new Sony SRF2 tags (thanks LibRaw)
2330
- - Decode GPS from NextBase 512GW dashcam MOV videos
2405
+ - Decode GPS from Nextbase 512GW dashcam MOV videos
2331
2406
  - Validate MS-DOC FIB before extracting contained tags
2332
2407
  - Fixed bug extracting GPSSpeed for some dashcam models
2333
2408
 
data/bin/MANIFEST CHANGED
@@ -195,6 +195,7 @@ html/data_members.html
195
195
  html/exiftool_pod.html
196
196
  html/faq.html
197
197
  html/filename.html
198
+ html/geolocation.html
198
199
  html/geotag.html
199
200
  html/history.html
200
201
  html/htmldump.html
@@ -293,7 +294,27 @@ lib/Image/ExifTool/GE.pm
293
294
  lib/Image/ExifTool/GIF.pm
294
295
  lib/Image/ExifTool/GIMP.pm
295
296
  lib/Image/ExifTool/GPS.pm
297
+ lib/Image/ExifTool/GeoLang/cs.pm
298
+ lib/Image/ExifTool/GeoLang/de.pm
299
+ lib/Image/ExifTool/GeoLang/en_ca.pm
300
+ lib/Image/ExifTool/GeoLang/en_gb.pm
301
+ lib/Image/ExifTool/GeoLang/es.pm
302
+ lib/Image/ExifTool/GeoLang/fi.pm
303
+ lib/Image/ExifTool/GeoLang/fr.pm
304
+ lib/Image/ExifTool/GeoLang/it.pm
305
+ lib/Image/ExifTool/GeoLang/ja.pm
306
+ lib/Image/ExifTool/GeoLang/ko.pm
307
+ lib/Image/ExifTool/GeoLang/nl.pm
308
+ lib/Image/ExifTool/GeoLang/pl.pm
309
+ lib/Image/ExifTool/GeoLang/ru.pm
310
+ lib/Image/ExifTool/GeoLang/sk.pm
311
+ lib/Image/ExifTool/GeoLang/sv.pm
312
+ lib/Image/ExifTool/GeoLang/tr.pm
313
+ lib/Image/ExifTool/GeoLang/zh_cn.pm
314
+ lib/Image/ExifTool/GeoLang/zh_tw.pm
296
315
  lib/Image/ExifTool/GeoTiff.pm
316
+ lib/Image/ExifTool/Geolocation.dat
317
+ lib/Image/ExifTool/Geolocation.pm
297
318
  lib/Image/ExifTool/Geotag.pm
298
319
  lib/Image/ExifTool/GoPro.pm
299
320
  lib/Image/ExifTool/H264.pm
@@ -599,6 +620,12 @@ t/GeoTiff.t
599
620
  t/GeoTiff_2.out
600
621
  t/GeoTiff_3.out
601
622
  t/GeoTiff_4.out
623
+ t/Geolocation.t
624
+ t/Geolocation_2.out
625
+ t/Geolocation_3.out
626
+ t/Geolocation_4.out
627
+ t/Geolocation_5.out
628
+ t/Geolocation_6.out
602
629
  t/Geotag.t
603
630
  t/Geotag_10.out
604
631
  t/Geotag_11.out
data/bin/META.json CHANGED
@@ -50,5 +50,5 @@
50
50
  }
51
51
  },
52
52
  "release_status" : "stable",
53
- "version" : "12.76"
53
+ "version" : "12.80"
54
54
  }
data/bin/META.yml CHANGED
@@ -31,4 +31,4 @@ recommends:
31
31
  Time::HiRes: 0
32
32
  requires:
33
33
  perl: 5.004
34
- version: 12.76
34
+ version: 12.80
data/bin/README CHANGED
@@ -20,7 +20,7 @@ supported by ExifTool (r = read, w = write, c = create):
20
20
  3GP r/w | DSS r | JP2 r/w | ODT r | RWL r/w
21
21
  7Z r | DV r | JPEG r/w | OFR r | RWZ r
22
22
  A r | DVB r/w | JSON r | OGG r | RM r
23
- AA r | DVR-MS r | JXL r | OGV r | SEQ r
23
+ AA r | DVR-MS r | JXL r/w | OGV r | SEQ r
24
24
  AAC r | DYLIB r | K25 r | ONP r | SKETCH r
25
25
  AAE r | EIP r | KDC r | OPUS r | SO r
26
26
  AAX r/w | EPS r/w | KEY r | ORF r/w | SR2 r/w
@@ -109,8 +109,8 @@ your home directory, then you would type the following commands in a
109
109
  terminal window to extract and run ExifTool:
110
110
 
111
111
  cd ~/Desktop
112
- gzip -dc Image-ExifTool-12.76.tar.gz | tar -xf -
113
- cd Image-ExifTool-12.76
112
+ gzip -dc Image-ExifTool-12.80.tar.gz | tar -xf -
113
+ cd Image-ExifTool-12.80
114
114
  ./exiftool t/images/ExifTool.jpg
115
115
 
116
116
  Note: These commands extract meta information from one of the test images.
@@ -41,7 +41,8 @@
41
41
  # type tags to ACDSee regions.
42
42
  # MPRegion2ACDSeeRegion : Converts a Microsoft RegionInfoMP
43
43
  # IPTCRegion2ACDSeeRegion : Converts an IPTC ImageRegion
44
- # MWGRegion2ACDSeeRegion : Converts a MWG RegionInfo
44
+ # MWGRegion2ACDSeeRegion : Converts from a MWG RegionInfo
45
+ # ACDSeeRegion2MWGRegion : Converts to a MWG RegionInfo
45
46
  #
46
47
  # Usage: To set individual tags
47
48
  # exiftool -config acdsee.config -ACDSEETAG=VALUE FILE ...
@@ -52,6 +53,8 @@
52
53
  # exiftool -config acdsee.config "-RegionInfoACDSee<IPTCRegion2ACDSeeRegion" File ...
53
54
  # To convert MWG Regions to ACDSee regions
54
55
  # exiftool -config acdsee.config "-RegionInfoACDSee<MWGRegion2ACDSeeRegion" File ...
56
+ # To convert ACDSee Regions to MWG regions
57
+ # exiftool -config acdsee.config "-RegionInfo<ACDSeeRegion2MWGRegion" File ...
55
58
  #
56
59
  # Requires: ExifTool version 10.28 or later
57
60
  #
@@ -64,45 +67,12 @@
64
67
  # "RegionInfoACDSeeAppliedToDimensions*" -> "ACDSeeRegionAppliedToDimensions*"
65
68
  # "RegionInfoACDSeeRegionList* -> "ACDSeeRegion*"
66
69
  # 2022/10/03 - PH Set group name properly to XMP-acdsee-rs
70
+ # 2024/03/19 - PH Moved XMP-acdsee-rs tags into the standard distribution,
71
+ # and added ACDSeeRegion2MWGRegion conversion
67
72
  #------------------------------------------------------------------------------
68
73
  use Data::Dumper;
69
74
 
70
- my %sACDSeeDimensions = (
71
- STRUCT_NAME => 'ACDSee Dimensions',
72
- NAMESPACE => {'acdsee-stDim' => 'http://ns.acdsee.com/sType/Dimensions#'},
73
- 'w' => { Writable => 'real' },
74
- 'h' => { Writable => 'real' },
75
- 'unit' => { },
76
- );
77
-
78
- my %sACDSeeArea = (
79
- STRUCT_NAME => 'ACDSee Area',
80
- NAMESPACE => { 'acdsee-stArea' => 'http://ns.acdsee.com/sType/Area#' },
81
- 'x' => { Writable => 'real' },
82
- 'y' => { Writable => 'real' },
83
- w => { Writable => 'real' },
84
- h => { Writable => 'real' },
85
- );
86
-
87
- my %sACDSeeRegionStruct = (
88
- STRUCT_NAME => 'ACDSee Regions',
89
- NAMESPACE => { 'acdsee-rs' => 'http://ns.acdsee.com/regions/' },
90
- ALGArea => { Struct => \%sACDSeeArea },
91
- DLYArea => { Struct => \%sACDSeeArea },
92
- Name => { },
93
- NameAssignType => { },
94
- Type => { },
95
- );
96
-
97
75
  %Image::ExifTool::UserDefined = (
98
- # new XMP namespaces for ACDSee regions
99
- 'Image::ExifTool::XMP::Main' => {
100
- 'acdsee-rs' => { # <-- must be the same as the NAMESPACE prefix
101
- SubDirectory => {
102
- TagTable => 'Image::ExifTool::UserDefined::ACDSeeRegions'
103
- },
104
- },
105
- },
106
76
  'Image::ExifTool::Composite' => {
107
77
  # create an ACDSee RegionInfo structure from a Microsoft RegionInfoMP structure
108
78
  MPRegion2ACDSeeRegion => {
@@ -176,7 +146,7 @@ my %sACDSeeRegionStruct = (
176
146
  },
177
147
  },
178
148
 
179
- # create an MWG RegionInfo structure from an IPTC ImageRegion list
149
+ # create an ACDSee RegionInfo structure from an MWG RegionInfo structure
180
150
  MWGRegion2ACDSeeRegion => {
181
151
  Require => {
182
152
  0 => 'RegionInfo',
@@ -207,29 +177,39 @@ my %sACDSeeRegionStruct = (
207
177
  }
208
178
  },
209
179
  },
210
- ####
211
- },
212
- );
213
180
 
214
- %Image::ExifTool::UserDefined::ACDSeeRegions = (
215
- GROUPS => { 0 => 'XMP', 1 => 'XMP-acdsee-rs', 2 => 'Image' },
216
- NAMESPACE => { 'acdsee-rs' => 'http://ns.acdsee.com/regions/' },
217
- WRITABLE => 'string', # (default to string-type tags)
218
- Regions => {
219
- Name => 'RegionInfoACDSee',
220
- FlatName => 'ACDSee',
221
- # the "Struct" entry defines the structure fields
222
- Struct => {
223
- # optional structure name (used for warning messages only)
224
- STRUCT_NAME => 'ACDSee RegionInfo',
225
- RegionList => {
226
- FlatName => 'Region',
227
- Struct => \%sACDSeeRegionStruct,
228
- List => 'Bag',
181
+ # create an MWG RegionInfo structure from an ACDSee RegionInfo
182
+ ACDSeeRegion2MWGRegion => {
183
+ Require => {
184
+ 0 => 'RegionInfoACDSee',
185
+ 1 => 'ImageWidth',
186
+ 2 => 'ImageHeight',
187
+ },
188
+ ValueConv => q{
189
+ my ($rgn, @newRgns);
190
+ my %newRgn;
191
+ foreach $rgn (@{$val[0]{RegionList}}) {
192
+ next unless $$rgn{Area} or defined $$rgn{Name};
193
+ my %newRgn;
194
+ if ($$rgn{DLYArea}) {
195
+ $newRgn{Area} = {
196
+ 'X' => $$rgn{DLYArea}{'X'},
197
+ 'Y' => $$rgn{DLYArea}{'Y'},
198
+ 'W' => $$rgn{DLYArea}{'W'},
199
+ 'H' => $$rgn{DLYArea}{'H'},
200
+ };
201
+ };
202
+ $newRgn{Name} = $$rgn{Name} if defined $$rgn{Name};
203
+ $newRgn{'Type'} = $$rgn{'Type'} if defined $$rgn{'Type'};
204
+ push @newRgns, \%newRgn;
205
+ }
206
+ return {
207
+ 'AppliedToDimensions' => $val[0]{'AppliedToDimensions'},
208
+ RegionList => \@newRgns,
209
+ }
229
210
  },
230
- AppliedToDimensions => {
231
- FlatName => 'RegionAppliedToDimensions',Struct => \%sACDSeeDimensions },
232
211
  },
212
+ ####
233
213
  },
234
214
  );
235
215
 
@@ -6,7 +6,8 @@
6
6
  # Notes: This example file shows how to define your own shortcuts and
7
7
  # add new EXIF, IPTC, XMP, PNG, MIE and Composite tags, as well
8
8
  # as how to specify preferred lenses for the LensID tag, and
9
- # define new file types and default ExifTool option values.
9
+ # define new file types and default ExifTool API options and
10
+ # command-line arguments.
10
11
  #
11
12
  # Note that unknown tags may be extracted even if they aren't
12
13
  # defined, but tags must be defined to be written. Also note
@@ -345,7 +346,7 @@ use Image::ExifTool::MIE;
345
346
  use Image::ExifTool::QuickTime;
346
347
  $Image::ExifTool::QuickTime::Keys{PREFERRED} = 3;
347
348
 
348
- # Specify default ExifTool option values
349
+ # Specify default ExifTool API options
349
350
  # (see the Options function documentation for available options)
350
351
  %Image::ExifTool::UserDefined::Options = (
351
352
  CoordFormat => '%.6f', # change default GPS coordinate format
@@ -354,5 +355,18 @@ $Image::ExifTool::QuickTime::Keys{PREFERRED} = 3;
354
355
  RequestAll => 3, # request additional tags not normally generated
355
356
  );
356
357
 
358
+ # Specify default exiftool command-line arguments
359
+ # - inserted before all other options except -config
360
+ # - applies to all -execute'd commands
361
+ @Image::ExifTool::UserDefined::Arguments = (
362
+ '-i', 'HIDDEN', # ignore hidden files by default (names beginning with ".")
363
+ );
364
+
365
+ # Add user-defined cities to the Geolocation lookup
366
+ @Image::ExifTool::UserDefined::Geolocation = (
367
+ # (city,region,country code,country,timezone,population,lat,lon)
368
+ ['Sinemorets','Burgas','BG','Bulgaria','Europe/Sofia',400,42.06115,27.97833],
369
+ );
370
+
357
371
  #------------------------------------------------------------------------------
358
372
  1; #end