exiftool-vendored.pl 13.0.0 → 13.16.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 (216) hide show
  1. package/bin/Changes +254 -20
  2. package/bin/MANIFEST +10 -0
  3. package/bin/META.json +1 -1
  4. package/bin/META.yml +1 -1
  5. package/bin/README +3 -3
  6. package/bin/arg_files/exif2xmp.args +4 -0
  7. package/bin/arg_files/xmp2exif.args +2 -1
  8. package/bin/build_geolocation +1 -1
  9. package/bin/exiftool +356 -213
  10. package/bin/lib/File/RandomAccess.pm +1 -1
  11. package/bin/lib/File/RandomAccess.pod +2 -2
  12. package/bin/lib/Image/ExifTool/AAC.pm +1 -1
  13. package/bin/lib/Image/ExifTool/AES.pm +1 -1
  14. package/bin/lib/Image/ExifTool/AFCP.pm +6 -6
  15. package/bin/lib/Image/ExifTool/AIFF.pm +2 -2
  16. package/bin/lib/Image/ExifTool/APE.pm +2 -2
  17. package/bin/lib/Image/ExifTool/APP12.pm +1 -1
  18. package/bin/lib/Image/ExifTool/ASF.pm +2 -2
  19. package/bin/lib/Image/ExifTool/Apple.pm +11 -9
  20. package/bin/lib/Image/ExifTool/Audible.pm +1 -1
  21. package/bin/lib/Image/ExifTool/BMP.pm +1 -1
  22. package/bin/lib/Image/ExifTool/BPG.pm +1 -1
  23. package/bin/lib/Image/ExifTool/BZZ.pm +1 -1
  24. package/bin/lib/Image/ExifTool/BigTIFF.pm +1 -1
  25. package/bin/lib/Image/ExifTool/BuildTagLookup.pm +36 -22
  26. package/bin/lib/Image/ExifTool/CBOR.pm +5 -2
  27. package/bin/lib/Image/ExifTool/Canon.pm +66 -27
  28. package/bin/lib/Image/ExifTool/CanonCustom.pm +1 -1
  29. package/bin/lib/Image/ExifTool/CanonRaw.pm +1 -1
  30. package/bin/lib/Image/ExifTool/CanonVRD.pm +1 -1
  31. package/bin/lib/Image/ExifTool/CaptureOne.pm +1 -1
  32. package/bin/lib/Image/ExifTool/Casio.pm +1 -1
  33. package/bin/lib/Image/ExifTool/Charset.pm +1 -1
  34. package/bin/lib/Image/ExifTool/DICOM.pm +1 -1
  35. package/bin/lib/Image/ExifTool/DJI.pm +196 -30
  36. package/bin/lib/Image/ExifTool/DNG.pm +1 -1
  37. package/bin/lib/Image/ExifTool/DPX.pm +1 -1
  38. package/bin/lib/Image/ExifTool/DV.pm +1 -1
  39. package/bin/lib/Image/ExifTool/DarwinCore.pm +1 -1
  40. package/bin/lib/Image/ExifTool/DjVu.pm +1 -1
  41. package/bin/lib/Image/ExifTool/EXE.pm +138 -33
  42. package/bin/lib/Image/ExifTool/Exif.pm +29 -16
  43. package/bin/lib/Image/ExifTool/FITS.pm +3 -3
  44. package/bin/lib/Image/ExifTool/FLAC.pm +1 -1
  45. package/bin/lib/Image/ExifTool/FLIF.pm +3 -3
  46. package/bin/lib/Image/ExifTool/FLIR.pm +1 -1
  47. package/bin/lib/Image/ExifTool/Fixup.pm +1 -1
  48. package/bin/lib/Image/ExifTool/Flash.pm +1 -1
  49. package/bin/lib/Image/ExifTool/FlashPix.pm +17 -21
  50. package/bin/lib/Image/ExifTool/Font.pm +2 -2
  51. package/bin/lib/Image/ExifTool/FotoStation.pm +1 -1
  52. package/bin/lib/Image/ExifTool/FujiFilm.pm +1 -1
  53. package/bin/lib/Image/ExifTool/GE.pm +1 -1
  54. package/bin/lib/Image/ExifTool/GIF.pm +144 -93
  55. package/bin/lib/Image/ExifTool/GIMP.pm +1 -1
  56. package/bin/lib/Image/ExifTool/GM.pm +1 -1
  57. package/bin/lib/Image/ExifTool/GPS.pm +34 -30
  58. package/bin/lib/Image/ExifTool/GeoTiff.pm +1 -1
  59. package/bin/lib/Image/ExifTool/Geolocation.dat +0 -0
  60. package/bin/lib/Image/ExifTool/Geolocation.pm +19 -9
  61. package/bin/lib/Image/ExifTool/Geotag.pm +46 -12
  62. package/bin/lib/Image/ExifTool/GoPro.pm +120 -8
  63. package/bin/lib/Image/ExifTool/H264.pm +1 -1
  64. package/bin/lib/Image/ExifTool/HP.pm +2 -2
  65. package/bin/lib/Image/ExifTool/HTML.pm +1 -1
  66. package/bin/lib/Image/ExifTool/HtmlDump.pm +1 -1
  67. package/bin/lib/Image/ExifTool/ICC_Profile.pm +81 -2
  68. package/bin/lib/Image/ExifTool/ICO.pm +1 -1
  69. package/bin/lib/Image/ExifTool/ID3.pm +8 -8
  70. package/bin/lib/Image/ExifTool/IPTC.pm +10 -7
  71. package/bin/lib/Image/ExifTool/ISO.pm +1 -1
  72. package/bin/lib/Image/ExifTool/ITC.pm +1 -1
  73. package/bin/lib/Image/ExifTool/Import.pm +5 -4
  74. package/bin/lib/Image/ExifTool/InDesign.pm +2 -2
  75. package/bin/lib/Image/ExifTool/InfiRay.pm +1 -1
  76. package/bin/lib/Image/ExifTool/JPEG.pm +32 -5
  77. package/bin/lib/Image/ExifTool/JPEGDigest.pm +1 -1
  78. package/bin/lib/Image/ExifTool/JSON.pm +1 -1
  79. package/bin/lib/Image/ExifTool/JVC.pm +1 -1
  80. package/bin/lib/Image/ExifTool/Jpeg2000.pm +10 -9
  81. package/bin/lib/Image/ExifTool/Kodak.pm +1 -1
  82. package/bin/lib/Image/ExifTool/KyoceraRaw.pm +1 -1
  83. package/bin/lib/Image/ExifTool/LIF.pm +1 -1
  84. package/bin/lib/Image/ExifTool/LNK.pm +2 -2
  85. package/bin/lib/Image/ExifTool/Lang/cs.pm +1 -1
  86. package/bin/lib/Image/ExifTool/Lang/de.pm +1 -1
  87. package/bin/lib/Image/ExifTool/Lang/en_ca.pm +1 -1
  88. package/bin/lib/Image/ExifTool/Lang/en_gb.pm +1 -1
  89. package/bin/lib/Image/ExifTool/Lang/es.pm +1 -1
  90. package/bin/lib/Image/ExifTool/Lang/fi.pm +1 -1
  91. package/bin/lib/Image/ExifTool/Lang/fr.pm +1 -1
  92. package/bin/lib/Image/ExifTool/Lang/it.pm +1 -1
  93. package/bin/lib/Image/ExifTool/Lang/ja.pm +1 -1
  94. package/bin/lib/Image/ExifTool/Lang/ko.pm +1 -1
  95. package/bin/lib/Image/ExifTool/Lang/nl.pm +1 -1
  96. package/bin/lib/Image/ExifTool/Lang/pl.pm +1 -1
  97. package/bin/lib/Image/ExifTool/Lang/ru.pm +1 -1
  98. package/bin/lib/Image/ExifTool/Lang/sk.pm +1 -1
  99. package/bin/lib/Image/ExifTool/Lang/sv.pm +1 -1
  100. package/bin/lib/Image/ExifTool/Lang/tr.pm +1 -1
  101. package/bin/lib/Image/ExifTool/Lang/zh_cn.pm +1 -1
  102. package/bin/lib/Image/ExifTool/Lang/zh_tw.pm +1 -1
  103. package/bin/lib/Image/ExifTool/Leaf.pm +1 -1
  104. package/bin/lib/Image/ExifTool/LigoGPS.pm +409 -0
  105. package/bin/lib/Image/ExifTool/Lytro.pm +1 -1
  106. package/bin/lib/Image/ExifTool/M2TS.pm +57 -18
  107. package/bin/lib/Image/ExifTool/MIE.pm +15 -6
  108. package/bin/lib/Image/ExifTool/MIEUnits.pod +1 -1
  109. package/bin/lib/Image/ExifTool/MIFF.pm +1 -1
  110. package/bin/lib/Image/ExifTool/MISB.pm +1 -1
  111. package/bin/lib/Image/ExifTool/MNG.pm +1 -1
  112. package/bin/lib/Image/ExifTool/MOI.pm +1 -1
  113. package/bin/lib/Image/ExifTool/MPC.pm +1 -1
  114. package/bin/lib/Image/ExifTool/MPEG.pm +1 -1
  115. package/bin/lib/Image/ExifTool/MPF.pm +1 -1
  116. package/bin/lib/Image/ExifTool/MRC.pm +1 -1
  117. package/bin/lib/Image/ExifTool/MWG.pm +1 -1
  118. package/bin/lib/Image/ExifTool/MXF.pm +3 -3
  119. package/bin/lib/Image/ExifTool/MacOS.pm +3 -2
  120. package/bin/lib/Image/ExifTool/MakerNotes.pm +1 -1
  121. package/bin/lib/Image/ExifTool/Matroska.pm +22 -6
  122. package/bin/lib/Image/ExifTool/Microsoft.pm +2 -2
  123. package/bin/lib/Image/ExifTool/Minolta.pm +1 -1
  124. package/bin/lib/Image/ExifTool/MinoltaRaw.pm +1 -1
  125. package/bin/lib/Image/ExifTool/Motorola.pm +1 -1
  126. package/bin/lib/Image/ExifTool/Nikon.pm +495 -39
  127. package/bin/lib/Image/ExifTool/NikonCapture.pm +1 -1
  128. package/bin/lib/Image/ExifTool/NikonCustom.pm +2 -2
  129. package/bin/lib/Image/ExifTool/NikonSettings.pm +1 -1
  130. package/bin/lib/Image/ExifTool/Nintendo.pm +1 -1
  131. package/bin/lib/Image/ExifTool/OOXML.pm +8 -8
  132. package/bin/lib/Image/ExifTool/Ogg.pm +1 -1
  133. package/bin/lib/Image/ExifTool/Olympus.pm +1 -1
  134. package/bin/lib/Image/ExifTool/OpenEXR.pm +1 -1
  135. package/bin/lib/Image/ExifTool/Opus.pm +1 -1
  136. package/bin/lib/Image/ExifTool/Other.pm +1 -1
  137. package/bin/lib/Image/ExifTool/PCX.pm +1 -1
  138. package/bin/lib/Image/ExifTool/PDF.pm +49 -18
  139. package/bin/lib/Image/ExifTool/PGF.pm +1 -1
  140. package/bin/lib/Image/ExifTool/PICT.pm +1 -1
  141. package/bin/lib/Image/ExifTool/PLIST.pm +4 -4
  142. package/bin/lib/Image/ExifTool/PLUS.pm +1 -1
  143. package/bin/lib/Image/ExifTool/PNG.pm +20 -8
  144. package/bin/lib/Image/ExifTool/PPM.pm +12 -3
  145. package/bin/lib/Image/ExifTool/PSP.pm +1 -1
  146. package/bin/lib/Image/ExifTool/Palm.pm +1 -1
  147. package/bin/lib/Image/ExifTool/Panasonic.pm +27 -3
  148. package/bin/lib/Image/ExifTool/PanasonicRaw.pm +1 -1
  149. package/bin/lib/Image/ExifTool/Parrot.pm +1 -1
  150. package/bin/lib/Image/ExifTool/Pentax.pm +1 -1
  151. package/bin/lib/Image/ExifTool/PhaseOne.pm +4 -4
  152. package/bin/lib/Image/ExifTool/PhotoCD.pm +1 -1
  153. package/bin/lib/Image/ExifTool/PhotoMechanic.pm +1 -1
  154. package/bin/lib/Image/ExifTool/Photoshop.pm +65 -4
  155. package/bin/lib/Image/ExifTool/PostScript.pm +1 -1
  156. package/bin/lib/Image/ExifTool/PrintIM.pm +1 -1
  157. package/bin/lib/Image/ExifTool/Protobuf.pm +270 -0
  158. package/bin/lib/Image/ExifTool/Qualcomm.pm +1 -1
  159. package/bin/lib/Image/ExifTool/QuickTime.pm +326 -88
  160. package/bin/lib/Image/ExifTool/QuickTimeStream.pl +199 -195
  161. package/bin/lib/Image/ExifTool/README +12 -2
  162. package/bin/lib/Image/ExifTool/RIFF.pm +21 -6
  163. package/bin/lib/Image/ExifTool/RSRC.pm +1 -1
  164. package/bin/lib/Image/ExifTool/RTF.pm +2 -2
  165. package/bin/lib/Image/ExifTool/Radiance.pm +1 -1
  166. package/bin/lib/Image/ExifTool/Rawzor.pm +1 -1
  167. package/bin/lib/Image/ExifTool/Real.pm +1 -1
  168. package/bin/lib/Image/ExifTool/Reconyx.pm +1 -1
  169. package/bin/lib/Image/ExifTool/Red.pm +1 -1
  170. package/bin/lib/Image/ExifTool/Ricoh.pm +4 -4
  171. package/bin/lib/Image/ExifTool/Samsung.pm +2 -2
  172. package/bin/lib/Image/ExifTool/Sanyo.pm +1 -1
  173. package/bin/lib/Image/ExifTool/Scalado.pm +1 -1
  174. package/bin/lib/Image/ExifTool/Shift.pl +1 -1
  175. package/bin/lib/Image/ExifTool/Shortcuts.pm +1 -1
  176. package/bin/lib/Image/ExifTool/Sigma.pm +1 -1
  177. package/bin/lib/Image/ExifTool/SigmaRaw.pm +1 -1
  178. package/bin/lib/Image/ExifTool/Sony.pm +5 -4
  179. package/bin/lib/Image/ExifTool/SonyIDC.pm +1 -1
  180. package/bin/lib/Image/ExifTool/Stim.pm +1 -1
  181. package/bin/lib/Image/ExifTool/TagInfoXML.pm +6 -5
  182. package/bin/lib/Image/ExifTool/TagLookup.pm +7023 -6968
  183. package/bin/lib/Image/ExifTool/TagNames.pod +445 -29
  184. package/bin/lib/Image/ExifTool/Text.pm +4 -3
  185. package/bin/lib/Image/ExifTool/Theora.pm +1 -1
  186. package/bin/lib/Image/ExifTool/Torrent.pm +3 -3
  187. package/bin/lib/Image/ExifTool/Unknown.pm +1 -1
  188. package/bin/lib/Image/ExifTool/VCard.pm +3 -3
  189. package/bin/lib/Image/ExifTool/Validate.pm +6 -6
  190. package/bin/lib/Image/ExifTool/Vivo.pm +124 -0
  191. package/bin/lib/Image/ExifTool/Vorbis.pm +1 -1
  192. package/bin/lib/Image/ExifTool/WPG.pm +1 -1
  193. package/bin/lib/Image/ExifTool/WTV.pm +1 -1
  194. package/bin/lib/Image/ExifTool/WriteCanonRaw.pl +1 -1
  195. package/bin/lib/Image/ExifTool/WriteExif.pl +3 -3
  196. package/bin/lib/Image/ExifTool/WriteIPTC.pl +1 -1
  197. package/bin/lib/Image/ExifTool/WritePDF.pl +1 -1
  198. package/bin/lib/Image/ExifTool/WritePNG.pl +1 -1
  199. package/bin/lib/Image/ExifTool/WritePhotoshop.pl +1 -1
  200. package/bin/lib/Image/ExifTool/WritePostScript.pl +1 -1
  201. package/bin/lib/Image/ExifTool/WriteQuickTime.pl +166 -79
  202. package/bin/lib/Image/ExifTool/WriteRIFF.pl +17 -6
  203. package/bin/lib/Image/ExifTool/WriteXMP.pl +3 -3
  204. package/bin/lib/Image/ExifTool/Writer.pl +89 -96
  205. package/bin/lib/Image/ExifTool/XISF.pm +1 -1
  206. package/bin/lib/Image/ExifTool/XMP.pm +28 -13
  207. package/bin/lib/Image/ExifTool/XMP2.pl +103 -1
  208. package/bin/lib/Image/ExifTool/XMPStruct.pl +2 -3
  209. package/bin/lib/Image/ExifTool/ZIP.pm +2 -2
  210. package/bin/lib/Image/ExifTool/ZISRAW.pm +1 -1
  211. package/bin/lib/Image/ExifTool/iWork.pm +1 -1
  212. package/bin/lib/Image/ExifTool.pm +335 -163
  213. package/bin/lib/Image/ExifTool.pod +119 -73
  214. package/bin/perl-Image-ExifTool.spec +1 -1
  215. package/bin/windows_exiftool.txt +96 -51
  216. package/package.json +9 -9
@@ -29,7 +29,7 @@
29
29
  # Sets internal ERROR member from $! if there is an error reading
30
30
  # the file.
31
31
  #
32
- # Legal: Copyright (c) 2003-2024, Phil Harvey (philharvey66 at gmail.com)
32
+ # Legal: Copyright (c) 2003-2025, Phil Harvey (philharvey66 at gmail.com)
33
33
  # This library is free software; you can redistribute it and/or
34
34
  # modify it under the same terms as Perl itself.
35
35
  #------------------------------------------------------------------------------
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # Description: Buffer to support random access reading of sequential file
5
5
  #
6
- # Legal: Copyright (c) 2003-2024, Phil Harvey (philharvey66 at gmail.com)
6
+ # Legal: Copyright (c) 2003-2025, Phil Harvey (philharvey66 at gmail.com)
7
7
  # This library is free software; you can redistribute it and/or
8
8
  # modify it under the same terms as Perl itself.
9
9
  #------------------------------------------------------------------------------
@@ -236,7 +236,7 @@ the end of file is not allowed.
236
236
 
237
237
  =head1 AUTHOR
238
238
 
239
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
239
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
240
240
 
241
241
  This library is free software; you can redistribute it and/or modify it
242
242
  under the same terms as Perl itself.
@@ -163,7 +163,7 @@ based on unofficial sources which may be incomplete, inaccurate or outdated.
163
163
 
164
164
  =head1 AUTHOR
165
165
 
166
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
166
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
167
167
 
168
168
  This library is free software; you can redistribute it and/or modify it
169
169
  under the same terms as Perl itself.
@@ -477,7 +477,7 @@ main purpose of encryption, so this really can't be considered a bug.
477
477
 
478
478
  =head1 AUTHOR
479
479
 
480
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
480
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
481
481
 
482
482
  This library is free software; you can redistribute it and/or modify it
483
483
  under the same terms as Perl itself.
@@ -14,7 +14,7 @@ use strict;
14
14
  use vars qw($VERSION);
15
15
  use Image::ExifTool qw(:DataAccess :Utils);
16
16
 
17
- $VERSION = '1.09';
17
+ $VERSION = '1.10';
18
18
 
19
19
  sub ProcessAFCP($$);
20
20
 
@@ -63,10 +63,10 @@ for the AFCP specification.
63
63
  #------------------------------------------------------------------------------
64
64
  # Read/write AFCP information in a file
65
65
  # Inputs: 0) ExifTool object reference, 1) dirInfo reference
66
- # (Set 'ScanForAFCP' member in dirInfo to scan from current position for AFCP)
66
+ # (Set 'ScanForTrailer' member in dirInfo to scan from current position for AFCP)
67
67
  # Returns: 1 on success, 0 if this file didn't contain AFCP information
68
68
  # -1 on write error or if the offsets were incorrect on reading
69
- # - updates DataPos to point to actual AFCP start if ScanForAFCP is set
69
+ # - updates DataPos to point to actual AFCP start if ScanForTrailer is set
70
70
  # - updates DirLen to trailer length
71
71
  # - returns Fixup reference in dirInfo hash when writing
72
72
  sub ProcessAFCP($$)
@@ -91,8 +91,8 @@ NoAFCP: for (;;) {
91
91
  $fix = 0;
92
92
  } else {
93
93
  $rtnVal = -1;
94
- # look for start of AXS trailer if 'ScanForAFCP'
95
- last unless $$dirInfo{ScanForAFCP} and $raf->Seek($curPos, 0);
94
+ # look for start of AXS trailer if 'ScanForTrailer'
95
+ last unless $$dirInfo{ScanForTrailer} and $raf->Seek($curPos, 0);
96
96
  my $actualPos = $curPos;
97
97
  # first look for header right at current position
98
98
  for (;;) {
@@ -259,7 +259,7 @@ scanning for AFCP information.
259
259
 
260
260
  =head1 AUTHOR
261
261
 
262
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
262
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
263
263
 
264
264
  This library is free software; you can redistribute it and/or modify it
265
265
  under the same terms as Perl itself.
@@ -231,7 +231,7 @@ sub ProcessAIFF($$)
231
231
  $et->Warn('End of processing at large chunk (LargeFileSupport not enabled)');
232
232
  last;
233
233
  } elsif ($et->Options('LargeFileSupport') eq '2') {
234
- $et->WarnOnce('Skipping large chunk (LargeFileSupport is 2)');
234
+ $et->Warn('Skipping large chunk (LargeFileSupport is 2)');
235
235
  }
236
236
  }
237
237
  if ($tagInfo) {
@@ -291,7 +291,7 @@ information from AIFF (Audio Interchange File Format) audio files.
291
291
 
292
292
  =head1 AUTHOR
293
293
 
294
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
294
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
295
295
 
296
296
  This library is free software; you can redistribute it and/or modify it
297
297
  under the same terms as Perl itself.
@@ -217,7 +217,7 @@ sub ProcessAPE($$)
217
217
  $val = \$buf2;
218
218
  # extract cover art description separately (hackitty hack)
219
219
  if ($tag =~ /^Cover Art/) {
220
- $buf2 =~ s/^([\x20-\x7f]*)\0//;
220
+ $buf2 =~ s/^([\x20-\x7e]*)\0//;
221
221
  if ($1) {
222
222
  my $t = "$tag Desc";
223
223
  my $v = $1;
@@ -263,7 +263,7 @@ Currently doesn't parse MAC header unless it is at the start of the file.
263
263
 
264
264
  =head1 AUTHOR
265
265
 
266
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
266
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
267
267
 
268
268
  This library is free software; you can redistribute it and/or modify it
269
269
  under the same terms as Perl itself.
@@ -306,7 +306,7 @@ APP12 meta information.
306
306
 
307
307
  =head1 AUTHOR
308
308
 
309
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
309
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
310
310
 
311
311
  This library is free software; you can redistribute it and/or modify it
312
312
  under the same terms as Perl itself.
@@ -781,7 +781,7 @@ sub ProcessASF($$;$)
781
781
  $err = 'Invalid ASF object size';
782
782
  } elsif ($et->Options('LargeFileSupport')) {
783
783
  if ($et->Options('LargeFileSupport') eq '2') {
784
- $et->WarnOnce('Skipping large ASF object (LargeFileSupport is 2)');
784
+ $et->Warn('Skipping large ASF object (LargeFileSupport is 2)');
785
785
  }
786
786
  if ($raf->Seek($size, 1)) {
787
787
  $et->VPrint(0, " Skipped large ASF object ($size bytes)\n");
@@ -879,7 +879,7 @@ Windows Media Audio (WMA) and Windows Media Video (WMV) files.
879
879
 
880
880
  =head1 AUTHOR
881
881
 
882
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
882
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
883
883
 
884
884
  This library is free software; you can redistribute it and/or modify it
885
885
  under the same terms as Perl itself.
@@ -16,7 +16,7 @@ use vars qw($VERSION);
16
16
  use Image::ExifTool::Exif;
17
17
  use Image::ExifTool::PLIST;
18
18
 
19
- $VERSION = '1.12';
19
+ $VERSION = '1.14';
20
20
 
21
21
  sub ConvertPLIST($$);
22
22
 
@@ -99,7 +99,7 @@ sub ConvertPLIST($$);
99
99
  my @a = split ' ', $val;
100
100
  sprintf('%.2f - %.2f m', $a[0] <= $a[1] ? @a : reverse @a);
101
101
  },
102
- PrintConvInv => '$val =~ s/ - //; $val =~ s/ ?m$//; $val',
102
+ PrintConvInv => '$val =~ s/ - / /; $val =~ s/ ?m$//; $val',
103
103
  },
104
104
  # 0x000d - int32s: 0,1,6,20,24,32,40 (SphereHealthAverageCurrent, ref 2)
105
105
  # 0x000e - int32s: 0,1,4,12 (Orientation? 0=landscape? 4=portrait? ref 1) (SphereMotionDataStatus, ref 2)
@@ -291,12 +291,12 @@ sub ConvertPLIST($$);
291
291
  # 0x0047 - (LeaderFollowerAutoFocusLeaderDepth, ref 2)
292
292
  # 0x0048 - (LeaderFollowerAutoFocusLeaderFocusMethod, ref 2)
293
293
  # 0x0049 - (LeaderFollowerAutoFocusLeaderConfidence, ref 2)
294
- # 0x004A - (LeaderFollowerAutoFocusLeaderROIType, ref 2)
294
+ # 0x004a - (LeaderFollowerAutoFocusLeaderROIType, ref 2)
295
295
  # 0x004a - 2=back normal, 4=back wide angle, 5=front (ref PH)
296
- # 0x004B - (ZeroShutterLagFailureReason, ref 2)
297
- # 0x004C - (TimeOfFlightAssistedAutoFocusEstimatorMSPMeasuredDepth, ref 2)
298
- # 0x004D - (TimeOfFlightAssistedAutoFocusEstimatorMSPSensorConfidence, ref 2)
299
- # 0x004E - (Camera, ref 2)
296
+ # 0x004b - (ZeroShutterLagFailureReason, ref 2)
297
+ # 0x004c - (TimeOfFlightAssistedAutoFocusEstimatorMSPMeasuredDepth, ref 2)
298
+ # 0x004d - (TimeOfFlightAssistedAutoFocusEstimatorMSPSensorConfidence, ref 2)
299
+ # 0x004e - (Camera, ref 2)
300
300
  0x004e => {
301
301
  Name => 'Apple_0x004e',
302
302
  Unknown => 1,
@@ -358,7 +358,8 @@ Image::ExifTool::AddCompositeTags('Image::ExifTool::Apple');
358
358
  sub ConvertPLIST($$)
359
359
  {
360
360
  my ($val, $et) = @_;
361
- my $dirInfo = { DataPt => \$val };
361
+ my $dirInfo = { DataPt => \$val, NoVerboseDir => 1 };
362
+ my $oldOrder = $et->GetByteOrder();
362
363
  require Image::ExifTool::PLIST;
363
364
  Image::ExifTool::PLIST::ProcessBinaryPLIST($et, $dirInfo);
364
365
  $val = $$dirInfo{Value};
@@ -366,6 +367,7 @@ sub ConvertPLIST($$)
366
367
  require 'Image/ExifTool/XMPStruct.pl';
367
368
  $val = Image::ExifTool::XMP::SerializeStruct($et, $val);
368
369
  }
370
+ $et->SetByteOrder($oldOrder);
369
371
  return $val;
370
372
  }
371
373
 
@@ -388,7 +390,7 @@ Apple maker notes in EXIF information.
388
390
 
389
391
  =head1 AUTHOR
390
392
 
391
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
393
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
392
394
 
393
395
  This library is free software; you can redistribute it and/or modify it
394
396
  under the same terms as Perl itself.
@@ -291,7 +291,7 @@ information from Audible audio books.
291
291
 
292
292
  =head1 AUTHOR
293
293
 
294
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
294
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
295
295
 
296
296
  This library is free software; you can redistribute it and/or modify it
297
297
  under the same terms as Perl itself.
@@ -335,7 +335,7 @@ This module contains definitions required by Image::ExifTool to read BMP
335
335
 
336
336
  =head1 AUTHOR
337
337
 
338
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
338
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
339
339
 
340
340
  This library is free software; you can redistribute it and/or modify it
341
341
  under the same terms as Perl itself.
@@ -231,7 +231,7 @@ This module contains definitions required by Image::ExifTool to read BPG
231
231
 
232
232
  =head1 AUTHOR
233
233
 
234
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
234
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
235
235
 
236
236
  This library is free software; you can redistribute it and/or modify it
237
237
  under the same terms as Perl itself.
@@ -445,7 +445,7 @@ compression ability).
445
445
 
446
446
  =head1 AUTHOR
447
447
 
448
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
448
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
449
449
  Copyright 2002, Leon Bottou and Yann Le Cun
450
450
  Copyright 2001, AT&T
451
451
  Copyright 1999-2001, LizardTech Inc.
@@ -282,7 +282,7 @@ information in BigTIFF images.
282
282
 
283
283
  =head1 AUTHOR
284
284
 
285
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
285
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
286
286
 
287
287
  This library is free software; you can redistribute it and/or modify it
288
288
  under the same terms as Perl itself.
@@ -35,7 +35,7 @@ use Image::ExifTool::Sony;
35
35
  use Image::ExifTool::Validate;
36
36
  use Image::ExifTool::MacOS;
37
37
 
38
- $VERSION = '3.58';
38
+ $VERSION = '3.61';
39
39
  @ISA = qw(Exporter);
40
40
 
41
41
  sub NumbersFirst($$);
@@ -84,7 +84,8 @@ my %tweakOrder = (
84
84
  Nintendo => 'NikonCapture',
85
85
  Pentax => 'Panasonic',
86
86
  SonyIDC => 'Sony',
87
- Unknown => 'SonyIDC',
87
+ Vivo => 'SonyIDC',
88
+ Unknown => 'Vivo',
88
89
  DNG => 'Unknown',
89
90
  PrintIM => 'ICC_Profile',
90
91
  Vorbis => 'Ogg',
@@ -100,6 +101,8 @@ my %tweakOrder = (
100
101
  MWG => 'Shortcuts',
101
102
  'FujiFilm::RAF' => 'FujiFilm::RAFHeader',
102
103
  'FujiFilm::RAFData' => 'FujiFilm::RAF',
104
+ 'QuickTime::AudioKeys' => 'QuickTime::Keys',
105
+ 'QuickTime::VideoKeys' => 'QuickTime::AudioKeys',
103
106
  );
104
107
 
105
108
  # list of all recognized Format strings
@@ -437,15 +440,16 @@ appropriate table in the config file (see
437
440
  L<example.config|../config.html#PREF> in the full distribution for an
438
441
  example). Note that some tags with the same name but different ID's may
439
442
  exist in the same location, but the family 7 group names may be used to
440
- differentiate these. ExifTool currently writes only top-level metadata in
441
- QuickTime-based files; it extracts other track-specific and timed metadata,
442
- but can not yet edit tags in these locations (with the exception of
443
- track-level date/time tags).
443
+ differentiate these.
444
444
 
445
- Beware that the Keys tags are actually stored inside the ItemList in the
446
- file, so deleting the ItemList group as a block (ie. C<-ItemList:all=>) also
447
- deletes Keys tags. Instead, to preserve Keys tags the ItemList tags may be
448
- deleted individually with C<-QuickTime:ItemList:all=>.
445
+ ExifTool currently writes
446
+ L<ItemList|Image::ExifTool::TagNames/QuickTime ItemList Tags> and
447
+ L<UserData|Image::ExifTool::TagNames/QuickTime UserData Tags> only as
448
+ top-level metadata, but select Keys tags are may be written to the audio or
449
+ video track. See the
450
+ L<AudioKeys|Image::ExifTool::TagNames/QuickTime AudioKeys Tags> and
451
+ L<VideoKeys|Image::ExifTool::TagNames/QuickTime VideoKeys Tags> tags for
452
+ more information.
449
453
 
450
454
  Alternate language tags may be accessed for
451
455
  L<ItemList|Image::ExifTool::TagNames/QuickTime ItemList Tags> and
@@ -457,8 +461,8 @@ L<UserData|Image::ExifTool::TagNames/QuickTime UserData Tags> tags support a
457
461
  language code, but without a country code. If no language code is specified
458
462
  when writing, the default language is written and alternate languages for
459
463
  the tag are deleted. Use the "und" language code to write the default
460
- language without deleting alternate languages. Note that "eng" is treated
461
- as a default language when reading, but not when writing.
464
+ language without deleting alternate languages. Note that when reading,
465
+ "eng" is also treated as the default language if there is no country code.
462
466
 
463
467
  According to the specification, integer-format QuickTime date/time tags
464
468
  should be stored as UTC. Unfortunately, digital cameras often store local
@@ -688,7 +692,7 @@ L<Image::ExifTool::BuildTagLookup|Image::ExifTool::BuildTagLookup>.
688
692
 
689
693
  ~head1 AUTHOR
690
694
 
691
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
695
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
692
696
 
693
697
  This library is free software; you can redistribute it and/or modify it
694
698
  under the same terms as Perl itself.
@@ -866,10 +870,16 @@ sub new
866
870
  }
867
871
  $noID = 1 if $isXMP or $short =~ /^(Shortcuts|ASF.*)$/ or $$vars{NO_ID};
868
872
  $hexID = $$vars{HEX_ID};
873
+ if ($$table{WRITE_PROC} and $$table{WRITE_PROC} eq \&Image::ExifTool::WriteBinaryData
874
+ and not $$table{CHECK_PROC})
875
+ {
876
+ warn("Binary table $tableName doesn't have a CHECK_PROC\n");
877
+ }
869
878
  my $processBinaryData = ($$table{PROCESS_PROC} and (
870
879
  $$table{PROCESS_PROC} eq \&Image::ExifTool::ProcessBinaryData or
871
880
  $$table{PROCESS_PROC} eq \&Image::ExifTool::Nikon::ProcessNikonEncrypted or
872
- $$table{PROCESS_PROC} eq \&Image::ExifTool::Sony::ProcessEnciphered));
881
+ $$table{PROCESS_PROC} eq \&Image::ExifTool::Sony::ProcessEnciphered) or
882
+ $$table{VARS} and $$table{VARS}{IS_BINARY});
873
883
  if ($$vars{ID_LABEL} or $processBinaryData) {
874
884
  my $s = $$table{FORMAT} ? Image::ExifTool::FormatSize($$table{FORMAT}) || 1 : 1;
875
885
  $binaryTable = 1;
@@ -1003,6 +1013,9 @@ TagID: foreach $tagID (@keys) {
1003
1013
  if ($writable and not ($$table{WRITE_PROC} or $tableName =~ /Shortcuts/ or $writable eq '2')) {
1004
1014
  undef $writable;
1005
1015
  }
1016
+ #if ($writable and $$tagInfo{Unknown} and $$table{GROUPS}{0} ne 'MakerNotes') {
1017
+ # warn "Warning: Writable Unknown tag - $short $name\n",
1018
+ #}
1006
1019
  # validate some characteristics of obvious date/time tags
1007
1020
  my @g = $et->GetGroup($tagInfo);
1008
1021
  if ($$tagInfo{List} and $g[2] eq 'Time' and $writable and not $$tagInfo{Protected} and
@@ -1248,7 +1261,7 @@ TagID: foreach $tagID (@keys) {
1248
1261
  }
1249
1262
  } elsif ($$tagInfo{PrintString} or not /^[+-]?(?=\d|\.\d)\d*(\.\d*)?$/) {
1250
1263
  # translate unprintable values
1251
- if ($index =~ s/([\x00-\x1f\x80-\xff])/sprintf("\\x%.2x",ord $1)/eg) {
1264
+ if ($index =~ s/([\x00-\x1f\x7f-\xff])/sprintf("\\x%.2x",ord $1)/eg) {
1252
1265
  $index = qq{"$index"};
1253
1266
  } else {
1254
1267
  $index = qq{'${index}'};
@@ -1331,7 +1344,7 @@ TagID: foreach $tagID (@keys) {
1331
1344
  $writable = 'yes' if $tw and $writable eq '1' or $writable eq '2';
1332
1345
  $writable = '-' . ($tw ? $writable : '');
1333
1346
  $writable .= '!' if $tw and ($$tagInfo{Protected} || 0) & 0x01;
1334
- $writable .= '+' if $$tagInfo{List};
1347
+ $writable .= '+' if $$tagInfo{List} or $$tagInfo{IsList};
1335
1348
  if (defined $$tagInfo{Permanent}) {
1336
1349
  $writable .= '^' unless $$tagInfo{Permanent};
1337
1350
  } elsif (defined $$table{PERMANENT}) {
@@ -1389,7 +1402,7 @@ TagID: foreach $tagID (@keys) {
1389
1402
  }
1390
1403
  $writable = "=struct" if $struct;
1391
1404
  $writable .= '_' if defined $$tagInfo{Flat};
1392
- $writable .= '+' if $$tagInfo{List};
1405
+ $writable .= '+' if $$tagInfo{List} or $$tagInfo{IsList};
1393
1406
  $writable .= ':' if $$tagInfo{Mandatory};
1394
1407
  if (defined $$tagInfo{Permanent}) {
1395
1408
  $writable .= '^' unless $$tagInfo{Permanent};
@@ -1557,7 +1570,7 @@ TagID: foreach $tagID (@keys) {
1557
1570
  $writable = 'string';
1558
1571
  }
1559
1572
  }
1560
- $writable .= '+' if $$tagInfo{List};
1573
+ $writable .= '+' if $$tagInfo{List} or $$tagInfo{IsList};
1561
1574
  push @vals, "($$tagInfo{Notes})" if $$tagInfo{Notes};
1562
1575
  # handle PrintConv lookups in Structure elements
1563
1576
  my $printConv = $$tagInfo{PrintConv};
@@ -1774,9 +1787,10 @@ sub NumbersFirst($$)
1774
1787
  $rtnVal = $numbersFirst;
1775
1788
  } else {
1776
1789
  my ($a2, $b2) = ($a, $b);
1777
- # expand numbers to 3 digits (with restrictions to avoid messing up ascii-hex tags)
1778
- $a2 =~ s/(\d+)/sprintf("%.3d",$1)/eg if $a2 =~ /^(APP|DMC-\w+ )?[.0-9 ]*$/ and length($a2)<16;
1779
- $b2 =~ s/(\d+)/sprintf("%.3d",$1)/eg if $b2 =~ /^(APP|DMC-\w+ )?[.0-9 ]*$/ and length($b2)<16;
1790
+ # expand numbers to 3 digits (with restrictions to avoid messing up
1791
+ # ascii-hex tags -- Nikon LensID's are 23 characters long)
1792
+ $a2 =~ s/(\d+)/sprintf("%.3d",$1)/eg if $a2 =~ /^(APP|DMC-\w+ |dvtm_.*)?[.0-9 ]*$/ and length($a2)<23;
1793
+ $b2 =~ s/(\d+)/sprintf("%.3d",$1)/eg if $b2 =~ /^(APP|DMC-\w+ |dvtm_.*)?[.0-9 ]*$/ and length($b2)<23;
1780
1794
  $caseInsensitive and $rtnVal = (lc($a2) cmp lc($b2));
1781
1795
  $rtnVal or $rtnVal = ($a2 cmp $b2);
1782
1796
  }
@@ -2802,7 +2816,7 @@ Returned list of writable pseudo tags.
2802
2816
 
2803
2817
  =head1 AUTHOR
2804
2818
 
2805
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
2819
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
2806
2820
 
2807
2821
  This library is free software; you can redistribute it and/or modify it
2808
2822
  under the same terms as Perl itself.
@@ -16,7 +16,7 @@ use vars qw($VERSION);
16
16
  use Image::ExifTool qw(:DataAccess :Utils);
17
17
  use Image::ExifTool::JSON;
18
18
 
19
- $VERSION = '1.02';
19
+ $VERSION = '1.03';
20
20
 
21
21
  sub ProcessCBOR($$$);
22
22
  sub ReadCBORValue($$$$);
@@ -160,6 +160,7 @@ sub ReadCBORValue($$$$)
160
160
  Start => $dumpStart,
161
161
  DataPos => $$et{cbor_datapos},
162
162
  Prefix => $$et{INDENT},
163
+ Out => $et->Options('TextOut'),
163
164
  ) if $verbose > 2;
164
165
  while ($num) {
165
166
  $$et{cbor_pre} = "$i) ";
@@ -200,6 +201,7 @@ sub ReadCBORValue($$$$)
200
201
  Start => $dumpStart,
201
202
  DataPos => $$et{cbor_datapos},
202
203
  Prefix => $$et{INDENT} . ' ',
204
+ Out => $et->Options('TextOut'),
203
205
  ) if $verbose > 2;
204
206
  }
205
207
  # read next value (note: in the case of multiple tags,
@@ -259,6 +261,7 @@ sub ReadCBORValue($$$$)
259
261
  DataPos => $$et{cbor_datapos},
260
262
  Prefix => $$et{INDENT} . ' ',
261
263
  MaxLen => $verbose < 5 ? ($verbose == 3 ? 96 : 2048) : undef,
264
+ Out => $et->Options('TextOut'),
262
265
  ) if $verbose > 2;
263
266
  return($val, $err, $pos);
264
267
  }
@@ -321,7 +324,7 @@ specification.
321
324
 
322
325
  =head1 AUTHOR
323
326
 
324
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
327
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
325
328
 
326
329
  This library is free software; you can redistribute it and/or modify it
327
330
  under the same terms as Perl itself.
@@ -88,7 +88,7 @@ sub ProcessCTMD($$$);
88
88
  sub ProcessExifInfo($$$);
89
89
  sub SwapWords($);
90
90
 
91
- $VERSION = '4.82';
91
+ $VERSION = '4.88';
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)
@@ -631,6 +631,12 @@ $VERSION = '4.82';
631
631
  '61182.54' => 'Canon RF 24-105mm F2.8 L IS USM Z', #42
632
632
  '61182.55' => 'Canon RF-S 10-18mm F4.5-6.3 IS STM', #42
633
633
  '61182.56' => 'Canon RF 35mm F1.4 L VCM', #42
634
+ '61182.57' => 'Canon RF 70-200mm F2.8 L IS USM Z', #42
635
+ '61182.58' => 'Canon RF 70-200mm F2.8 L IS USM Z + RF1.4x', #42
636
+ '61182.59' => 'Canon RF 70-200mm F2.8 L IS USM Z + RF2x', #42
637
+ '61182.60' => 'Canon RF 16-28mm F2.8 IS STM', #42
638
+ '61182.61' => 'Canon RF 50mm F1.4 L VCM', #42
639
+ '61182.62' => 'Canon RF 24mm F1.4 L VCM', #42
634
640
  65535 => 'n/a',
635
641
  );
636
642
 
@@ -1401,6 +1407,11 @@ my %offOn = ( 0 => 'Off', 1 => 'On' );
1401
1407
  Condition => '$$self{Model} =~ /\bEOS R[56]$/',
1402
1408
  SubDirectory => { TagTable => 'Image::ExifTool::Canon::CameraInfoR6' },
1403
1409
  },
1410
+ {
1411
+ Name => 'CanonCameraInfoR6m2',
1412
+ Condition => '$$self{Model} =~ /\bEOS R6m2$/',
1413
+ SubDirectory => { TagTable => 'Image::ExifTool::Canon::CameraInfoR6m2' },
1414
+ },
1404
1415
  {
1405
1416
  Name => 'CanonCameraInfoG5XII',
1406
1417
  Condition => '$$self{Model} =~ /\bG5 X Mark II$/',
@@ -4749,6 +4760,19 @@ my %ciMaxFocal = (
4749
4760
  # 0x0bb7 - counts down during focus stack (ref forum16111)
4750
4761
  );
4751
4762
 
4763
+ %Image::ExifTool::Canon::CameraInfoR6m2 = (
4764
+ %binaryDataAttrs,
4765
+ FIRST_ENTRY => 0,
4766
+ PRIORITY => 0,
4767
+ GROUPS => { 0 => 'MakerNotes', 2 => 'Camera' },
4768
+ NOTES => 'CameraInfo tags for the EOS R6 Mark II.',
4769
+ 0x0d29 => { #AgostonKapitany
4770
+ Name => 'ShutterCount',
4771
+ Format => 'int32u',
4772
+ Notes => 'includes electronic + mechanical shutter',
4773
+ },
4774
+ );
4775
+
4752
4776
  # ref https://exiftool.org/forum/index.php?topic=15356.0
4753
4777
  %Image::ExifTool::Canon::CameraInfoG5XII = (
4754
4778
  %binaryDataAttrs,
@@ -7001,6 +7025,12 @@ my %ciMaxFocal = (
7001
7025
  316 => 'Canon RF 35mm F1.4 L VCM', #42
7002
7026
  317 => 'Canon RF-S 3.9mm F3.5 STM DUAL FISHEYE', #42
7003
7027
  318 => 'Canon RF 28-70mm F2.8 IS STM', #42
7028
+ 319 => 'Canon RF 70-200mm F2.8 L IS USM Z', #42
7029
+ 320 => 'Canon RF 70-200mm F2.8 L IS USM Z + RF1.4x', #42
7030
+ 321 => 'Canon RF 70-200mm F2.8 L IS USM Z + RF2x', #42
7031
+ 323 => 'Canon RF 16-28mm F2.8 IS STM', #42
7032
+ 325 => 'Canon RF 50mm F1.4 L VCM', #42
7033
+ 326 => 'Canon RF 24mm F1.4 L VCM', #42
7004
7034
  # Note: add new RF lenses to %canonLensTypes with ID 61182
7005
7035
  },
7006
7036
  },
@@ -9830,35 +9860,39 @@ sub LensWithTC($$)
9830
9860
 
9831
9861
  #------------------------------------------------------------------------------
9832
9862
  # Attempt to calculate sensor size for Canon cameras
9833
- # Inputs: 0/1) rational values for FocalPlaneX/YResolution
9863
+ # Inputs: 0) ExifTool ref
9834
9864
  # Returns: Sensor diagonal size in mm, or undef
9835
9865
  # Notes: This algorithm is fairly reliable, but has been found to give incorrect
9836
9866
  # values for some firmware versions of the EOS 20D, A310, SD40 and IXUS 65
9837
9867
  # (ref http://wyw.dcweb.cn/download.asp?path=&file=jhead-2.96-ccdwidth_hack.zip)
9838
- sub CalcSensorDiag($$)
9868
+ sub CalcSensorDiag($)
9839
9869
  {
9840
- my ($xres, $yres) = @_;
9841
- # most Canon cameras store the sensor size in the denominator
9842
- if ($xres and $yres) {
9843
- # assumptions: 1) numerators are image width/height * 1000
9844
- # 2) denominators are sensor width/height in inches * 1000
9845
- my @xres = split /[ \/]/, $xres;
9846
- my @yres = split /[ \/]/, $yres;
9847
- # verify assumptions as best we can:
9848
- # numerators are always divisible by 1000
9849
- if ($xres[0] % 1000 == 0 and $yres[0] % 1000 == 0 and
9850
- # at least 640x480 pixels (DC models - PH)
9851
- $xres[0] >= 640000 and $yres[0] >= 480000 and
9852
- # ... but not too big!
9853
- $xres[0] < 10000000 and $yres[0] < 10000000 and
9854
- # minimum sensor size is 0.061 inches (DC models - PH)
9855
- $xres[1] >= 61 and $xres[1] < 1500 and
9856
- $yres[1] >= 61 and $yres[1] < 1000 and
9857
- # sensor isn't square (may happen if rationals have been reduced)
9858
- $xres[1] != $yres[1])
9859
- {
9860
- return sqrt($xres[1]*$xres[1] + $yres[1]*$yres[1]) * 0.0254;
9861
- }
9870
+ my $et = shift;
9871
+ # calculation is based on the rational value of FocalPlaneX/YResolution
9872
+ # (most Canon cameras store the sensor size in the denominator)
9873
+ return undef unless $$et{TAG_EXTRA}{FocalPlaneXResolution} and
9874
+ $$et{TAG_EXTRA}{FocalPlaneYResolution};
9875
+ my $xres = $$et{TAG_EXTRA}{FocalPlaneXResolution}{Rational};
9876
+ my $yres = $$et{TAG_EXTRA}{FocalPlaneYResolution}{Rational};
9877
+ return undef unless $xres and $yres;
9878
+ # assumptions: 1) numerators are image width/height * 1000
9879
+ # 2) denominators are sensor width/height in inches * 1000
9880
+ my @xres = split /[ \/]/, $xres;
9881
+ my @yres = split /[ \/]/, $yres;
9882
+ # verify assumptions as best we can:
9883
+ # numerators are always divisible by 1000
9884
+ if ($xres[0] % 1000 == 0 and $yres[0] % 1000 == 0 and
9885
+ # at least 640x480 pixels (DC models - PH)
9886
+ $xres[0] >= 640000 and $yres[0] >= 480000 and
9887
+ # ... but not too big!
9888
+ $xres[0] < 10000000 and $yres[0] < 10000000 and
9889
+ # minimum sensor size is 0.061 inches (DC models - PH)
9890
+ $xres[1] >= 61 and $xres[1] < 1500 and
9891
+ $yres[1] >= 61 and $yres[1] < 1000 and
9892
+ # sensor isn't square (may happen if rationals have been reduced)
9893
+ $xres[1] != $yres[1])
9894
+ {
9895
+ return sqrt($xres[1]*$xres[1] + $yres[1]*$yres[1]) * 0.0254;
9862
9896
  }
9863
9897
  return undef;
9864
9898
  }
@@ -10251,7 +10285,11 @@ sub ProcessSerialData($$$)
10251
10285
  $et->ProcessDirectory(\%dirInfo, $subTablePtr);
10252
10286
  } elsif (not $$tagInfo{Unknown} or $unknown) {
10253
10287
  # don't extract zero-length information
10254
- $et->FoundTag($tagInfo, $val) if $count;
10288
+ my $key = $et->FoundTag($tagInfo, $val) if $count;
10289
+ if ($key) {
10290
+ $$et{TAG_EXTRA}{$key}{G6} = $format if $$et{OPTIONS}{SaveFormat};
10291
+ $$et{TAG_EXTRA}{$key}{BinVal} = substr($$dataPt, $pos+$offset, $len) if $$et{OPTIONS}{SaveBin};
10292
+ }
10255
10293
  }
10256
10294
  $pos += $len;
10257
10295
  }
@@ -10448,6 +10486,7 @@ sub ProcessCTMD($$$)
10448
10486
  Start => $pos + 6,
10449
10487
  Addr => $$dirInfo{Base} + $pos + 6,
10450
10488
  Prefix => $$et{INDENT},
10489
+ Out => $et->Options('TextOut'),
10451
10490
  ) if $verbose > 2;
10452
10491
  if ($$tagTablePtr{$type}) {
10453
10492
  $et->HandleTag($tagTablePtr, $type, undef,
@@ -10558,7 +10597,7 @@ Canon maker notes in EXIF information.
10558
10597
 
10559
10598
  =head1 AUTHOR
10560
10599
 
10561
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
10600
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
10562
10601
 
10563
10602
  This library is free software; you can redistribute it and/or modify it
10564
10603
  under the same terms as Perl itself.
@@ -2873,7 +2873,7 @@ Image::ExifTool to read this information.
2873
2873
 
2874
2874
  =head1 AUTHOR
2875
2875
 
2876
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
2876
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
2877
2877
 
2878
2878
  This library is free software; you can redistribute it and/or modify it
2879
2879
  under the same terms as Perl itself.
@@ -888,7 +888,7 @@ tags.)
888
888
 
889
889
  =head1 AUTHOR
890
890
 
891
- Copyright 2003-2024, Phil Harvey (philharvey66 at gmail.com)
891
+ Copyright 2003-2025, Phil Harvey (philharvey66 at gmail.com)
892
892
 
893
893
  This library is free software; you can redistribute it and/or modify it
894
894
  under the same terms as Perl itself.