exiftool_vendored 9.45.0 → 9.46.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of exiftool_vendored might be problematic. Click here for more details.

Files changed (1073) hide show
  1. checksums.yaml +8 -8
  2. data/bin/Image-ExifTool-9.46/Changes +6444 -0
  3. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/MANIFEST +0 -0
  4. data/bin/Image-ExifTool-9.46/META.yml +27 -0
  5. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/Makefile.PL +0 -0
  6. data/bin/Image-ExifTool-9.46/README +228 -0
  7. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/arg_files/exif2iptc.args +0 -0
  8. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/arg_files/exif2xmp.args +0 -0
  9. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/arg_files/gps2xmp.args +0 -0
  10. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/arg_files/iptc2exif.args +0 -0
  11. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/arg_files/iptc2xmp.args +0 -0
  12. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/arg_files/iptcCore.args +0 -0
  13. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/arg_files/pdf2xmp.args +0 -0
  14. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/arg_files/xmp2exif.args +0 -0
  15. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/arg_files/xmp2gps.args +0 -0
  16. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/arg_files/xmp2iptc.args +0 -0
  17. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/arg_files/xmp2pdf.args +0 -0
  18. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/config_files/ExifTool_config +0 -0
  19. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/config_files/convert_regions.config +0 -0
  20. data/bin/Image-ExifTool-9.46/exiftool +5767 -0
  21. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/fmt_files/gpx.fmt +0 -0
  22. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/fmt_files/gpx_wpt.fmt +0 -0
  23. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/fmt_files/kml.fmt +0 -0
  24. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/ExifTool.html +0 -0
  25. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/MIE1.1-20070121.pdf +0 -0
  26. data/bin/Image-ExifTool-9.46/html/Shift.html +173 -0
  27. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/AFCP.html +0 -0
  28. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/AIFF.html +0 -0
  29. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/APE.html +0 -0
  30. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/APP12.html +0 -0
  31. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/ASF.html +0 -0
  32. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Apple.html +0 -0
  33. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/BMP.html +0 -0
  34. data/bin/Image-ExifTool-9.46/html/TagNames/Canon.html +8322 -0
  35. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/CanonCustom.html +0 -0
  36. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/CanonRaw.html +0 -0
  37. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/CanonVRD.html +0 -0
  38. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Casio.html +0 -0
  39. data/bin/Image-ExifTool-9.46/html/TagNames/Composite.html +673 -0
  40. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/DICOM.html +0 -0
  41. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/DNG.html +0 -0
  42. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/DPX.html +0 -0
  43. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/DV.html +0 -0
  44. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/DarwinCore.html +0 -0
  45. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/DjVu.html +0 -0
  46. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/EXE.html +0 -0
  47. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/EXIF.html +0 -0
  48. data/bin/Image-ExifTool-9.46/html/TagNames/Extra.html +309 -0
  49. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/FLAC.html +0 -0
  50. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/FLIR.html +0 -0
  51. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Flash.html +0 -0
  52. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/FlashPix.html +0 -0
  53. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Font.html +0 -0
  54. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/FotoStation.html +0 -0
  55. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/FujiFilm.html +0 -0
  56. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/GE.html +0 -0
  57. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/GIF.html +0 -0
  58. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/GIMP.html +0 -0
  59. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/GPS.html +0 -0
  60. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/GeoTiff.html +0 -0
  61. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/H264.html +0 -0
  62. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/HP.html +0 -0
  63. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/HTML.html +0 -0
  64. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/ICC_Profile.html +0 -0
  65. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/ID3.html +0 -0
  66. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/IPTC.html +0 -0
  67. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/ITC.html +0 -0
  68. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/JFIF.html +0 -0
  69. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/JPEG.html +0 -0
  70. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/JVC.html +0 -0
  71. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Jpeg2000.html +0 -0
  72. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Kodak.html +0 -0
  73. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/KyoceraRaw.html +0 -0
  74. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/LNK.html +0 -0
  75. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Leaf.html +0 -0
  76. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/M2TS.html +0 -0
  77. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/MIE.html +0 -0
  78. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/MIFF.html +0 -0
  79. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/MNG.html +0 -0
  80. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/MPC.html +0 -0
  81. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/MPEG.html +0 -0
  82. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/MPF.html +0 -0
  83. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/MWG.html +0 -0
  84. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/MXF.html +0 -0
  85. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Matroska.html +0 -0
  86. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Microsoft.html +0 -0
  87. data/bin/Image-ExifTool-9.46/html/TagNames/Minolta.html +2568 -0
  88. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/MinoltaRaw.html +0 -0
  89. data/bin/Image-ExifTool-9.46/html/TagNames/Nikon.html +4498 -0
  90. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/NikonCapture.html +0 -0
  91. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/NikonCustom.html +0 -0
  92. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/OOXML.html +0 -0
  93. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Ogg.html +0 -0
  94. data/bin/Image-ExifTool-9.46/html/TagNames/Olympus.html +3401 -0
  95. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/OpenEXR.html +0 -0
  96. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/PDF.html +0 -0
  97. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/PGF.html +0 -0
  98. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/PICT.html +0 -0
  99. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/PLIST.html +0 -0
  100. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/PNG.html +0 -0
  101. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/PSP.html +0 -0
  102. data/bin/Image-ExifTool-9.46/html/TagNames/Panasonic.html +1599 -0
  103. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/PanasonicRaw.html +0 -0
  104. data/bin/Image-ExifTool-9.46/html/TagNames/Pentax.html +4528 -0
  105. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/PhaseOne.html +0 -0
  106. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/PhotoCD.html +0 -0
  107. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/PhotoMechanic.html +0 -0
  108. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Photoshop.html +0 -0
  109. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/PostScript.html +0 -0
  110. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/PrintIM.html +0 -0
  111. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Qualcomm.html +0 -0
  112. data/bin/Image-ExifTool-9.46/html/TagNames/QuickTime.html +3438 -0
  113. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/RIFF.html +0 -0
  114. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/RSRC.html +0 -0
  115. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/RTF.html +0 -0
  116. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Radiance.html +0 -0
  117. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Rawzor.html +0 -0
  118. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Real.html +0 -0
  119. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Reconyx.html +0 -0
  120. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Ricoh.html +0 -0
  121. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Samsung.html +0 -0
  122. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Sanyo.html +0 -0
  123. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Scalado.html +0 -0
  124. data/bin/Image-ExifTool-9.46/html/TagNames/Shortcuts.html +240 -0
  125. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Sigma.html +0 -0
  126. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/SigmaRaw.html +0 -0
  127. data/bin/Image-ExifTool-9.46/html/TagNames/Sony.html +5721 -0
  128. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/SonyIDC.html +0 -0
  129. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Stim.html +0 -0
  130. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Theora.html +0 -0
  131. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Torrent.html +0 -0
  132. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Unknown.html +0 -0
  133. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/Vorbis.html +0 -0
  134. data/bin/Image-ExifTool-9.46/html/TagNames/XMP.html +7939 -0
  135. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/ZIP.html +0 -0
  136. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/iWork.html +0 -0
  137. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/index.html +0 -0
  138. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/TagNames/style.css +0 -0
  139. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/ancient_history.html +0 -0
  140. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/canon_raw.html +0 -0
  141. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/commentary.html +0 -0
  142. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/config.html +0 -0
  143. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/data_members.html +0 -0
  144. data/bin/Image-ExifTool-9.46/html/exiftool_pod.html +2370 -0
  145. data/bin/Image-ExifTool-9.46/html/faq.html +1435 -0
  146. data/bin/Image-ExifTool-9.46/html/filename.html +294 -0
  147. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/geotag.html +0 -0
  148. data/bin/Image-ExifTool-9.46/html/history.html +377 -0
  149. data/bin/Image-ExifTool-9.46/html/htmldump.html +733 -0
  150. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/idiosyncracies.html +0 -0
  151. data/bin/Image-ExifTool-9.46/html/index.html +1283 -0
  152. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/install.html +0 -0
  153. data/bin/Image-ExifTool-9.46/html/metafiles.html +274 -0
  154. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/overview.png +0 -0
  155. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/standards.html +0 -0
  156. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/struct.html +0 -0
  157. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/style.css +0 -0
  158. data/bin/Image-ExifTool-9.46/html/under.html +126 -0
  159. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/verbose.html +0 -0
  160. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/html/writing.html +0 -0
  161. data/bin/Image-ExifTool-9.46/lib/File/RandomAccess.pm +378 -0
  162. data/bin/Image-ExifTool-9.46/lib/File/RandomAccess.pod +231 -0
  163. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool.pm +6916 -0
  164. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool.pod +2406 -0
  165. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/AES.pm +501 -0
  166. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/AFCP.pm +284 -0
  167. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/AIFF.pm +271 -0
  168. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/APE.pm +262 -0
  169. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/APP12.pm +322 -0
  170. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/ASF.pm +884 -0
  171. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Apple.pm +113 -0
  172. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/BMP.pm +179 -0
  173. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/BZZ.pm +472 -0
  174. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/BigTIFF.pm +282 -0
  175. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/BuildTagLookup.pm +2425 -0
  176. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Canon.pm +7983 -0
  177. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/CanonCustom.pm +2523 -0
  178. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/CanonRaw.pm +931 -0
  179. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/CanonVRD.pm +1481 -0
  180. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/CaptureOne.pm +235 -0
  181. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Casio.pm +2013 -0
  182. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Charset.pm +396 -0
  183. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/Arabic.pm +0 -0
  184. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/Baltic.pm +0 -0
  185. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/Cyrillic.pm +0 -0
  186. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/Greek.pm +0 -0
  187. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/Hebrew.pm +0 -0
  188. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/JIS.pm +0 -0
  189. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/Latin.pm +0 -0
  190. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/Latin2.pm +0 -0
  191. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacArabic.pm +0 -0
  192. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacChineseCN.pm +0 -0
  193. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacChineseTW.pm +0 -0
  194. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacCroatian.pm +0 -0
  195. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacCyrillic.pm +0 -0
  196. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacGreek.pm +0 -0
  197. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacHebrew.pm +0 -0
  198. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacIceland.pm +0 -0
  199. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacJapanese.pm +0 -0
  200. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacKorean.pm +0 -0
  201. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacLatin2.pm +0 -0
  202. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacRSymbol.pm +0 -0
  203. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacRoman.pm +0 -0
  204. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacRomanian.pm +0 -0
  205. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacThai.pm +0 -0
  206. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/MacTurkish.pm +0 -0
  207. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/PDFDoc.pm +0 -0
  208. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/ShiftJIS.pm +0 -0
  209. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/Symbol.pm +0 -0
  210. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/Thai.pm +0 -0
  211. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/Turkish.pm +0 -0
  212. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/Charset/Vietnam.pm +0 -0
  213. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/DICOM.pm +3874 -0
  214. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/DNG.pm +835 -0
  215. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/DPX.pm +151 -0
  216. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/DV.pm +319 -0
  217. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/DarwinCore.pm +317 -0
  218. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/DjVu.pm +376 -0
  219. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/EXE.pm +1228 -0
  220. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Exif.pm +4596 -0
  221. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/FLAC.pm +296 -0
  222. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/FLIR.pm +1232 -0
  223. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Fixup.pm +354 -0
  224. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Flash.pm +755 -0
  225. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/FlashPix.pm +1882 -0
  226. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Font.pm +643 -0
  227. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/FotoStation.pm +259 -0
  228. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/FujiFilm.pm +1088 -0
  229. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/GE.pm +80 -0
  230. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/GIF.pm +542 -0
  231. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/GIMP.pm +258 -0
  232. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/GPS.pm +514 -0
  233. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/GeoTiff.pm +2187 -0
  234. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Geotag.pm +1176 -0
  235. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/H264.pm +1102 -0
  236. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/HP.pm +262 -0
  237. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/HTML.pm +576 -0
  238. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/HtmlDump.pm +895 -0
  239. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/ICC_Profile.pm +999 -0
  240. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/ID3.pm +1532 -0
  241. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/IPTC.pm +1244 -0
  242. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/ITC.pm +215 -0
  243. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Import.pm +308 -0
  244. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/InDesign.pm +277 -0
  245. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/JPEG.pm +522 -0
  246. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/JPEGDigest.pm +2511 -0
  247. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/JVC.pm +130 -0
  248. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Jpeg2000.pm +873 -0
  249. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Kodak.pm +2014 -0
  250. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/KyoceraRaw.pm +173 -0
  251. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/LNK.pm +723 -0
  252. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/cs.pm +1586 -0
  253. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/de.pm +7356 -0
  254. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/en_ca.pm +557 -0
  255. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/en_gb.pm +572 -0
  256. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/es.pm +4017 -0
  257. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/fi.pm +2856 -0
  258. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/fr.pm +4738 -0
  259. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/it.pm +7918 -0
  260. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/ja.pm +5815 -0
  261. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/ko.pm +2332 -0
  262. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/nl.pm +3220 -0
  263. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/pl.pm +1140 -0
  264. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/ru.pm +769 -0
  265. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/sv.pm +639 -0
  266. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/tr.pm +544 -0
  267. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/zh_cn.pm +1329 -0
  268. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Lang/zh_tw.pm +802 -0
  269. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Leaf.pm +515 -0
  270. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/M2TS.pm +725 -0
  271. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/MIE.pm +2561 -0
  272. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/MIEUnits.pod +377 -0
  273. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/MIFF.pm +279 -0
  274. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/MNG.pm +684 -0
  275. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/MPC.pm +156 -0
  276. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/MPEG.pm +736 -0
  277. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/MPF.pm +289 -0
  278. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/MWG.pm +748 -0
  279. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/MXF.pm +3032 -0
  280. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/MakerNotes.pm +1598 -0
  281. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Matroska.pm +891 -0
  282. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Microsoft.pm +879 -0
  283. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Minolta.pm +2861 -0
  284. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/MinoltaRaw.pm +534 -0
  285. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Nikon.pm +6145 -0
  286. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/NikonCapture.pm +911 -0
  287. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/NikonCustom.pm +4405 -0
  288. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/OOXML.pm +409 -0
  289. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Ogg.pm +237 -0
  290. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Olympus.pm +3630 -0
  291. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/OpenEXR.pm +324 -0
  292. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/PDF.pm +2327 -0
  293. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/PGF.pm +143 -0
  294. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/PICT.pm +1260 -0
  295. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/PLIST.pm +453 -0
  296. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/PNG.pm +1161 -0
  297. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/PPM.pm +169 -0
  298. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/PSP.pm +305 -0
  299. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Panasonic.pm +2205 -0
  300. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/PanasonicRaw.pm +535 -0
  301. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Pentax.pm +5792 -0
  302. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/PhaseOne.pm +557 -0
  303. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/PhotoCD.pm +507 -0
  304. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/PhotoMechanic.pm +256 -0
  305. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Photoshop.pm +629 -0
  306. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/PostScript.pm +693 -0
  307. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/PrintIM.pm +125 -0
  308. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Qualcomm.pm +1344 -0
  309. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/QuickTime.pm +3910 -0
  310. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/lib/Image/ExifTool/README +0 -0
  311. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/RIFF.pm +1332 -0
  312. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/RSRC.pm +241 -0
  313. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/RTF.pm +383 -0
  314. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Radiance.pm +144 -0
  315. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Rawzor.pm +190 -0
  316. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Real.pm +736 -0
  317. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Reconyx.pm +190 -0
  318. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Ricoh.pm +1039 -0
  319. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Samsung.pm +846 -0
  320. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Sanyo.pm +439 -0
  321. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Scalado.pm +141 -0
  322. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Shift.pl +594 -0
  323. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Shortcuts.pm +298 -0
  324. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Sigma.pm +574 -0
  325. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/SigmaRaw.pm +649 -0
  326. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Sony.pm +7072 -0
  327. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/SonyIDC.pm +330 -0
  328. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Stim.pm +196 -0
  329. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/TagInfoXML.pm +794 -0
  330. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/TagLookup.pm +8365 -0
  331. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/TagNames.pod +26883 -0
  332. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Theora.pm +145 -0
  333. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Torrent.pm +317 -0
  334. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Unknown.pm +66 -0
  335. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Vorbis.pm +237 -0
  336. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/WriteCanonRaw.pl +637 -0
  337. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/WriteExif.pl +3685 -0
  338. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/WriteIPTC.pl +702 -0
  339. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/WritePDF.pl +765 -0
  340. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/WritePNG.pl +376 -0
  341. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/WritePhotoshop.pl +266 -0
  342. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/WritePostScript.pl +777 -0
  343. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/WriteQuickTime.pl +344 -0
  344. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/WriteXMP.pl +1318 -0
  345. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/Writer.pl +5851 -0
  346. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/XMP.pm +3755 -0
  347. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/XMP2.pl +1303 -0
  348. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/XMPStruct.pl +814 -0
  349. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/ZIP.pm +623 -0
  350. data/bin/Image-ExifTool-9.46/lib/Image/ExifTool/iWork.pm +223 -0
  351. data/bin/Image-ExifTool-9.46/perl-Image-ExifTool.spec +105 -0
  352. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/AFCP.t +0 -0
  353. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/AFCP_2.out +0 -0
  354. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/AFCP_3.out +0 -0
  355. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/AIFF.t +0 -0
  356. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/AIFF_2.out +0 -0
  357. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/APE.t +0 -0
  358. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/APE_2.out +0 -0
  359. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/APE_3.out +0 -0
  360. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ASF.t +0 -0
  361. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ASF_2.out +0 -0
  362. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/BMP.t +0 -0
  363. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/BMP_2.out +0 -0
  364. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/BigTIFF.t +0 -0
  365. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/BigTIFF_2.out +0 -0
  366. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Canon.t +0 -0
  367. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonRaw.t +0 -0
  368. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonRaw_2.out +0 -0
  369. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonRaw_4.out +0 -0
  370. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonRaw_5.out +0 -0
  371. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonRaw_6.out +0 -0
  372. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonRaw_7.out +0 -0
  373. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonVRD.t +0 -0
  374. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonVRD_11.out +0 -0
  375. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonVRD_12.out +0 -0
  376. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonVRD_2.out +0 -0
  377. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonVRD_3.out +0 -0
  378. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonVRD_4.out +0 -0
  379. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonVRD_5.out +0 -0
  380. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonVRD_6.out +0 -0
  381. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonVRD_7.out +0 -0
  382. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonVRD_8.out +0 -0
  383. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/CanonVRD_9.out +0 -0
  384. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Canon_2.out +0 -0
  385. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Canon_3.out +0 -0
  386. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Casio.t +0 -0
  387. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Casio_2.out +0 -0
  388. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Casio_3.out +0 -0
  389. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Casio_4.out +0 -0
  390. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Casio_5.out +0 -0
  391. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Casio_6.out +0 -0
  392. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/DICOM.t +0 -0
  393. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/DICOM_2.out +0 -0
  394. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/DNG.t +0 -0
  395. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/DNG_2.out +0 -0
  396. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/DNG_3.out +0 -0
  397. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/DPX.t +0 -0
  398. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/DPX_2.out +0 -0
  399. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/DV.t +0 -0
  400. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/DV_2.out +0 -0
  401. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/DjVu.t +0 -0
  402. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/DjVu_2.out +0 -0
  403. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/EXE.t +0 -0
  404. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/EXE_2.out +0 -0
  405. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/EXE_3.out +0 -0
  406. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/EXE_4.out +0 -0
  407. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool.t +0 -0
  408. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_16.out +0 -0
  409. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_17.out +0 -0
  410. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_2.out +0 -0
  411. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_20.out +0 -0
  412. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_21.out +0 -0
  413. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_22.out +0 -0
  414. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_23.out +0 -0
  415. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_24.out +0 -0
  416. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_25.out +0 -0
  417. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_26.out +0 -0
  418. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_3.out +0 -0
  419. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_4.out +0 -0
  420. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_5.out +0 -0
  421. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_6.out +0 -0
  422. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_7.out +0 -0
  423. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_8.out +0 -0
  424. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ExifTool_9.out +0 -0
  425. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FLAC.t +0 -0
  426. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FLAC_2.out +0 -0
  427. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FLAC_3.out +0 -0
  428. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FLIR.t +0 -0
  429. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FLIR_2.out +0 -0
  430. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FLIR_3.out +0 -0
  431. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Flash.t +0 -0
  432. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FlashPix.t +0 -0
  433. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FlashPix_2.out +0 -0
  434. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Flash_2.out +0 -0
  435. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Flash_3.out +0 -0
  436. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Font.t +0 -0
  437. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Font_2.out +0 -0
  438. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Font_3.out +0 -0
  439. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Font_4.out +0 -0
  440. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Font_5.out +0 -0
  441. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Font_6.out +0 -0
  442. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Font_7.out +0 -0
  443. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FotoStation.t +0 -0
  444. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FotoStation_2.out +0 -0
  445. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FotoStation_3.out +0 -0
  446. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FujiFilm.t +0 -0
  447. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FujiFilm_2.out +0 -0
  448. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FujiFilm_3.out +0 -0
  449. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FujiFilm_4.out +0 -0
  450. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/FujiFilm_5.out +0 -0
  451. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/GE.t +0 -0
  452. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/GE_2.out +0 -0
  453. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/GE_3.out +0 -0
  454. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/GIF.t +0 -0
  455. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/GIF_2.out +0 -0
  456. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/GIF_3.out +0 -0
  457. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/GIF_4.out +0 -0
  458. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/GIMP.t +0 -0
  459. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/GIMP_2.out +0 -0
  460. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/GPS.t +0 -0
  461. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/GPS_2.out +0 -0
  462. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/GPS_3.out +0 -0
  463. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/GeoTiff.t +0 -0
  464. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/GeoTiff_2.out +0 -0
  465. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/GeoTiff_3.out +0 -0
  466. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Geotag.t +0 -0
  467. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Geotag_2.out +0 -0
  468. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Geotag_3.out +0 -0
  469. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Geotag_5.out +0 -0
  470. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Geotag_6.out +0 -0
  471. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Geotag_7.out +0 -0
  472. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Geotag_8.out +0 -0
  473. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Geotag_9.out +0 -0
  474. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/HTML.t +0 -0
  475. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/HTML_2.out +0 -0
  476. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/IPTC.t +0 -0
  477. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/IPTC_2.out +0 -0
  478. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/IPTC_4.out +0 -0
  479. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/IPTC_5.out +0 -0
  480. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/IPTC_6.out +0 -0
  481. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/IPTC_7.out +0 -0
  482. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/IPTC_8.out +0 -0
  483. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ITC.t +0 -0
  484. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ITC_2.out +0 -0
  485. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/InDesign.t +0 -0
  486. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/InDesign_2.out +0 -0
  487. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/InDesign_3.out +0 -0
  488. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/InDesign_4.out +0 -0
  489. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/JVC.t +0 -0
  490. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/JVC_2.out +0 -0
  491. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/JVC_3.out +0 -0
  492. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Jpeg2000.t +0 -0
  493. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Jpeg2000_2.out +0 -0
  494. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Jpeg2000_3.out +0 -0
  495. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Jpeg2000_4.out +0 -0
  496. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Kodak.t +0 -0
  497. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Kodak_2.out +0 -0
  498. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Kodak_3.out +0 -0
  499. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/KyoceraRaw.t +0 -0
  500. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/KyoceraRaw_2.out +0 -0
  501. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/LNK.t +0 -0
  502. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/LNK_2.out +0 -0
  503. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang.t +0 -0
  504. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_1.out +0 -0
  505. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_10.out +0 -0
  506. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_11.out +0 -0
  507. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_12.out +0 -0
  508. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_13.out +0 -0
  509. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_14.out +0 -0
  510. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_15.out +0 -0
  511. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_16.out +0 -0
  512. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_17.out +0 -0
  513. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_18.out +0 -0
  514. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_2.out +0 -0
  515. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_3.out +0 -0
  516. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_4.out +0 -0
  517. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_5.out +0 -0
  518. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_6.out +0 -0
  519. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_7.out +0 -0
  520. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_8.out +0 -0
  521. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Lang_9.out +0 -0
  522. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/M2TS.t +0 -0
  523. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/M2TS_2.out +0 -0
  524. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MIE.t +0 -0
  525. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MIE_2.out +0 -0
  526. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MIE_3.out +0 -0
  527. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MIE_5.out +0 -0
  528. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MIE_6.out +0 -0
  529. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MIFF.t +0 -0
  530. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MIFF_2.out +0 -0
  531. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MP3.t +0 -0
  532. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MP3_2.out +0 -0
  533. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MWG.t +0 -0
  534. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MWG_2.out +0 -0
  535. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MWG_3.out +0 -0
  536. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MWG_4.out +0 -0
  537. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MWG_5.out +0 -0
  538. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MWG_6.out +0 -0
  539. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MXF.t +0 -0
  540. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/MXF_2.out +0 -0
  541. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Matroska.t +0 -0
  542. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Matroska_2.out +0 -0
  543. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Minolta.t +0 -0
  544. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Minolta_2.out +0 -0
  545. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Minolta_3.out +0 -0
  546. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Minolta_4.out +0 -0
  547. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Nikon.t +0 -0
  548. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Nikon_2.out +0 -0
  549. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Nikon_3.out +0 -0
  550. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Nikon_4.out +0 -0
  551. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Nikon_5.out +0 -0
  552. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Nikon_7.out +0 -0
  553. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Nikon_8.out +0 -0
  554. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Olympus.t +0 -0
  555. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Olympus_2.out +0 -0
  556. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Olympus_3.out +0 -0
  557. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Olympus_4.out +0 -0
  558. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Olympus_5.out +0 -0
  559. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Olympus_6.out +0 -0
  560. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Olympus_7.out +0 -0
  561. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/OpenEXR.t +0 -0
  562. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/OpenEXR_2.out +0 -0
  563. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF.t +0 -0
  564. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_10.out +0 -0
  565. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_11.out +0 -0
  566. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_12.out +0 -0
  567. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_14.out +0 -0
  568. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_15.out +0 -0
  569. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_16.out +0 -0
  570. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_17.out +0 -0
  571. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_18.out +0 -0
  572. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_19.out +0 -0
  573. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_2.out +0 -0
  574. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_20.out +0 -0
  575. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_22.out +0 -0
  576. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_4.out +0 -0
  577. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_5.out +0 -0
  578. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_6.out +0 -0
  579. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_7.out +0 -0
  580. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_8.out +0 -0
  581. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PDF_9.out +0 -0
  582. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PGF.t +0 -0
  583. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PGF_2.out +0 -0
  584. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PICT.t +0 -0
  585. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PICT_2.out +0 -0
  586. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PLIST.t +0 -0
  587. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PLIST_2.out +0 -0
  588. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PLIST_3.out +0 -0
  589. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PNG.t +0 -0
  590. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PNG_2.out +0 -0
  591. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PNG_3.out +0 -0
  592. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PNG_4.out +0 -0
  593. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PNG_5.out +0 -0
  594. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PPM.t +0 -0
  595. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PPM_2.out +0 -0
  596. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PPM_3.out +0 -0
  597. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PSP.t +0 -0
  598. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PSP_2.out +0 -0
  599. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Panasonic.t +0 -0
  600. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Panasonic_2.out +0 -0
  601. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Panasonic_3.out +0 -0
  602. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Panasonic_4.out +0 -0
  603. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Panasonic_5.out +0 -0
  604. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Pentax.t +0 -0
  605. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Pentax_2.out +0 -0
  606. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Pentax_3.out +0 -0
  607. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Pentax_4.out +0 -0
  608. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PhotoCD.t +0 -0
  609. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PhotoCD_2.out +0 -0
  610. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PhotoMechanic.t +0 -0
  611. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PhotoMechanic_2.out +0 -0
  612. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PhotoMechanic_3.out +0 -0
  613. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Photoshop.t +0 -0
  614. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Photoshop_2.out +0 -0
  615. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Photoshop_3.out +0 -0
  616. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PostScript.t +0 -0
  617. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PostScript_2.out +0 -0
  618. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/PostScript_3.out +0 -0
  619. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/QuickTime.t +0 -0
  620. data/bin/Image-ExifTool-9.46/t/QuickTime_2.out +131 -0
  621. data/bin/Image-ExifTool-9.46/t/QuickTime_3.out +72 -0
  622. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/QuickTime_4.out +0 -0
  623. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/QuickTime_5.out +0 -0
  624. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/RIFF.t +0 -0
  625. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/RIFF_2.out +0 -0
  626. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/RIFF_3.out +0 -0
  627. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/RIFF_4.out +0 -0
  628. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/RTF.t +0 -0
  629. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/RTF_2.out +0 -0
  630. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Radiance.t +0 -0
  631. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Radiance_2.out +0 -0
  632. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Real.t +0 -0
  633. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Real_2.out +0 -0
  634. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Real_3.out +0 -0
  635. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Real_4.out +0 -0
  636. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Ricoh.t +0 -0
  637. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Ricoh_2.out +0 -0
  638. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Ricoh_3.out +0 -0
  639. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Ricoh_4.out +0 -0
  640. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Sanyo.t +0 -0
  641. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Sanyo_2.out +0 -0
  642. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Sanyo_3.out +0 -0
  643. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Sigma.t +0 -0
  644. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Sigma_2.out +0 -0
  645. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Sigma_3.out +0 -0
  646. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Sigma_4.out +0 -0
  647. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Sigma_5.out +0 -0
  648. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Sony.t +0 -0
  649. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Sony_2.out +0 -0
  650. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Sony_3.out +0 -0
  651. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Sony_5.out +0 -0
  652. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/TestLib.pm +0 -0
  653. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Torrent.t +0 -0
  654. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Torrent_2.out +0 -0
  655. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Unknown.t +0 -0
  656. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Unknown_2.out +0 -0
  657. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Unknown_3.out +0 -0
  658. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Vorbis.t +0 -0
  659. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Vorbis_2.out +0 -0
  660. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer.t +0 -0
  661. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_10.out +0 -0
  662. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_11.out +0 -0
  663. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_13.out +0 -0
  664. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_14.out +0 -0
  665. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_15.out +0 -0
  666. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_16.out +0 -0
  667. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_17.out +0 -0
  668. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_18.out +0 -0
  669. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_19.out +0 -0
  670. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_2.out +0 -0
  671. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_22.out +0 -0
  672. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_24.out +0 -0
  673. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_25.out +0 -0
  674. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_26.out +0 -0
  675. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_27.out +0 -0
  676. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_28.out +0 -0
  677. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_29.out +0 -0
  678. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_30.out +0 -0
  679. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_31.out +0 -0
  680. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_32.out +0 -0
  681. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_33.out +0 -0
  682. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_34.out +0 -0
  683. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_35.out +0 -0
  684. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_36.out +0 -0
  685. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_37.out +0 -0
  686. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_38.out +0 -0
  687. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_39.out +0 -0
  688. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_4.out +0 -0
  689. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_40.out +0 -0
  690. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_41.out +0 -0
  691. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_42.out +0 -0
  692. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_43.out +0 -0
  693. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_44.out +0 -0
  694. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_45.out +0 -0
  695. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_46.out +0 -0
  696. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_47.out +0 -0
  697. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_48.out +0 -0
  698. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_50.out +0 -0
  699. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_51.out +0 -0
  700. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_52.out +0 -0
  701. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_53.out +0 -0
  702. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_54.out +0 -0
  703. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_6.out +0 -0
  704. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_7.out +0 -0
  705. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/Writer_9.out +0 -0
  706. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP.t +0 -0
  707. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_10.out +0 -0
  708. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_11.out +0 -0
  709. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_12.out +0 -0
  710. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_13.out +0 -0
  711. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_14.out +0 -0
  712. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_15.out +0 -0
  713. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_16.out +0 -0
  714. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_17.out +0 -0
  715. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_18.out +0 -0
  716. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_19.out +0 -0
  717. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_2.out +0 -0
  718. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_20.out +0 -0
  719. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_21.out +0 -0
  720. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_22.out +0 -0
  721. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_23.out +0 -0
  722. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_24.out +0 -0
  723. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_25.out +0 -0
  724. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_26.out +0 -0
  725. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_27.out +0 -0
  726. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_28.out +0 -0
  727. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_29.out +0 -0
  728. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_3.out +0 -0
  729. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_30.out +0 -0
  730. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_31.out +0 -0
  731. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_32.out +0 -0
  732. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_34.out +0 -0
  733. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_36.out +0 -0
  734. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_37.out +0 -0
  735. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_39.out +0 -0
  736. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_40.out +0 -0
  737. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_41.out +0 -0
  738. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_5.out +0 -0
  739. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_6.out +0 -0
  740. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_7.out +0 -0
  741. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_8.out +0 -0
  742. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/XMP_9.out +0 -0
  743. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ZIP.t +0 -0
  744. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ZIP_2.out +0 -0
  745. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ZIP_3.out +0 -0
  746. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ZIP_4.out +0 -0
  747. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ZIP_5.out +0 -0
  748. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ZIP_6.out +0 -0
  749. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/ZIP_7.out +0 -0
  750. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/AFCP.jpg +0 -0
  751. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/AIFF.aif +0 -0
  752. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/APE.ape +0 -0
  753. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/APE.mpc +0 -0
  754. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/ASF.wmv +0 -0
  755. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/BMP.bmp +0 -0
  756. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/BigTIFF.btf +0 -0
  757. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Canon.jpg +0 -0
  758. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Canon1DmkIII.jpg +0 -0
  759. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/CanonRaw.cr2 +0 -0
  760. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/CanonRaw.crw +0 -0
  761. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/CanonVRD.vrd +0 -0
  762. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/CaptureOne.eip +0 -0
  763. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Casio.jpg +0 -0
  764. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Casio2.jpg +0 -0
  765. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/CasioQVCI.jpg +0 -0
  766. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/DICOM.dcm +0 -0
  767. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/DNG.dng +0 -0
  768. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/DPX.dpx +0 -0
  769. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/DV.dv +0 -0
  770. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/DjVu.djvu +0 -0
  771. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/EXE.elf +0 -0
  772. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/EXE.exe +0 -0
  773. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/EXE.macho +0 -0
  774. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/ExifTool.jpg +0 -0
  775. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/ExifTool.tif +0 -0
  776. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/ExtendedXMP.jpg +0 -0
  777. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/FLAC.flac +0 -0
  778. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/FLAC.ogg +0 -0
  779. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/FLIR.fpf +0 -0
  780. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/FLIR.jpg +0 -0
  781. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Flash.flv +0 -0
  782. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Flash.swf +0 -0
  783. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/FlashPix.ppt +0 -0
  784. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Font.afm +0 -0
  785. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Font.dfont +0 -0
  786. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Font.pfa +0 -0
  787. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Font.pfb +0 -0
  788. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Font.pfm +0 -0
  789. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Font.ttf +0 -0
  790. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/FotoStation.jpg +0 -0
  791. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/FujiFilm.jpg +0 -0
  792. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/FujiFilm.raf +0 -0
  793. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/GE.jpg +0 -0
  794. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/GIF.gif +0 -0
  795. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/GIMP.xcf +0 -0
  796. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/GPS.jpg +0 -0
  797. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/GeoTiff.tif +0 -0
  798. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Geotag.gpx +0 -0
  799. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Geotag.igc +0 -0
  800. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Geotag.kml +0 -0
  801. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Geotag.log +0 -0
  802. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Geotag.xml +0 -0
  803. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Geotag2.log +0 -0
  804. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/HTML.html +0 -0
  805. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/IPTC.jpg +0 -0
  806. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/ITC.itc +0 -0
  807. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/InDesign.indd +0 -0
  808. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/JVC.jpg +0 -0
  809. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/JVC2.jpg +0 -0
  810. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Jpeg2000.j2c +0 -0
  811. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Jpeg2000.jp2 +0 -0
  812. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Kodak.jpg +0 -0
  813. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/KyoceraRaw.raw +0 -0
  814. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/LNK.lnk +0 -0
  815. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/M2TS.mts +0 -0
  816. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/MIE.mie +0 -0
  817. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/MIFF.miff +0 -0
  818. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/MP3.mp3 +0 -0
  819. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/MWG.jpg +0 -0
  820. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/MXF.mxf +0 -0
  821. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Matroska.mkv +0 -0
  822. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Minolta.jpg +0 -0
  823. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Minolta.mrw +0 -0
  824. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Nikon.jpg +0 -0
  825. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Nikon.nef +0 -0
  826. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/NikonD2Hs.jpg +0 -0
  827. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/NikonD70.jpg +0 -0
  828. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/OOXML.docx +0 -0
  829. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Olympus.jpg +0 -0
  830. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Olympus2.jpg +0 -0
  831. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/OlympusE1.jpg +0 -0
  832. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/OpenDoc.ods +0 -0
  833. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/OpenEXR.exr +0 -0
  834. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/PDF.pdf +0 -0
  835. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/PDF2.pdf +0 -0
  836. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/PGF.pgf +0 -0
  837. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/PICT.pict +0 -0
  838. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/PLIST-bin.plist +0 -0
  839. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/PLIST-xml.plist +0 -0
  840. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/PNG.png +0 -0
  841. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/PPM.ppm +0 -0
  842. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/PSP.psp +0 -0
  843. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Panasonic.jpg +0 -0
  844. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Panasonic.rw2 +0 -0
  845. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Pentax.avi +0 -0
  846. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Pentax.jpg +0 -0
  847. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/PhotoCD.pcd +0 -0
  848. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/PhotoMechanic.jpg +0 -0
  849. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Photoshop.psd +0 -0
  850. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/PostScript.eps +0 -0
  851. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/QuickTime.m4a +0 -0
  852. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/QuickTime.mov +0 -0
  853. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/RIFF.avi +0 -0
  854. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/RIFF.wav +0 -0
  855. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/RIFF.webp +0 -0
  856. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/RTF.rtf +0 -0
  857. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Radiance.hdr +0 -0
  858. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Real.ra +0 -0
  859. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Real.ram +0 -0
  860. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Real.rm +0 -0
  861. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Ricoh.jpg +0 -0
  862. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Ricoh2.jpg +0 -0
  863. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Sanyo.jpg +0 -0
  864. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Sigma.jpg +0 -0
  865. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Sigma.x3f +0 -0
  866. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/SigmaDP2.x3f +0 -0
  867. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Sony.jpg +0 -0
  868. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Sony.pmp +0 -0
  869. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Torrent.torrent +0 -0
  870. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Unknown.jpg +0 -0
  871. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Vorbis.ogg +0 -0
  872. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/Writer.jpg +0 -0
  873. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/XMP.inx +0 -0
  874. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/XMP.jpg +0 -0
  875. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/XMP.svg +0 -0
  876. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/XMP.xml +0 -0
  877. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/XMP.xmp +0 -0
  878. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/XMP2.xmp +0 -0
  879. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/XMP3.xmp +0 -0
  880. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/XMP4.xmp +0 -0
  881. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/XMP5.xmp +0 -0
  882. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/ZIP.gz +0 -0
  883. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/ZIP.zip +0 -0
  884. data/bin/{Image-ExifTool-9.45 → Image-ExifTool-9.46}/t/images/iWork.numbers +0 -0
  885. data/lib/exiftool_vendored/version.rb +1 -1
  886. metadata +886 -886
  887. data/bin/Image-ExifTool-9.45/Changes +0 -6430
  888. data/bin/Image-ExifTool-9.45/META.yml +0 -27
  889. data/bin/Image-ExifTool-9.45/README +0 -228
  890. data/bin/Image-ExifTool-9.45/exiftool +0 -5767
  891. data/bin/Image-ExifTool-9.45/html/Shift.html +0 -173
  892. data/bin/Image-ExifTool-9.45/html/TagNames/Canon.html +0 -8302
  893. data/bin/Image-ExifTool-9.45/html/TagNames/Composite.html +0 -672
  894. data/bin/Image-ExifTool-9.45/html/TagNames/Extra.html +0 -308
  895. data/bin/Image-ExifTool-9.45/html/TagNames/Minolta.html +0 -2568
  896. data/bin/Image-ExifTool-9.45/html/TagNames/Nikon.html +0 -4495
  897. data/bin/Image-ExifTool-9.45/html/TagNames/Olympus.html +0 -3400
  898. data/bin/Image-ExifTool-9.45/html/TagNames/Panasonic.html +0 -1585
  899. data/bin/Image-ExifTool-9.45/html/TagNames/Pentax.html +0 -4527
  900. data/bin/Image-ExifTool-9.45/html/TagNames/QuickTime.html +0 -3397
  901. data/bin/Image-ExifTool-9.45/html/TagNames/Shortcuts.html +0 -239
  902. data/bin/Image-ExifTool-9.45/html/TagNames/Sony.html +0 -5721
  903. data/bin/Image-ExifTool-9.45/html/TagNames/XMP.html +0 -7927
  904. data/bin/Image-ExifTool-9.45/html/exiftool_pod.html +0 -2370
  905. data/bin/Image-ExifTool-9.45/html/faq.html +0 -1434
  906. data/bin/Image-ExifTool-9.45/html/filename.html +0 -282
  907. data/bin/Image-ExifTool-9.45/html/history.html +0 -362
  908. data/bin/Image-ExifTool-9.45/html/htmldump.html +0 -732
  909. data/bin/Image-ExifTool-9.45/html/index.html +0 -1283
  910. data/bin/Image-ExifTool-9.45/html/metafiles.html +0 -266
  911. data/bin/Image-ExifTool-9.45/html/under.html +0 -124
  912. data/bin/Image-ExifTool-9.45/lib/File/RandomAccess.pm +0 -378
  913. data/bin/Image-ExifTool-9.45/lib/File/RandomAccess.pod +0 -231
  914. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool.pm +0 -6894
  915. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool.pod +0 -2406
  916. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/AES.pm +0 -501
  917. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/AFCP.pm +0 -284
  918. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/AIFF.pm +0 -271
  919. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/APE.pm +0 -262
  920. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/APP12.pm +0 -322
  921. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/ASF.pm +0 -884
  922. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Apple.pm +0 -113
  923. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/BMP.pm +0 -179
  924. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/BZZ.pm +0 -472
  925. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/BigTIFF.pm +0 -282
  926. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/BuildTagLookup.pm +0 -2421
  927. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Canon.pm +0 -7985
  928. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/CanonCustom.pm +0 -2523
  929. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/CanonRaw.pm +0 -931
  930. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/CanonVRD.pm +0 -1481
  931. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/CaptureOne.pm +0 -235
  932. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Casio.pm +0 -2013
  933. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Charset.pm +0 -396
  934. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/DICOM.pm +0 -3874
  935. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/DNG.pm +0 -835
  936. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/DPX.pm +0 -151
  937. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/DV.pm +0 -319
  938. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/DarwinCore.pm +0 -317
  939. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/DjVu.pm +0 -376
  940. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/EXE.pm +0 -1228
  941. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Exif.pm +0 -4596
  942. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/FLAC.pm +0 -296
  943. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/FLIR.pm +0 -1232
  944. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Fixup.pm +0 -354
  945. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Flash.pm +0 -755
  946. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/FlashPix.pm +0 -1882
  947. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Font.pm +0 -643
  948. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/FotoStation.pm +0 -259
  949. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/FujiFilm.pm +0 -1088
  950. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/GE.pm +0 -80
  951. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/GIF.pm +0 -542
  952. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/GIMP.pm +0 -258
  953. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/GPS.pm +0 -514
  954. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/GeoTiff.pm +0 -2187
  955. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Geotag.pm +0 -1176
  956. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/H264.pm +0 -1102
  957. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/HP.pm +0 -262
  958. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/HTML.pm +0 -576
  959. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/HtmlDump.pm +0 -895
  960. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/ICC_Profile.pm +0 -999
  961. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/ID3.pm +0 -1532
  962. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/IPTC.pm +0 -1244
  963. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/ITC.pm +0 -215
  964. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Import.pm +0 -308
  965. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/InDesign.pm +0 -277
  966. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/JPEG.pm +0 -522
  967. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/JPEGDigest.pm +0 -2511
  968. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/JVC.pm +0 -130
  969. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Jpeg2000.pm +0 -873
  970. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Kodak.pm +0 -2014
  971. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/KyoceraRaw.pm +0 -173
  972. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/LNK.pm +0 -723
  973. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/cs.pm +0 -1586
  974. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/de.pm +0 -7356
  975. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/en_ca.pm +0 -557
  976. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/en_gb.pm +0 -572
  977. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/es.pm +0 -4017
  978. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/fi.pm +0 -2856
  979. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/fr.pm +0 -4720
  980. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/it.pm +0 -7918
  981. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/ja.pm +0 -5815
  982. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/ko.pm +0 -2332
  983. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/nl.pm +0 -3220
  984. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/pl.pm +0 -1140
  985. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/ru.pm +0 -769
  986. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/sv.pm +0 -639
  987. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/tr.pm +0 -544
  988. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/zh_cn.pm +0 -1329
  989. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Lang/zh_tw.pm +0 -802
  990. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Leaf.pm +0 -515
  991. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/M2TS.pm +0 -725
  992. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/MIE.pm +0 -2561
  993. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/MIEUnits.pod +0 -377
  994. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/MIFF.pm +0 -279
  995. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/MNG.pm +0 -684
  996. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/MPC.pm +0 -156
  997. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/MPEG.pm +0 -736
  998. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/MPF.pm +0 -289
  999. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/MWG.pm +0 -748
  1000. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/MXF.pm +0 -3032
  1001. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/MakerNotes.pm +0 -1598
  1002. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Matroska.pm +0 -891
  1003. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Microsoft.pm +0 -879
  1004. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Minolta.pm +0 -2859
  1005. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/MinoltaRaw.pm +0 -534
  1006. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Nikon.pm +0 -6141
  1007. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/NikonCapture.pm +0 -911
  1008. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/NikonCustom.pm +0 -4405
  1009. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/OOXML.pm +0 -409
  1010. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Ogg.pm +0 -237
  1011. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Olympus.pm +0 -3628
  1012. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/OpenEXR.pm +0 -324
  1013. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/PDF.pm +0 -2327
  1014. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/PGF.pm +0 -143
  1015. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/PICT.pm +0 -1260
  1016. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/PLIST.pm +0 -453
  1017. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/PNG.pm +0 -1161
  1018. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/PPM.pm +0 -169
  1019. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/PSP.pm +0 -305
  1020. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Panasonic.pm +0 -2180
  1021. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/PanasonicRaw.pm +0 -535
  1022. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Pentax.pm +0 -5788
  1023. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/PhaseOne.pm +0 -557
  1024. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/PhotoCD.pm +0 -507
  1025. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/PhotoMechanic.pm +0 -256
  1026. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Photoshop.pm +0 -629
  1027. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/PostScript.pm +0 -693
  1028. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/PrintIM.pm +0 -125
  1029. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Qualcomm.pm +0 -1344
  1030. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/QuickTime.pm +0 -3849
  1031. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/RIFF.pm +0 -1332
  1032. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/RSRC.pm +0 -241
  1033. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/RTF.pm +0 -383
  1034. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Radiance.pm +0 -144
  1035. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Rawzor.pm +0 -190
  1036. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Real.pm +0 -736
  1037. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Reconyx.pm +0 -190
  1038. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Ricoh.pm +0 -1039
  1039. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Samsung.pm +0 -846
  1040. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Sanyo.pm +0 -439
  1041. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Scalado.pm +0 -141
  1042. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Shift.pl +0 -594
  1043. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Shortcuts.pm +0 -293
  1044. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Sigma.pm +0 -574
  1045. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/SigmaRaw.pm +0 -649
  1046. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Sony.pm +0 -7072
  1047. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/SonyIDC.pm +0 -330
  1048. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Stim.pm +0 -196
  1049. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/TagInfoXML.pm +0 -794
  1050. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/TagLookup.pm +0 -8351
  1051. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/TagNames.pod +0 -26867
  1052. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Theora.pm +0 -145
  1053. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Torrent.pm +0 -317
  1054. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Unknown.pm +0 -66
  1055. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Vorbis.pm +0 -237
  1056. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/WriteCanonRaw.pl +0 -637
  1057. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/WriteExif.pl +0 -3685
  1058. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/WriteIPTC.pl +0 -702
  1059. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/WritePDF.pl +0 -765
  1060. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/WritePNG.pl +0 -376
  1061. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/WritePhotoshop.pl +0 -266
  1062. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/WritePostScript.pl +0 -777
  1063. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/WriteQuickTime.pl +0 -344
  1064. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/WriteXMP.pl +0 -1318
  1065. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/Writer.pl +0 -5851
  1066. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/XMP.pm +0 -3755
  1067. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/XMP2.pl +0 -1299
  1068. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/XMPStruct.pl +0 -814
  1069. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/ZIP.pm +0 -623
  1070. data/bin/Image-ExifTool-9.45/lib/Image/ExifTool/iWork.pm +0 -223
  1071. data/bin/Image-ExifTool-9.45/perl-Image-ExifTool.spec +0 -105
  1072. data/bin/Image-ExifTool-9.45/t/QuickTime_2.out +0 -130
  1073. data/bin/Image-ExifTool-9.45/t/QuickTime_3.out +0 -71
@@ -0,0 +1,3755 @@
1
+ #------------------------------------------------------------------------------
2
+ # File: XMP.pm
3
+ #
4
+ # Description: Read XMP meta information
5
+ #
6
+ # Revisions: 11/25/2003 - P. Harvey Created
7
+ # 10/28/2004 - P. Harvey Major overhaul to conform with XMP spec
8
+ # 02/27/2005 - P. Harvey Also read UTF-16 and UTF-32 XMP
9
+ # 08/30/2005 - P. Harvey Split tag tables into separate namespaces
10
+ # 10/24/2005 - P. Harvey Added ability to parse .XMP files
11
+ # 08/25/2006 - P. Harvey Added ability to handle blank nodes
12
+ # 08/22/2007 - P. Harvey Added ability to handle alternate language tags
13
+ # 09/26/2008 - P. Harvey Added Iptc4xmpExt tags (version 1.0 rev 2)
14
+ #
15
+ # References: 1) http://www.adobe.com/products/xmp/pdfs/xmpspec.pdf
16
+ # 2) http://www.w3.org/TR/rdf-syntax-grammar/ (20040210)
17
+ # 3) http://www.portfoliofaq.com/pfaq/v7mappings.htm
18
+ # 4) http://www.iptc.org/IPTC4XMP/
19
+ # 5) http://creativecommons.org/technology/xmp
20
+ # --> changed to http://wiki.creativecommons.org/Companion_File_metadata_specification (2007/12/21)
21
+ # 6) http://www.optimasc.com/products/fileid/xmp-extensions.pdf
22
+ # 7) Lou Salkind private communication
23
+ # 8) http://partners.adobe.com/public/developer/en/xmp/sdk/XMPspecification.pdf
24
+ # 9) http://www.w3.org/TR/SVG11/
25
+ # 10) http://www.adobe.com/devnet/xmp/pdfs/XMPSpecificationPart2.pdf (Oct 2008)
26
+ # 11) http://www.extensis.com/en/support/kb_article.jsp?articleNumber=6102211
27
+ # 12) http://www.cipa.jp/english/hyoujunka/kikaku/pdf/DC-010-2012_E.pdf
28
+ #
29
+ # Notes: - Property qualifiers are handled as if they were separate
30
+ # properties (with no associated namespace).
31
+ #
32
+ # - Currently, there is no special treatment of the following
33
+ # properties which could potentially affect the extracted
34
+ # information: xml:base, rdf:parseType (note that parseType
35
+ # Literal isn't allowed by the XMP spec).
36
+ #
37
+ # - The family 2 group names will be set to 'Unknown' for any XMP
38
+ # tags not found in the XMP or Exif tag tables.
39
+ #------------------------------------------------------------------------------
40
+
41
+ package Image::ExifTool::XMP;
42
+
43
+ use strict;
44
+ use vars qw($VERSION $AUTOLOAD @ISA @EXPORT_OK $xlatNamespace %nsURI %dateTimeInfo
45
+ %xmpTableDefaults %specialStruct %sDimensions %sArea %sColorant);
46
+ use Image::ExifTool qw(:Utils);
47
+ use Image::ExifTool::Exif;
48
+ require Exporter;
49
+
50
+ $VERSION = '2.70';
51
+ @ISA = qw(Exporter);
52
+ @EXPORT_OK = qw(EscapeXML UnescapeXML);
53
+
54
+ sub ProcessXMP($$;$);
55
+ sub WriteXMP($$;$);
56
+ sub CheckXMP($$$);
57
+ sub ParseXMPElement($$$;$$$$);
58
+ sub DecodeBase64($);
59
+ sub SaveBlankInfo($$$;$);
60
+ sub ProcessBlankInfo($$$;$);
61
+ sub ValidateXMP($;$);
62
+ sub UnescapeChar($$);
63
+ sub AddFlattenedTags($;$$);
64
+ sub FormatXMPDate($);
65
+ sub ConvertRational($);
66
+ sub ConvertRationalList($);
67
+
68
+ my %curNS; # namespaces currently in effect while parsing the file
69
+
70
+ # lookup for translating to ExifTool namespaces
71
+ # Note: Use $xlatNamespace (only valid during processing) to do the translation
72
+ my %stdXlatNS = (
73
+ # shorten ugly namespace prefixes
74
+ 'Iptc4xmpCore' => 'iptcCore',
75
+ 'Iptc4xmpExt' => 'iptcExt',
76
+ 'photomechanic'=> 'photomech',
77
+ 'MicrosoftPhoto' => 'microsoft',
78
+ 'prismusagerights' => 'pur',
79
+ 'GettyImagesGIFT' => 'getty',
80
+ );
81
+
82
+ # translate ExifTool XMP family 1 group names to standard XMP namespace prefixes
83
+ my %xmpNS = (
84
+ # shorten ugly namespace prefixes
85
+ 'iptcCore' => 'Iptc4xmpCore',
86
+ 'iptcExt' => 'Iptc4xmpExt',
87
+ 'photomechanic'=> 'photomech',
88
+ 'microsoft' => 'MicrosoftPhoto',
89
+ 'gettyImages' => 'GettyImagesGIFT',
90
+ # (prism changed their spec to now use 'pur')
91
+ # 'pur' => 'prismusagerights',
92
+ );
93
+
94
+ # Lookup to translate standard XMP namespace prefixes into URI's. This list
95
+ # need not be complete, but it must contain an entry for each namespace prefix
96
+ # (NAMESPACE) for writable tags in the XMP tables or in structures that doesn't
97
+ # define a URI. Also, the namespace must be defined here for non-standard
98
+ # namespace prefixes to be recognized.
99
+ %nsURI = (
100
+ aux => 'http://ns.adobe.com/exif/1.0/aux/',
101
+ album => 'http://ns.adobe.com/album/1.0/',
102
+ cc => 'http://creativecommons.org/ns#', # changed 2007/12/21 - PH
103
+ crs => 'http://ns.adobe.com/camera-raw-settings/1.0/',
104
+ crss => 'http://ns.adobe.com/camera-raw-saved-settings/1.0/',
105
+ dc => 'http://purl.org/dc/elements/1.1/',
106
+ exif => 'http://ns.adobe.com/exif/1.0/',
107
+ exifEX => 'http://cipa.jp/exif/1.0/',
108
+ iX => 'http://ns.adobe.com/iX/1.0/',
109
+ pdf => 'http://ns.adobe.com/pdf/1.3/',
110
+ pdfx => 'http://ns.adobe.com/pdfx/1.3/',
111
+ photoshop => 'http://ns.adobe.com/photoshop/1.0/',
112
+ rdf => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
113
+ rdfs => 'http://www.w3.org/2000/01/rdf-schema#',
114
+ stDim => 'http://ns.adobe.com/xap/1.0/sType/Dimensions#',
115
+ stEvt => 'http://ns.adobe.com/xap/1.0/sType/ResourceEvent#',
116
+ stFnt => 'http://ns.adobe.com/xap/1.0/sType/Font#',
117
+ stJob => 'http://ns.adobe.com/xap/1.0/sType/Job#',
118
+ stRef => 'http://ns.adobe.com/xap/1.0/sType/ResourceRef#',
119
+ stVer => 'http://ns.adobe.com/xap/1.0/sType/Version#',
120
+ stMfs => 'http://ns.adobe.com/xap/1.0/sType/ManifestItem#',
121
+ tiff => 'http://ns.adobe.com/tiff/1.0/',
122
+ 'x' => 'adobe:ns:meta/',
123
+ xmpG => 'http://ns.adobe.com/xap/1.0/g/',
124
+ xmpGImg => 'http://ns.adobe.com/xap/1.0/g/img/',
125
+ xmp => 'http://ns.adobe.com/xap/1.0/',
126
+ xmpBJ => 'http://ns.adobe.com/xap/1.0/bj/',
127
+ xmpDM => 'http://ns.adobe.com/xmp/1.0/DynamicMedia/',
128
+ xmpMM => 'http://ns.adobe.com/xap/1.0/mm/',
129
+ xmpRights => 'http://ns.adobe.com/xap/1.0/rights/',
130
+ xmpNote => 'http://ns.adobe.com/xmp/note/',
131
+ xmpTPg => 'http://ns.adobe.com/xap/1.0/t/pg/',
132
+ xmpidq => 'http://ns.adobe.com/xmp/Identifier/qual/1.0/',
133
+ xmpPLUS => 'http://ns.adobe.com/xap/1.0/PLUS/',
134
+ dex => 'http://ns.optimasc.com/dex/1.0/',
135
+ mediapro => 'http://ns.iview-multimedia.com/mediapro/1.0/',
136
+ expressionmedia => 'http://ns.microsoft.com/expressionmedia/1.0/',
137
+ Iptc4xmpCore => 'http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/',
138
+ Iptc4xmpExt => 'http://iptc.org/std/Iptc4xmpExt/2008-02-29/',
139
+ MicrosoftPhoto => 'http://ns.microsoft.com/photo/1.0',
140
+ MP1 => 'http://ns.microsoft.com/photo/1.1', #PH (MP1 is fabricated)
141
+ MP => 'http://ns.microsoft.com/photo/1.2/',
142
+ MPRI => 'http://ns.microsoft.com/photo/1.2/t/RegionInfo#',
143
+ MPReg => 'http://ns.microsoft.com/photo/1.2/t/Region#',
144
+ lr => 'http://ns.adobe.com/lightroom/1.0/',
145
+ DICOM => 'http://ns.adobe.com/DICOM/',
146
+ svg => 'http://www.w3.org/2000/svg',
147
+ et => 'http://ns.exiftool.ca/1.0/',
148
+ # namespaces defined in XMP2.pl:
149
+ plus => 'http://ns.useplus.org/ldf/xmp/1.0/',
150
+ prism => 'http://prismstandard.org/namespaces/basic/2.1/',
151
+ prl => 'http://prismstandard.org/namespaces/prl/2.1/',
152
+ pur => 'http://prismstandard.org/namespaces/prismusagerights/2.1/',
153
+ acdsee => 'http://ns.acdsee.com/iptc/1.0/',
154
+ digiKam => 'http://www.digikam.org/ns/1.0/',
155
+ swf => 'http://ns.adobe.com/swf/1.0',
156
+ cell => 'http://developer.sonyericsson.com/cell/1.0/',
157
+ aas => 'http://ns.apple.com/adjustment-settings/1.0/',
158
+ 'mwg-rs' => 'http://www.metadataworkinggroup.com/schemas/regions/',
159
+ 'mwg-kw' => 'http://www.metadataworkinggroup.com/schemas/keywords/',
160
+ 'mwg-coll' => 'http://www.metadataworkinggroup.com/schemas/collections/',
161
+ stArea => 'http://ns.adobe.com/xmp/sType/Area#',
162
+ extensis => 'http://ns.extensis.com/extensis/1.0/',
163
+ ics => 'http://ns.idimager.com/ics/1.0/',
164
+ fpv => 'http://ns.fastpictureviewer.com/fpv/1.0/',
165
+ 'apple-fi' => 'http://ns.apple.com/faceinfo/1.0/',
166
+ GPano => 'http://ns.google.com/photos/1.0/panorama/',
167
+ dwc => 'http://rs.tdwg.org/dwc/index.htm',
168
+ GettyImagesGIFT => 'http://xmp.gettyimages.com/gift/1.0/',
169
+ );
170
+
171
+ # build reverse namespace lookup
172
+ my %uri2ns;
173
+ {
174
+ my $ns;
175
+ foreach $ns (keys %nsURI) {
176
+ $uri2ns{$nsURI{$ns}} = $ns;
177
+ }
178
+ }
179
+
180
+ # conversions for GPS coordinates
181
+ sub ToDegrees
182
+ {
183
+ require Image::ExifTool::GPS;
184
+ Image::ExifTool::GPS::ToDegrees($_[0], 1);
185
+ }
186
+ my %latConv = (
187
+ ValueConv => \&ToDegrees,
188
+ RawConv => 'require Image::ExifTool::GPS; $val', # to load Composite tags and routines
189
+ ValueConvInv => q{
190
+ require Image::ExifTool::GPS;
191
+ Image::ExifTool::GPS::ToDMS($self, $val, 2, "N");
192
+ },
193
+ PrintConv => 'Image::ExifTool::GPS::ToDMS($self, $val, 1, "N")',
194
+ PrintConvInv => \&ToDegrees,
195
+ );
196
+ my %longConv = (
197
+ ValueConv => \&ToDegrees,
198
+ RawConv => 'require Image::ExifTool::GPS; $val',
199
+ ValueConvInv => q{
200
+ require Image::ExifTool::GPS;
201
+ Image::ExifTool::GPS::ToDMS($self, $val, 2, "E");
202
+ },
203
+ PrintConv => 'Image::ExifTool::GPS::ToDMS($self, $val, 1, "E")',
204
+ PrintConvInv => \&ToDegrees,
205
+ );
206
+ %dateTimeInfo = (
207
+ # NOTE: Do NOT put "Groups" here because Groups hash must not be common!
208
+ Writable => 'date',
209
+ Shift => 'Time',
210
+ PrintConv => '$self->ConvertDateTime($val)',
211
+ PrintConvInv => '$self->InverseDateTime($val,undef,1)',
212
+ );
213
+
214
+ # this conversion allows alternate language support for designated boolean tags
215
+ my %boolConv = (
216
+ PrintConv => {
217
+ OTHER => sub { # (inverse conversion is the same)
218
+ my $val = shift;
219
+ return 'False' if lc $val eq 'false';
220
+ return 'True' if lc $val eq 'true';
221
+ return $val;
222
+ },
223
+ True => 'True',
224
+ False => 'False',
225
+ },
226
+ );
227
+
228
+ # XMP namespaces which we don't want to contribute to generated EXIF tag names
229
+ # (Note: namespaces with non-standard prefixes aren't currently ignored)
230
+ my %ignoreNamespace = ( 'x'=>1, rdf=>1, xmlns=>1, xml=>1, svg=>1, et=>1, office=>1 );
231
+
232
+ # these are the attributes that we handle for properties that contain
233
+ # sub-properties. Attributes for simple properties are easy, and we
234
+ # just copy them over. These are harder since we don't store attributes
235
+ # for properties without simple values. (maybe this will change...)
236
+ # (special attributes are indicated by a list reference of tag information)
237
+ my %recognizedAttrs = (
238
+ 'rdf:about' => [ 'Image::ExifTool::XMP::rdf', 'about', 'About' ],
239
+ 'x:xmptk' => [ 'Image::ExifTool::XMP::x', 'xmptk', 'XMPToolkit' ],
240
+ 'x:xaptk' => [ 'Image::ExifTool::XMP::x', 'xmptk', 'XMPToolkit' ],
241
+ 'rdf:parseType' => 1,
242
+ 'rdf:nodeID' => 1,
243
+ 'et:toolkit' => 1,
244
+ 'rdf:xmlns' => 1, # this is presumably the default namespace, which we currently ignore
245
+ );
246
+
247
+ # special tags in structures below
248
+ # NOTE: this lookup is duplicated in TagLookup.pm!!
249
+ %specialStruct = (
250
+ STRUCT_NAME => 1, # [optional] name of structure
251
+ NAMESPACE => 1, # [mandatory] namespace prefix used for fields of this structure
252
+ NOTES => 1, # [optional] notes for documentation about this structure
253
+ TYPE => 1, # [optional] rdf:type resource for struct (if used, the StructType flag
254
+ # will be set automatically for all derived flattened tags when writing)
255
+ );
256
+ # XMP structures (each structure is similar to a tag table so we can
257
+ # recurse through them in SetPropertyPath() as if they were tag tables)
258
+ # The main differences between structure field information and tagInfo hashes are:
259
+ # 1) Field information hashes do not contain Name, Groups or Table entries, and
260
+ # 2) The TagID entry is optional, and is used only if the key in the structure hash
261
+ # is different from the TagID (currently only true for alternate language fields)
262
+ # 3) Field information hashes support a additional "Namespace" property.
263
+ my %sResourceRef = (
264
+ STRUCT_NAME => 'ResourceRef',
265
+ NAMESPACE => 'stRef',
266
+ documentID => { },
267
+ instanceID => { },
268
+ manager => { },
269
+ managerVariant => { },
270
+ manageTo => { },
271
+ manageUI => { },
272
+ renditionClass => { },
273
+ renditionParams => { },
274
+ versionID => { },
275
+ # added Oct 2008
276
+ alternatePaths => { List => 'Seq' },
277
+ filePath => { },
278
+ fromPart => { },
279
+ lastModifyDate => { %dateTimeInfo, Groups => { 2 => 'Time' } },
280
+ maskMarkers => { PrintConv => { All => 'All', None => 'None' } },
281
+ partMapping => { },
282
+ toPart => { },
283
+ # added May 2010
284
+ originalDocumentID => { }, # (undocumented property written by Adobe InDesign)
285
+ );
286
+ my %sResourceEvent = (
287
+ STRUCT_NAME => 'ResourceEvent',
288
+ NAMESPACE => 'stEvt',
289
+ action => { },
290
+ instanceID => { },
291
+ parameters => { },
292
+ softwareAgent => { },
293
+ when => { %dateTimeInfo, Groups => { 2 => 'Time' } },
294
+ # added Oct 2008
295
+ changed => { },
296
+ );
297
+ my %sJobRef = (
298
+ STRUCT_NAME => 'JobRef',
299
+ NAMESPACE => 'stJob',
300
+ id => { },
301
+ name => { },
302
+ url => { },
303
+ );
304
+ my %sVersion = (
305
+ STRUCT_NAME => 'Version',
306
+ NAMESPACE => 'stVer',
307
+ comments => { },
308
+ event => { Struct => \%sResourceEvent },
309
+ modifier => { },
310
+ modifyDate => { %dateTimeInfo, Groups => { 2 => 'Time' } },
311
+ version => { },
312
+ );
313
+ my %sThumbnail = (
314
+ STRUCT_NAME => 'Thumbnail',
315
+ NAMESPACE => 'xmpGImg',
316
+ height => { Writable => 'integer' },
317
+ width => { Writable => 'integer' },
318
+ 'format' => { },
319
+ image => {
320
+ Avoid => 1,
321
+ ValueConv => 'Image::ExifTool::XMP::DecodeBase64($val)',
322
+ ValueConvInv => 'Image::ExifTool::XMP::EncodeBase64($val)',
323
+ },
324
+ );
325
+ my %sPageInfo = (
326
+ STRUCT_NAME => 'PageInfo',
327
+ NAMESPACE => 'xmpGImg',
328
+ PageNumber => { Writable => 'integer', Namespace => 'xmpTPg' }, # override default namespace
329
+ height => { Writable => 'integer' },
330
+ width => { Writable => 'integer' },
331
+ 'format' => { },
332
+ image => {
333
+ ValueConv => 'Image::ExifTool::XMP::DecodeBase64($val)',
334
+ ValueConvInv => 'Image::ExifTool::XMP::EncodeBase64($val)',
335
+ },
336
+ );
337
+ #my %sIdentifierScheme = (
338
+ # NAMESPACE => 'xmpidq',
339
+ # Scheme => { }, # qualifier for xmp:Identifier only
340
+ #);
341
+ %sDimensions = (
342
+ STRUCT_NAME => 'Dimensions',
343
+ NAMESPACE => 'stDim',
344
+ w => { Writable => 'real' },
345
+ h => { Writable => 'real' },
346
+ unit => { },
347
+ );
348
+ %sArea = (
349
+ STRUCT_NAME => 'Area',
350
+ NAMESPACE => 'stArea',
351
+ 'x' => { Writable => 'real' },
352
+ 'y' => { Writable => 'real' },
353
+ w => { Writable => 'real' },
354
+ h => { Writable => 'real' },
355
+ d => { Writable => 'real' },
356
+ unit => { },
357
+ );
358
+ %sColorant = (
359
+ STRUCT_NAME => 'Colorant',
360
+ NAMESPACE => 'xmpG',
361
+ swatchName => { },
362
+ mode => { PrintConv => { CMYK=>'CMYK', RGB=>'RGB', LAB=>'Lab' } },
363
+ # note: do not implement closed choice for "type" because Adobe can't
364
+ # get the case right: spec. says "PROCESS" but Indesign writes "Process"
365
+ type => { },
366
+ cyan => { Writable => 'real' },
367
+ magenta => { Writable => 'real' },
368
+ yellow => { Writable => 'real' },
369
+ black => { Writable => 'real' },
370
+ red => { Writable => 'integer' },
371
+ green => { Writable => 'integer' },
372
+ blue => { Writable => 'integer' },
373
+ L => { Writable => 'real' },
374
+ A => { Writable => 'integer' },
375
+ B => { Writable => 'integer' },
376
+ # 'tint' observed in INDD sample - PH
377
+ tint => { Writable => 'integer', Notes => 'not part of 2010 XMP specification' },
378
+ );
379
+ my %sFont = (
380
+ STRUCT_NAME => 'Font',
381
+ NAMESPACE => 'stFnt',
382
+ fontName => { },
383
+ fontFamily => { },
384
+ fontFace => { },
385
+ fontType => { },
386
+ versionString => { },
387
+ composite => { Writable => 'boolean' },
388
+ fontFileName=> { },
389
+ childFontFiles => { List => 'Seq' },
390
+ );
391
+ my %sOECF = (
392
+ STRUCT_NAME => 'OECF',
393
+ NAMESPACE => 'exif',
394
+ Columns => { Writable => 'integer' },
395
+ Rows => { Writable => 'integer' },
396
+ Names => { List => 'Seq' },
397
+ Values => { List => 'Seq', Writable => 'rational' },
398
+ );
399
+
400
+ # new LR2 crs structures (PH)
401
+ my %sCorrectionMask = (
402
+ STRUCT_NAME => 'CorrectionMask',
403
+ NAMESPACE => 'crs',
404
+ # disable List behaviour of flattened Gradient/PaintBasedCorrections
405
+ # because these are nested in lists and the flattened tags can't
406
+ # do justice to this complex structure
407
+ What => { List => 0 },
408
+ MaskValue => { Writable => 'real', List => 0, FlatName => 'Value' },
409
+ Radius => { Writable => 'real', List => 0 },
410
+ Flow => { Writable => 'real', List => 0 },
411
+ CenterWeight => { Writable => 'real', List => 0 },
412
+ Dabs => { List => 'Seq' },
413
+ ZeroX => { Writable => 'real', List => 0 },
414
+ ZeroY => { Writable => 'real', List => 0 },
415
+ FullX => { Writable => 'real', List => 0 },
416
+ FullY => { Writable => 'real', List => 0 },
417
+ # new elements used in CircularGradientBasedCorrections CorrectionMasks
418
+ # and RetouchAreas Masks
419
+ Top => { Writable => 'real', List => 0 },
420
+ Left => { Writable => 'real', List => 0 },
421
+ Bottom => { Writable => 'real', List => 0 },
422
+ Right => { Writable => 'real', List => 0 },
423
+ Angle => { Writable => 'real', List => 0 },
424
+ Midpoint => { Writable => 'real', List => 0 },
425
+ Roundness => { Writable => 'real', List => 0 },
426
+ Feather => { Writable => 'real', List => 0 },
427
+ Flipped => { Writable => 'boolean', List => 0 },
428
+ Version => { Writable => 'integer', List => 0 },
429
+ SizeX => { Writable => 'real', List => 0 },
430
+ SizeY => { Writable => 'real', List => 0 },
431
+ X => { Writable => 'real', List => 0 },
432
+ Y => { Writable => 'real', List => 0 },
433
+ Alpha => { Writable => 'real', List => 0 },
434
+ CenterValue => { Writable => 'real', List => 0 },
435
+ PerimeterValue=>{ Writable => 'real', List => 0 },
436
+ );
437
+ my %sCorrection = (
438
+ STRUCT_NAME => 'Correction',
439
+ NAMESPACE => 'crs',
440
+ What => { List => 0 },
441
+ CorrectionAmount => { FlatName => 'Amount', Writable => 'real', List => 0 },
442
+ CorrectionActive => { FlatName => 'Active', Writable => 'boolean', List => 0 },
443
+ LocalExposure => { FlatName => 'Exposure', Writable => 'real', List => 0 },
444
+ LocalSaturation => { FlatName => 'Saturation', Writable => 'real', List => 0 },
445
+ LocalContrast => { FlatName => 'Contrast', Writable => 'real', List => 0 },
446
+ LocalClarity => { FlatName => 'Clarity', Writable => 'real', List => 0 },
447
+ LocalSharpness => { FlatName => 'Sharpness', Writable => 'real', List => 0 },
448
+ LocalBrightness => { FlatName => 'Brightness', Writable => 'real', List => 0 },
449
+ LocalToningHue => { FlatName => 'Hue', Writable => 'real', List => 0 },
450
+ LocalToningSaturation => { FlatName => 'Saturation', Writable => 'real', List => 0 },
451
+ LocalExposure2012 => { FlatName => 'Exposure2012', Writable => 'real', List => 0 },
452
+ LocalContrast2012 => { FlatName => 'Contrast2012', Writable => 'real', List => 0 },
453
+ LocalHighlights2012 => { FlatName => 'Highlights2012', Writable => 'real', List => 0 },
454
+ LocalShadows2012 => { FlatName => 'Shadows2012', Writable => 'real', List => 0 },
455
+ LocalClarity2012 => { FlatName => 'Clarity2012', Writable => 'real', List => 0 },
456
+ LocalLuminanceNoise => { FlatName => 'LuminanceNoise', Writable => 'real', List => 0 },
457
+ LocalMoire => { FlatName => 'Moire', Writable => 'real', List => 0 },
458
+ LocalDefringe => { FlatName => 'Defringe', Writable => 'real', List => 0 },
459
+ LocalTemperature => { FlatName => 'Temperature',Writable => 'real', List => 0 },
460
+ LocalTint => { FlatName => 'Tint', Writable => 'real', List => 0 },
461
+ CorrectionMasks => {
462
+ FlatName => 'Mask',
463
+ Struct => \%sCorrectionMask,
464
+ List => 'Seq',
465
+ },
466
+ );
467
+ my %sRetouchArea = (
468
+ STRUCT_NAME => 'RetouchArea',
469
+ NAMESPACE => 'crs',
470
+ SpotType => { List => 0 },
471
+ SourceState => { List => 0 },
472
+ Method => { List => 0 },
473
+ SourceX => { Writable => 'real', List => 0 },
474
+ OffsetY => { Writable => 'real', List => 0 },
475
+ Opacity => { Writable => 'real', List => 0 },
476
+ Feather => { Writable => 'real', List => 0 },
477
+ Seed => { Writable => 'integer', List => 0 },
478
+ Masks => {
479
+ FlatName => 'Mask',
480
+ Struct => \%sCorrectionMask,
481
+ List => 'Seq',
482
+ },
483
+ );
484
+
485
+ # IPTC Extension 1.0 structures
486
+ my %sLocationDetails = (
487
+ STRUCT_NAME => 'LocationDetails',
488
+ NAMESPACE => 'Iptc4xmpExt',
489
+ City => { },
490
+ CountryCode => { },
491
+ CountryName => { },
492
+ ProvinceState=> { },
493
+ Sublocation => { },
494
+ WorldRegion => { },
495
+ );
496
+
497
+ # main XMP tag table (tag ID's are used for the family 1 group names)
498
+ %Image::ExifTool::XMP::Main = (
499
+ GROUPS => { 2 => 'Unknown' },
500
+ PROCESS_PROC => \&ProcessXMP,
501
+ WRITE_PROC => \&WriteXMP,
502
+ dc => {
503
+ Name => 'dc', # (otherwise generated name would be 'Dc')
504
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::dc' },
505
+ },
506
+ xmp => {
507
+ Name => 'xmp',
508
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::xmp' },
509
+ },
510
+ xmpDM => {
511
+ Name => 'xmpDM',
512
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::xmpDM' },
513
+ },
514
+ xmpRights => {
515
+ Name => 'xmpRights',
516
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::xmpRights' },
517
+ },
518
+ xmpNote => {
519
+ Name => 'xmpNote',
520
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::xmpNote' },
521
+ },
522
+ xmpMM => {
523
+ Name => 'xmpMM',
524
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::xmpMM' },
525
+ },
526
+ xmpBJ => {
527
+ Name => 'xmpBJ',
528
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::xmpBJ' },
529
+ },
530
+ xmpTPg => {
531
+ Name => 'xmpTPg',
532
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::xmpTPg' },
533
+ },
534
+ pdf => {
535
+ Name => 'pdf',
536
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::pdf' },
537
+ },
538
+ pdfx => {
539
+ Name => 'pdfx',
540
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::pdfx' },
541
+ },
542
+ photoshop => {
543
+ Name => 'photoshop',
544
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::photoshop' },
545
+ },
546
+ crs => {
547
+ Name => 'crs',
548
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::crs' },
549
+ },
550
+ # crss - it would be tedious to add the ability to write this
551
+ aux => {
552
+ Name => 'aux',
553
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::aux' },
554
+ },
555
+ tiff => {
556
+ Name => 'tiff',
557
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::tiff' },
558
+ },
559
+ exif => {
560
+ Name => 'exif',
561
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::exif' },
562
+ },
563
+ exifEX => {
564
+ Name => 'exifEX',
565
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::exifEX' },
566
+ },
567
+ iptcCore => {
568
+ Name => 'iptcCore',
569
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::iptcCore' },
570
+ },
571
+ iptcExt => {
572
+ Name => 'iptcExt',
573
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::iptcExt' },
574
+ },
575
+ PixelLive => {
576
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::PixelLive' },
577
+ },
578
+ xmpPLUS => {
579
+ Name => 'xmpPLUS',
580
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::xmpPLUS' },
581
+ },
582
+ plus => {
583
+ Name => 'plus',
584
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::plus' },
585
+ },
586
+ cc => {
587
+ Name => 'cc',
588
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::cc' },
589
+ },
590
+ dex => {
591
+ Name => 'dex',
592
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::dex' },
593
+ },
594
+ photomech => {
595
+ Name => 'photomech',
596
+ SubDirectory => { TagTable => 'Image::ExifTool::PhotoMechanic::XMP' },
597
+ },
598
+ mediapro => {
599
+ Name => 'mediapro',
600
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::MediaPro' },
601
+ },
602
+ expressionmedia => {
603
+ Name => 'expressionmedia',
604
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::ExpressionMedia' },
605
+ },
606
+ microsoft => {
607
+ Name => 'microsoft',
608
+ SubDirectory => { TagTable => 'Image::ExifTool::Microsoft::XMP' },
609
+ },
610
+ MP => {
611
+ Name => 'MP',
612
+ SubDirectory => { TagTable => 'Image::ExifTool::Microsoft::MP' },
613
+ },
614
+ MP1 => {
615
+ Name => 'MP1',
616
+ SubDirectory => { TagTable => 'Image::ExifTool::Microsoft::MP1' },
617
+ },
618
+ lr => {
619
+ Name => 'lr',
620
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::Lightroom' },
621
+ },
622
+ DICOM => {
623
+ Name => 'DICOM',
624
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::DICOM' },
625
+ },
626
+ album => {
627
+ Name => 'album',
628
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::Album' },
629
+ },
630
+ prism => {
631
+ Name => 'prism',
632
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::prism' },
633
+ },
634
+ prl => {
635
+ Name => 'prl',
636
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::prl' },
637
+ },
638
+ pur => {
639
+ Name => 'pur',
640
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::pur' },
641
+ },
642
+ rdf => {
643
+ Name => 'rdf',
644
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::rdf' },
645
+ },
646
+ 'x' => {
647
+ Name => 'x',
648
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::x' },
649
+ },
650
+ acdsee => {
651
+ Name => 'acdsee',
652
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::acdsee' },
653
+ },
654
+ digiKam => {
655
+ Name => 'digiKam',
656
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::digiKam' },
657
+ },
658
+ swf => {
659
+ Name => 'swf',
660
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::swf' },
661
+ },
662
+ cell => {
663
+ Name => 'cell',
664
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::cell' },
665
+ },
666
+ aas => {
667
+ Name => 'aas',
668
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::aas' },
669
+ },
670
+ 'mwg-rs' => {
671
+ Name => 'mwg-rs',
672
+ SubDirectory => { TagTable => 'Image::ExifTool::MWG::Regions' },
673
+ },
674
+ 'mwg-kw' => {
675
+ Name => 'mwg-kw',
676
+ SubDirectory => { TagTable => 'Image::ExifTool::MWG::Keywords' },
677
+ },
678
+ 'mwg-coll' => {
679
+ Name => 'mwg-coll',
680
+ SubDirectory => { TagTable => 'Image::ExifTool::MWG::Collections' },
681
+ },
682
+ extensis => {
683
+ Name => 'extensis',
684
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::extensis' },
685
+ },
686
+ ics => {
687
+ Name => 'ics',
688
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::ics' },
689
+ },
690
+ fpv => {
691
+ Name => 'fpv',
692
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::fpv' },
693
+ },
694
+ 'apple-fi' => {
695
+ Name => 'apple-fi',
696
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::apple_fi' },
697
+ },
698
+ GPano => {
699
+ Name => 'GPano',
700
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::GPano' },
701
+ },
702
+ dwc => {
703
+ Name => 'dwc',
704
+ SubDirectory => { TagTable => 'Image::ExifTool::DarwinCore::Main' },
705
+ },
706
+ getty => {
707
+ Name => 'getty',
708
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::GettyImages' },
709
+ },
710
+ );
711
+
712
+ #
713
+ # Tag tables for all XMP namespaces:
714
+ #
715
+ # Writable - only need to define this for writable tags if not plain text
716
+ # (boolean, integer, rational, real, date or lang-alt)
717
+ # List - XMP list type (Bag, Seq or Alt, or set to 1 for elements in Struct lists --
718
+ # this is necessary to obtain proper list behaviour when reading/writing)
719
+ #
720
+ # (Note that family 1 group names are generated from the property namespace, not
721
+ # the group1 names below which exist so the groups will appear in the list.)
722
+ #
723
+ %xmpTableDefaults = (
724
+ WRITE_PROC => \&WriteXMP,
725
+ CHECK_PROC => \&CheckXMP,
726
+ WRITABLE => 'string',
727
+ LANG_INFO => \&GetLangInfo,
728
+ );
729
+
730
+ # rdf attributes extracted
731
+ %Image::ExifTool::XMP::rdf = (
732
+ %xmpTableDefaults,
733
+ GROUPS => { 1 => 'XMP-rdf', 2 => 'Document' },
734
+ NAMESPACE => 'rdf',
735
+ NOTES => q{
736
+ Most RDF attributes are handled internally, but the "about" attribute is
737
+ treated specially to allow it to be set to a specific value if required.
738
+ },
739
+ about => { Protected => 1 },
740
+ );
741
+
742
+ # x attributes extracted
743
+ %Image::ExifTool::XMP::x = (
744
+ %xmpTableDefaults,
745
+ GROUPS => { 1 => 'XMP-x', 2 => 'Document' },
746
+ NAMESPACE => 'x',
747
+ NOTES => qq{
748
+ The "x" namespace is used for the "xmpmeta" wrapper, and may contain an
749
+ "xmptk" attribute that is extracted as the XMPToolkit tag. When writing,
750
+ the XMPToolkit tag is automatically generated by ExifTool unless
751
+ specifically set to another value.
752
+ },
753
+ xmptk => { Name => 'XMPToolkit', Protected => 1 },
754
+ );
755
+
756
+ # Dublin Core namespace properties (dc)
757
+ %Image::ExifTool::XMP::dc = (
758
+ %xmpTableDefaults,
759
+ GROUPS => { 1 => 'XMP-dc', 2 => 'Other' },
760
+ NAMESPACE => 'dc',
761
+ TABLE_DESC => 'XMP Dublin Core',
762
+ NOTES => 'Dublin Core namespace tags.',
763
+ contributor => { Groups => { 2 => 'Author' }, List => 'Bag' },
764
+ coverage => { },
765
+ creator => { Groups => { 2 => 'Author' }, List => 'Seq' },
766
+ date => { Groups => { 2 => 'Time' }, List => 'Seq', %dateTimeInfo },
767
+ description => { Groups => { 2 => 'Image' }, Writable => 'lang-alt' },
768
+ 'format' => { Groups => { 2 => 'Image' } },
769
+ identifier => { Groups => { 2 => 'Image' } },
770
+ language => { List => 'Bag' },
771
+ publisher => { Groups => { 2 => 'Author' }, List => 'Bag' },
772
+ relation => { List => 'Bag' },
773
+ rights => { Groups => { 2 => 'Author' }, Writable => 'lang-alt' },
774
+ source => { Groups => { 2 => 'Author' }, Avoid => 1 },
775
+ subject => { Groups => { 2 => 'Image' }, List => 'Bag' },
776
+ title => { Groups => { 2 => 'Image' }, Writable => 'lang-alt' },
777
+ type => { Groups => { 2 => 'Image' }, List => 'Bag' },
778
+ );
779
+
780
+ # XMP namespace properties (xmp, xap)
781
+ %Image::ExifTool::XMP::xmp = (
782
+ %xmpTableDefaults,
783
+ GROUPS => { 1 => 'XMP-xmp', 2 => 'Image' },
784
+ NAMESPACE => 'xmp',
785
+ NOTES => q{
786
+ XMP namespace tags. If the older "xap", "xapBJ", "xapMM" or "xapRights"
787
+ namespace prefixes are found, they are translated to the newer "xmp",
788
+ "xmpBJ", "xmpMM" and "xmpRights" prefixes for use in family 1 group names.
789
+ },
790
+ Advisory => { List => 'Bag', Notes => 'deprecated' },
791
+ BaseURL => { },
792
+ # (date/time tags not as reliable as EXIF)
793
+ CreateDate => { Groups => { 2 => 'Time' }, %dateTimeInfo, Priority => 0 },
794
+ CreatorTool => { },
795
+ Identifier => { Avoid => 1, List => 'Bag' },
796
+ Label => { },
797
+ MetadataDate=> { Groups => { 2 => 'Time' }, %dateTimeInfo },
798
+ ModifyDate => { Groups => { 2 => 'Time' }, %dateTimeInfo, Priority => 0 },
799
+ Nickname => { },
800
+ Rating => { Writable => 'real', Notes => 'a value from 0 to 5, or -1 for "rejected"' },
801
+ Thumbnails => {
802
+ FlatName => 'Thumbnail',
803
+ Struct => \%sThumbnail,
804
+ List => 'Alt',
805
+ },
806
+ # the following written by Adobe InDesign, not part of XMP spec:
807
+ PageInfo => {
808
+ FlatName => 'PageImage',
809
+ Struct => \%sPageInfo,
810
+ List => 'Seq',
811
+ },
812
+ PageInfoImage => { Name => 'PageImage', Flat => 1 },
813
+ Title => { Avoid => 1, Notes => 'non-standard', Writable => 'lang-alt' }, #11
814
+ Author => { Avoid => 1, Notes => 'non-standard', Groups => { 2 => 'Author' } }, #11
815
+ Keywords => { Avoid => 1, Notes => 'non-standard' }, #11
816
+ Description => { Avoid => 1, Notes => 'non-standard', Writable => 'lang-alt' }, #11
817
+ Format => { Avoid => 1, Notes => 'non-standard' }, #11
818
+ );
819
+
820
+ # XMP Rights Management namespace properties (xmpRights, xapRights)
821
+ %Image::ExifTool::XMP::xmpRights = (
822
+ %xmpTableDefaults,
823
+ GROUPS => { 1 => 'XMP-xmpRights', 2 => 'Author' },
824
+ NAMESPACE => 'xmpRights',
825
+ NOTES => 'XMP Rights Management namespace tags.',
826
+ Certificate => { },
827
+ Marked => { Writable => 'boolean' },
828
+ Owner => { List => 'Bag' },
829
+ UsageTerms => { Writable => 'lang-alt' },
830
+ WebStatement => { },
831
+ );
832
+
833
+ # XMP Note namespace properties (xmpNote)
834
+ %Image::ExifTool::XMP::xmpNote = (
835
+ %xmpTableDefaults,
836
+ GROUPS => { 1 => 'XMP-xmpNote' },
837
+ NAMESPACE => 'xmpNote',
838
+ NOTES => 'XMP Note namespace tags.',
839
+ HasExtendedXMP => { Writable => 'boolean', Protected => 2 },
840
+ );
841
+
842
+ # XMP xmpMM ManifestItem struct (ref PH, written by Adobe PDF library 8.0)
843
+ my %sManifestItem = (
844
+ STRUCT_NAME => 'ManifestItem',
845
+ NAMESPACE => 'stMfs',
846
+ linkForm => { },
847
+ placedXResolution => { Namespace => 'xmpMM', Writable => 'real' },
848
+ placedYResolution => { Namespace => 'xmpMM', Writable => 'real' },
849
+ placedResolutionUnit=> { Namespace => 'xmpMM' },
850
+ reference => { Struct => \%sResourceRef },
851
+ );
852
+
853
+ # the xmpMM Pantry
854
+ my %sPantryItem = (
855
+ STRUCT_NAME => 'PantryItem',
856
+ NAMESPACE => undef, # stores any top-level XMP tags
857
+ NOTES => q{
858
+ This structure must have an InstanceID field, but may also contain any other
859
+ XMP properties.
860
+ },
861
+ InstanceID => { Namespace => 'xmpMM' },
862
+ );
863
+
864
+ # XMP Media Management namespace properties (xmpMM, xapMM)
865
+ %Image::ExifTool::XMP::xmpMM = (
866
+ %xmpTableDefaults,
867
+ GROUPS => { 1 => 'XMP-xmpMM', 2 => 'Other' },
868
+ NAMESPACE => 'xmpMM',
869
+ TABLE_DESC => 'XMP Media Management',
870
+ NOTES => 'XMP Media Management namespace tags.',
871
+ DerivedFrom => { Struct => \%sResourceRef },
872
+ DocumentID => { },
873
+ History => { Struct => \%sResourceEvent, List => 'Seq' },
874
+ # we treat these like list items since History is a list
875
+ Ingredients => { Struct => \%sResourceRef, List => 'Bag' },
876
+ InstanceID => { }, #PH (CS3)
877
+ ManagedFrom => { Struct => \%sResourceRef },
878
+ Manager => { Groups => { 2 => 'Author' } },
879
+ ManageTo => { Groups => { 2 => 'Author' } },
880
+ ManageUI => { },
881
+ ManagerVariant => { },
882
+ Manifest => { Struct => \%sManifestItem, List => 'Bag' },
883
+ OriginalDocumentID=> { },
884
+ Pantry => { Struct => \%sPantryItem, List => 'Bag' },
885
+ PreservedFileName => { }, # undocumented
886
+ RenditionClass => { },
887
+ RenditionParams => { },
888
+ VersionID => { },
889
+ Versions => { Struct => \%sVersion, List => 'Seq' },
890
+ LastURL => { }, # (deprecated)
891
+ RenditionOf => { Struct => \%sResourceRef }, # (deprecated)
892
+ SaveID => { Writable => 'integer' }, # (deprecated)
893
+ subject => { List => 'Seq', Avoid => 1, Notes => 'undocumented' },
894
+ );
895
+
896
+ # XMP Basic Job Ticket namespace properties (xmpBJ, xapBJ)
897
+ %Image::ExifTool::XMP::xmpBJ = (
898
+ %xmpTableDefaults,
899
+ GROUPS => { 1 => 'XMP-xmpBJ', 2 => 'Other' },
900
+ NAMESPACE => 'xmpBJ',
901
+ TABLE_DESC => 'XMP Basic Job Ticket',
902
+ NOTES => 'XMP Basic Job Ticket namespace tags.',
903
+ # Note: JobRef is a List of structures. To accomplish this, we set the XMP
904
+ # List=>'Bag', but since SubDirectory is defined, this tag isn't writable
905
+ # directly. Then we need to set List=>1 for the members so the Writer logic
906
+ # will allow us to add list items.
907
+ JobRef => { Struct => \%sJobRef, List => 'Bag' },
908
+ );
909
+
910
+ # XMP Paged-Text namespace properties (xmpTPg)
911
+ %Image::ExifTool::XMP::xmpTPg = (
912
+ %xmpTableDefaults,
913
+ GROUPS => { 1 => 'XMP-xmpTPg', 2 => 'Image' },
914
+ NAMESPACE => 'xmpTPg',
915
+ TABLE_DESC => 'XMP Paged-Text',
916
+ NOTES => 'XMP Paged-Text namespace tags.',
917
+ MaxPageSize => { Struct => \%sDimensions },
918
+ NPages => { Writable => 'integer' },
919
+ Fonts => {
920
+ FlatName => '',
921
+ Struct => \%sFont,
922
+ List => 'Bag',
923
+ },
924
+ FontsVersionString => { Name => 'FontVersion', Flat => 1 },
925
+ FontsComposite => { Name => 'FontComposite', Flat => 1 },
926
+ Colorants => {
927
+ FlatName => 'Colorant',
928
+ Struct => \%sColorant,
929
+ List => 'Seq',
930
+ },
931
+ PlateNames => { List => 'Seq' },
932
+ );
933
+
934
+ # PDF namespace properties (pdf)
935
+ %Image::ExifTool::XMP::pdf = (
936
+ %xmpTableDefaults,
937
+ GROUPS => { 1 => 'XMP-pdf', 2 => 'Image' },
938
+ NAMESPACE => 'pdf',
939
+ TABLE_DESC => 'XMP PDF',
940
+ NOTES => q{
941
+ Adobe PDF namespace tags. The official XMP specification defines only
942
+ Keywords, PDFVersion, Producer and Trapped. The other tags are included
943
+ because they have been observed in PDF files, but some are avoided when
944
+ writing due to name conflicts with other XMP namespaces.
945
+ },
946
+ Author => { Groups => { 2 => 'Author' } }, #PH
947
+ ModDate => { Groups => { 2 => 'Time' }, %dateTimeInfo }, #PH
948
+ CreationDate=> { Groups => { 2 => 'Time' }, %dateTimeInfo }, #PH
949
+ Creator => { Groups => { 2 => 'Author' }, Avoid => 1 },
950
+ Copyright => { Groups => { 2 => 'Author' }, Avoid => 1 }, #PH
951
+ Marked => { Avoid => 1, Writable => 'boolean' }, #PH
952
+ Subject => { Avoid => 1 },
953
+ Title => { Avoid => 1 },
954
+ Trapped => { #PH
955
+ # remove leading '/' from '/True' or '/False'
956
+ ValueConv => '$val=~s{^/}{}; $val',
957
+ ValueConvInv => '"/$val"',
958
+ PrintConv => { True => 'True', False => 'False', Unknown => 'Unknown' },
959
+ },
960
+ Keywords => { Priority => 0 },
961
+ PDFVersion => { },
962
+ Producer => { Groups => { 2 => 'Author' } },
963
+ );
964
+
965
+ # PDF extension namespace properties (pdfx)
966
+ %Image::ExifTool::XMP::pdfx = (
967
+ %xmpTableDefaults,
968
+ GROUPS => { 1 => 'XMP-pdfx', 2 => 'Document' },
969
+ NAMESPACE => 'pdfx',
970
+ NOTES => q{
971
+ PDF extension tags. This namespace is used to store application-defined PDF
972
+ information, so there are no pre-defined tags. User-defined tags must be
973
+ created to enable writing of XMP-pdfx information.
974
+ },
975
+ );
976
+
977
+ # Photoshop namespace properties (photoshop)
978
+ %Image::ExifTool::XMP::photoshop = (
979
+ %xmpTableDefaults,
980
+ GROUPS => { 1 => 'XMP-photoshop', 2 => 'Image' },
981
+ NAMESPACE => 'photoshop',
982
+ TABLE_DESC => 'XMP Photoshop',
983
+ NOTES => 'Adobe Photoshop namespace tags.',
984
+ AuthorsPosition => { Groups => { 2 => 'Author' } },
985
+ CaptionWriter => { Groups => { 2 => 'Author' } },
986
+ Category => { },
987
+ City => { Groups => { 2 => 'Location' } },
988
+ ColorMode => {
989
+ Writable => 'integer', # (as of July 2010 spec, courtesy of yours truly)
990
+ PrintConvColumns => 2,
991
+ PrintConv => {
992
+ 0 => 'Bitmap',
993
+ 1 => 'Grayscale',
994
+ 2 => 'Indexed',
995
+ 3 => 'RGB',
996
+ 4 => 'CMYK',
997
+ 7 => 'Multichannel',
998
+ 8 => 'Duotone',
999
+ 9 => 'Lab',
1000
+ },
1001
+ },
1002
+ Country => { Groups => { 2 => 'Location' } },
1003
+ Credit => { Groups => { 2 => 'Author' } },
1004
+ DateCreated => { Groups => { 2 => 'Time' }, %dateTimeInfo },
1005
+ DocumentAncestors => {
1006
+ FlatName => 'Document',
1007
+ List => 'Bag',
1008
+ Struct => {
1009
+ STRUCT_NAME => 'Ancestor',
1010
+ NAMESPACE => 'photoshop',
1011
+ AncestorID => { },
1012
+ },
1013
+ },
1014
+ Headline => { },
1015
+ History => { }, #PH (CS3)
1016
+ ICCProfile => { Name => 'ICCProfileName' }, #PH
1017
+ Instructions => { },
1018
+ LegacyIPTCDigest=> { }, #PH
1019
+ SidecarForExtension => { }, #PH (CS3)
1020
+ Source => { Groups => { 2 => 'Author' } },
1021
+ State => { Groups => { 2 => 'Location' } },
1022
+ # the XMP spec doesn't show SupplementalCategories as a 'Bag', but
1023
+ # that's the way Photoshop writes it [fixed in the June 2005 XMP spec].
1024
+ # Also, it is incorrectly listed as "SupplementalCategory" in the
1025
+ # IPTC Standard Photo Metadata docs (2008rev2 and July 2009rev1) - PH
1026
+ SupplementalCategories => { List => 'Bag' },
1027
+ TextLayers => {
1028
+ FlatName => 'Text',
1029
+ List => 'Seq',
1030
+ Struct => {
1031
+ STRUCT_NAME => 'Layer',
1032
+ NAMESPACE => 'photoshop',
1033
+ LayerName => { },
1034
+ LayerText => { },
1035
+ },
1036
+ },
1037
+ TransmissionReference => { },
1038
+ Urgency => {
1039
+ Writable => 'integer',
1040
+ Notes => 'should be in the range 1-8 to conform with the XMP spec',
1041
+ PrintConv => { # (same values as IPTC:Urgency)
1042
+ 0 => '0 (reserved)', # (not standard XMP)
1043
+ 1 => '1 (most urgent)',
1044
+ 2 => 2,
1045
+ 3 => 3,
1046
+ 4 => 4,
1047
+ 5 => '5 (normal urgency)',
1048
+ 6 => 6,
1049
+ 7 => 7,
1050
+ 8 => '8 (least urgent)',
1051
+ 9 => '9 (user-defined priority)', # (not standard XMP)
1052
+ },
1053
+ },
1054
+ EmbeddedXMPDigest => { }, #PH (LR5)
1055
+ );
1056
+
1057
+ # Photoshop Camera Raw namespace properties (crs) - (ref 8,PH)
1058
+ %Image::ExifTool::XMP::crs = (
1059
+ %xmpTableDefaults,
1060
+ GROUPS => { 1 => 'XMP-crs', 2 => 'Image' },
1061
+ NAMESPACE => 'crs',
1062
+ TABLE_DESC => 'Photoshop Camera Raw namespace',
1063
+ NOTES => q{
1064
+ Photoshop Camera Raw namespace tags. It is a shame that Adobe pollutes the
1065
+ metadata space with these incredibly bulky image editing parameters.
1066
+ },
1067
+ AlreadyApplied => { Writable => 'boolean' }, #PH (written by LightRoom beta 4.1)
1068
+ AutoBrightness => { Writable => 'boolean' },
1069
+ AutoContrast => { Writable => 'boolean' },
1070
+ AutoExposure => { Writable => 'boolean' },
1071
+ AutoShadows => { Writable => 'boolean' },
1072
+ BlueHue => { Writable => 'integer' },
1073
+ BlueSaturation => { Writable => 'integer' },
1074
+ Brightness => { Writable => 'integer' },
1075
+ CameraProfile => { },
1076
+ ChromaticAberrationB=> { Writable => 'integer' },
1077
+ ChromaticAberrationR=> { Writable => 'integer' },
1078
+ ColorNoiseReduction => { Writable => 'integer' },
1079
+ Contrast => { Writable => 'integer', Avoid => 1 },
1080
+ Converter => { }, #PH guess (found in EXIF)
1081
+ CropTop => { Writable => 'real' },
1082
+ CropLeft => { Writable => 'real' },
1083
+ CropBottom => { Writable => 'real' },
1084
+ CropRight => { Writable => 'real' },
1085
+ CropAngle => { Writable => 'real' },
1086
+ CropWidth => { Writable => 'real' },
1087
+ CropHeight => { Writable => 'real' },
1088
+ CropUnits => {
1089
+ Writable => 'integer',
1090
+ PrintConv => {
1091
+ 0 => 'pixels',
1092
+ 1 => 'inches',
1093
+ 2 => 'cm',
1094
+ },
1095
+ },
1096
+ Exposure => { Writable => 'real' },
1097
+ GreenHue => { Writable => 'integer' },
1098
+ GreenSaturation => { Writable => 'integer' },
1099
+ HasCrop => { Writable => 'boolean' },
1100
+ HasSettings => { Writable => 'boolean' },
1101
+ LuminanceSmoothing => { Writable => 'integer' },
1102
+ MoireFilter => { PrintConv => { Off=>'Off', On=>'On' } },
1103
+ RawFileName => { },
1104
+ RedHue => { Writable => 'integer' },
1105
+ RedSaturation => { Writable => 'integer' },
1106
+ Saturation => { Writable => 'integer', Avoid => 1 },
1107
+ Shadows => { Writable => 'integer' },
1108
+ ShadowTint => { Writable => 'integer' },
1109
+ Sharpness => { Writable => 'integer', Avoid => 1 },
1110
+ Smoothness => { Writable => 'integer' },
1111
+ Temperature => { Writable => 'integer', Avoid => 1, Name => 'ColorTemperature' },
1112
+ Tint => { Writable => 'integer' },
1113
+ ToneCurve => { List => 'Seq' },
1114
+ ToneCurveName => {
1115
+ PrintConv => {
1116
+ Linear => 'Linear',
1117
+ 'Medium Contrast' => 'Medium Contrast',
1118
+ 'Strong Contrast' => 'Strong Contrast',
1119
+ Custom => 'Custom',
1120
+ },
1121
+ },
1122
+ Version => { },
1123
+ VignetteAmount => { Writable => 'integer' },
1124
+ VignetteMidpoint=> { Writable => 'integer' },
1125
+ WhiteBalance => {
1126
+ Avoid => 1,
1127
+ PrintConv => {
1128
+ 'As Shot' => 'As Shot',
1129
+ Auto => 'Auto',
1130
+ Daylight => 'Daylight',
1131
+ Cloudy => 'Cloudy',
1132
+ Shade => 'Shade',
1133
+ Tungsten => 'Tungsten',
1134
+ Fluorescent => 'Fluorescent',
1135
+ Flash => 'Flash',
1136
+ Custom => 'Custom',
1137
+ },
1138
+ },
1139
+ # new tags observed in Adobe Lightroom output - PH
1140
+ CameraProfileDigest => { },
1141
+ Clarity => { Writable => 'integer' },
1142
+ ConvertToGrayscale => { Writable => 'boolean' },
1143
+ Defringe => { Writable => 'integer' },
1144
+ FillLight => { Writable => 'integer' },
1145
+ HighlightRecovery => { Writable => 'integer' },
1146
+ HueAdjustmentAqua => { Writable => 'integer' },
1147
+ HueAdjustmentBlue => { Writable => 'integer' },
1148
+ HueAdjustmentGreen => { Writable => 'integer' },
1149
+ HueAdjustmentMagenta => { Writable => 'integer' },
1150
+ HueAdjustmentOrange => { Writable => 'integer' },
1151
+ HueAdjustmentPurple => { Writable => 'integer' },
1152
+ HueAdjustmentRed => { Writable => 'integer' },
1153
+ HueAdjustmentYellow => { Writable => 'integer' },
1154
+ IncrementalTemperature => { Writable => 'integer' },
1155
+ IncrementalTint => { Writable => 'integer' },
1156
+ LuminanceAdjustmentAqua => { Writable => 'integer' },
1157
+ LuminanceAdjustmentBlue => { Writable => 'integer' },
1158
+ LuminanceAdjustmentGreen => { Writable => 'integer' },
1159
+ LuminanceAdjustmentMagenta => { Writable => 'integer' },
1160
+ LuminanceAdjustmentOrange => { Writable => 'integer' },
1161
+ LuminanceAdjustmentPurple => { Writable => 'integer' },
1162
+ LuminanceAdjustmentRed => { Writable => 'integer' },
1163
+ LuminanceAdjustmentYellow => { Writable => 'integer' },
1164
+ ParametricDarks => { Writable => 'integer' },
1165
+ ParametricHighlights => { Writable => 'integer' },
1166
+ ParametricHighlightSplit => { Writable => 'integer' },
1167
+ ParametricLights => { Writable => 'integer' },
1168
+ ParametricMidtoneSplit => { Writable => 'integer' },
1169
+ ParametricShadows => { Writable => 'integer' },
1170
+ ParametricShadowSplit => { Writable => 'integer' },
1171
+ SaturationAdjustmentAqua => { Writable => 'integer' },
1172
+ SaturationAdjustmentBlue => { Writable => 'integer' },
1173
+ SaturationAdjustmentGreen => { Writable => 'integer' },
1174
+ SaturationAdjustmentMagenta => { Writable => 'integer' },
1175
+ SaturationAdjustmentOrange => { Writable => 'integer' },
1176
+ SaturationAdjustmentPurple => { Writable => 'integer' },
1177
+ SaturationAdjustmentRed => { Writable => 'integer' },
1178
+ SaturationAdjustmentYellow => { Writable => 'integer' },
1179
+ SharpenDetail => { Writable => 'integer' },
1180
+ SharpenEdgeMasking => { Writable => 'integer' },
1181
+ SharpenRadius => { Writable => 'real' },
1182
+ SplitToningBalance => { Writable => 'integer' },
1183
+ SplitToningHighlightHue => { Writable => 'integer' },
1184
+ SplitToningHighlightSaturation => { Writable => 'integer' },
1185
+ SplitToningShadowHue => { Writable => 'integer' },
1186
+ SplitToningShadowSaturation => { Writable => 'integer' },
1187
+ Vibrance => { Writable => 'integer' },
1188
+ # new tags written by LR 1.4 (not sure in what version they first appeared)
1189
+ GrayMixerRed => { Writable => 'integer' },
1190
+ GrayMixerOrange => { Writable => 'integer' },
1191
+ GrayMixerYellow => { Writable => 'integer' },
1192
+ GrayMixerGreen => { Writable => 'integer' },
1193
+ GrayMixerAqua => { Writable => 'integer' },
1194
+ GrayMixerBlue => { Writable => 'integer' },
1195
+ GrayMixerPurple => { Writable => 'integer' },
1196
+ GrayMixerMagenta => { Writable => 'integer' },
1197
+ RetouchInfo => { List => 'Seq' },
1198
+ RedEyeInfo => { List => 'Seq' },
1199
+ # new tags written by LR 2.0 (ref PH)
1200
+ CropUnit => { # was the XMP documentation wrong with "CropUnits"??
1201
+ Writable => 'integer',
1202
+ PrintConv => {
1203
+ 0 => 'pixels',
1204
+ 1 => 'inches',
1205
+ 2 => 'cm',
1206
+ # have seen a value of 3 here! - PH
1207
+ },
1208
+ },
1209
+ PostCropVignetteAmount => { Writable => 'integer' },
1210
+ PostCropVignetteMidpoint => { Writable => 'integer' },
1211
+ PostCropVignetteFeather => { Writable => 'integer' },
1212
+ PostCropVignetteRoundness => { Writable => 'integer' },
1213
+ PostCropVignetteStyle => { Writable => 'integer' },
1214
+ # disable List behaviour of flattened Gradient/PaintBasedCorrections
1215
+ # because these are nested in lists and the flattened tags can't
1216
+ # do justice to this complex structure
1217
+ GradientBasedCorrections => {
1218
+ FlatName => 'GradientBasedCorr',
1219
+ Struct => \%sCorrection,
1220
+ List => 'Seq',
1221
+ },
1222
+ GradientBasedCorrectionsCorrectionMasks => {
1223
+ Name => 'GradientBasedCorrMasks',
1224
+ FlatName => 'GradientBasedCorrMask',
1225
+ Flat => 1
1226
+ },
1227
+ GradientBasedCorrectionsCorrectionMasksDabs => {
1228
+ Name => 'GradientBasedCorrMaskDabs',
1229
+ Flat => 1, List => 0,
1230
+ },
1231
+ PaintBasedCorrections => {
1232
+ FlatName => 'PaintCorrection',
1233
+ Struct => \%sCorrection,
1234
+ List => 'Seq',
1235
+ },
1236
+ PaintBasedCorrectionsCorrectionMasks => {
1237
+ Name => 'PaintBasedCorrectionMasks',
1238
+ FlatName => 'PaintCorrectionMask',
1239
+ Flat => 1,
1240
+ },
1241
+ PaintBasedCorrectionsCorrectionMasksDabs => {
1242
+ Name => 'PaintCorrectionMaskDabs',
1243
+ Flat => 1, List => 0,
1244
+ },
1245
+ # new tags written by LR 3 (thanks Wolfgang Guelcker)
1246
+ ProcessVersion => { },
1247
+ LensProfileEnable => { Writable => 'integer' },
1248
+ LensProfileSetup => { },
1249
+ LensProfileName => { },
1250
+ LensProfileFilename => { },
1251
+ LensProfileDigest => { },
1252
+ LensProfileDistortionScale => { Writable => 'integer' },
1253
+ LensProfileChromaticAberrationScale => { Writable => 'integer' },
1254
+ LensProfileVignettingScale => { Writable => 'integer' },
1255
+ LensManualDistortionAmount => { Writable => 'integer' },
1256
+ PerspectiveVertical => { Writable => 'integer' },
1257
+ PerspectiveHorizontal => { Writable => 'integer' },
1258
+ PerspectiveRotate => { Writable => 'real' },
1259
+ PerspectiveScale => { Writable => 'integer' },
1260
+ CropConstrainToWarp => { Writable => 'integer' },
1261
+ LuminanceNoiseReductionDetail => { Writable => 'integer' },
1262
+ LuminanceNoiseReductionContrast => { Writable => 'integer' },
1263
+ ColorNoiseReductionDetail => { Writable => 'integer' },
1264
+ GrainAmount => { Writable => 'integer' },
1265
+ GrainSize => { Writable => 'integer' },
1266
+ GrainFrequency => { Writable => 'integer' },
1267
+ # new tags written by LR4
1268
+ AutoLateralCA => { Writable => 'integer' },
1269
+ Exposure2012 => { Writable => 'real' },
1270
+ Contrast2012 => { Writable => 'integer' },
1271
+ Highlights2012 => { Writable => 'integer' },
1272
+ Shadows2012 => { Writable => 'integer' },
1273
+ Whites2012 => { Writable => 'integer' },
1274
+ Blacks2012 => { Writable => 'integer' },
1275
+ Clarity2012 => { Writable => 'integer' },
1276
+ PostCropVignetteHighlightContrast => { Writable => 'integer' },
1277
+ ToneCurveName2012 => { },
1278
+ ToneCurveRed => { List => 'Seq' },
1279
+ ToneCurveGreen => { List => 'Seq' },
1280
+ ToneCurveBlue => { List => 'Seq' },
1281
+ ToneCurvePV2012 => { List => 'Seq' },
1282
+ ToneCurvePV2012Red => { List => 'Seq' },
1283
+ ToneCurvePV2012Green => { List => 'Seq' },
1284
+ ToneCurvePV2012Blue => { List => 'Seq' },
1285
+ DefringePurpleAmount => { Writable => 'integer' },
1286
+ DefringePurpleHueLo => { Writable => 'integer' },
1287
+ DefringePurpleHueHi => { Writable => 'integer' },
1288
+ DefringeGreenAmount => { Writable => 'integer' },
1289
+ DefringeGreenHueLo => { Writable => 'integer' },
1290
+ DefringeGreenHueHi => { Writable => 'integer' },
1291
+ # new tags written by LR5
1292
+ AutoWhiteVersion => { Writable => 'integer' },
1293
+ CircularGradientBasedCorrections => {
1294
+ FlatName => 'CircGradBasedCorr',
1295
+ Struct => \%sCorrection,
1296
+ List => 'Seq',
1297
+ },
1298
+ CircularGradientBasedCorrectionsCorrectionMasks => {
1299
+ Name => 'CircGradBasedCorrMasks',
1300
+ FlatName => 'CircGradBasedCorrMask',
1301
+ Flat => 1
1302
+ },
1303
+ CircularGradientBasedCorrectionsCorrectionMasksDabs => {
1304
+ Name => 'CircGradBasedCorrMaskDabs',
1305
+ Flat => 1, List => 0,
1306
+ },
1307
+ ColorNoiseReductionSmoothness => { Writable => 'integer' },
1308
+ PerspectiveAspect => { Writable => 'integer' },
1309
+ PerspectiveUpright => { Writable => 'integer' },
1310
+ RetouchAreas => {
1311
+ FlatName => 'RetouchArea',
1312
+ Struct => \%sRetouchArea,
1313
+ List => 'Seq',
1314
+ },
1315
+ RetouchAreasMasks => {
1316
+ Name => 'RetouchAreaMasks',
1317
+ FlatName => 'RetouchAreaMask',
1318
+ Flat => 1
1319
+ },
1320
+ RetouchAreasMasksDabs => {
1321
+ Name => 'RetouchAreaMaskDabs',
1322
+ Flat => 1, List => 0,
1323
+ },
1324
+ UprightVersion => { Writable => 'integer' },
1325
+ UprightCenterMode => { Writable => 'integer' },
1326
+ UprightCenterNormX => { Writable => 'real' },
1327
+ UprightCenterNormY => { Writable => 'real' },
1328
+ UprightFocalMode => { Writable => 'integer' },
1329
+ UprightFocalLength35mm => { Writable => 'real' },
1330
+ UprightPreview => { Writable => 'boolean' },
1331
+ UprightTransformCount => { Writable => 'integer' },
1332
+ UprightDependentDigest => { },
1333
+ UprightTransform_0 => { },
1334
+ UprightTransform_1 => { },
1335
+ UprightTransform_2 => { },
1336
+ UprightTransform_3 => { },
1337
+ UprightTransform_4 => { },
1338
+ );
1339
+
1340
+ # Tiff namespace properties (tiff)
1341
+ %Image::ExifTool::XMP::tiff = (
1342
+ %xmpTableDefaults,
1343
+ GROUPS => { 1 => 'XMP-tiff', 2 => 'Image' },
1344
+ NAMESPACE => 'tiff',
1345
+ PRIORITY => 0, # not as reliable as actual TIFF tags
1346
+ TABLE_DESC => 'XMP TIFF',
1347
+ NOTES => q{
1348
+ EXIF namespace for TIFF tags. See
1349
+ L<http://www.cipa.jp/english/hyoujunka/kikaku/pdf/DC-010-2012_E.pdf> for the
1350
+ specification.
1351
+ },
1352
+ ImageWidth => { Writable => 'integer' },
1353
+ ImageLength => { Writable => 'integer', Name => 'ImageHeight' },
1354
+ BitsPerSample => { Writable => 'integer', List => 'Seq', AutoSplit => 1 },
1355
+ Compression => {
1356
+ Writable => 'integer',
1357
+ SeparateTable => 'EXIF Compression',
1358
+ PrintConv => \%Image::ExifTool::Exif::compression,
1359
+ },
1360
+ PhotometricInterpretation => {
1361
+ Writable => 'integer',
1362
+ PrintConv => \%Image::ExifTool::Exif::photometricInterpretation,
1363
+ },
1364
+ Orientation => {
1365
+ Writable => 'integer',
1366
+ PrintConv => \%Image::ExifTool::Exif::orientation,
1367
+ },
1368
+ SamplesPerPixel => { Writable => 'integer' },
1369
+ PlanarConfiguration => {
1370
+ Writable => 'integer',
1371
+ PrintConv => {
1372
+ 1 => 'Chunky',
1373
+ 2 => 'Planar',
1374
+ },
1375
+ },
1376
+ YCbCrSubSampling => {
1377
+ Writable => 'integer',
1378
+ List => 'Seq',
1379
+ # join the raw values before conversion to allow PrintConv to operate on
1380
+ # the combined string as it does for the corresponding EXIF tag
1381
+ RawJoin => 1,
1382
+ Notes => q{
1383
+ while technically this is a list-type tag, for compatibility with its EXIF
1384
+ counterpart it is written and read as a simple string
1385
+ },
1386
+ PrintConv => \%Image::ExifTool::JPEG::yCbCrSubSampling,
1387
+ },
1388
+ YCbCrPositioning => {
1389
+ Writable => 'integer',
1390
+ PrintConv => {
1391
+ 1 => 'Centered',
1392
+ 2 => 'Co-sited',
1393
+ },
1394
+ },
1395
+ XResolution => { Writable => 'rational' },
1396
+ YResolution => { Writable => 'rational' },
1397
+ ResolutionUnit => {
1398
+ Writable => 'integer',
1399
+ Notes => 'the value 1 is not standard EXIF',
1400
+ PrintConv => {
1401
+ 1 => 'None',
1402
+ 2 => 'inches',
1403
+ 3 => 'cm',
1404
+ },
1405
+ },
1406
+ TransferFunction => { Writable => 'integer', List => 'Seq', AutoSplit => 1 },
1407
+ WhitePoint => { Writable => 'rational', List => 'Seq', AutoSplit => 1 },
1408
+ PrimaryChromaticities => { Writable => 'rational', List => 'Seq', AutoSplit => 1 },
1409
+ YCbCrCoefficients => { Writable => 'rational', List => 'Seq', AutoSplit => 1 },
1410
+ ReferenceBlackWhite => { Writable => 'rational', List => 'Seq', AutoSplit => 1 },
1411
+ DateTime => { # (EXIF tag named ModifyDate, but this exists in XMP-xmp)
1412
+ Description => 'Date/Time Modified',
1413
+ Groups => { 2 => 'Time' },
1414
+ %dateTimeInfo,
1415
+ },
1416
+ ImageDescription => { Writable => 'lang-alt' },
1417
+ Make => {
1418
+ Groups => { 2 => 'Camera' },
1419
+ RawConv => '$$self{Make} ? $val : $$self{Make} = $val',
1420
+ },
1421
+ Model => {
1422
+ Groups => { 2 => 'Camera' },
1423
+ Description => 'Camera Model Name',
1424
+ RawConv => '$$self{Model} ? $val : $$self{Model} = $val',
1425
+ },
1426
+ Software => { },
1427
+ Artist => { Groups => { 2 => 'Author' } },
1428
+ Copyright => { Groups => { 2 => 'Author' }, Writable => 'lang-alt' },
1429
+ NativeDigest => { }, #PH
1430
+ );
1431
+
1432
+ # Exif namespace properties (exif)
1433
+ %Image::ExifTool::XMP::exif = (
1434
+ %xmpTableDefaults,
1435
+ GROUPS => { 1 => 'XMP-exif', 2 => 'Image' },
1436
+ NAMESPACE => 'exif',
1437
+ PRIORITY => 0, # not as reliable as actual EXIF tags
1438
+ NOTES => q{
1439
+ EXIF namespace for EXIF tags. See
1440
+ L<http://www.cipa.jp/english/hyoujunka/kikaku/pdf/DC-010-2012_E.pdf> for the
1441
+ specification.
1442
+ },
1443
+ ExifVersion => { },
1444
+ FlashpixVersion => { },
1445
+ ColorSpace => {
1446
+ Writable => 'integer',
1447
+ # (some applications incorrectly write -1 as a long integer)
1448
+ ValueConv => '$val == 0xffffffff ? 0xffff : $val',
1449
+ ValueConvInv => '$val',
1450
+ PrintConv => {
1451
+ 1 => 'sRGB',
1452
+ 2 => 'Adobe RGB',
1453
+ 0xffff => 'Uncalibrated',
1454
+ },
1455
+ },
1456
+ ComponentsConfiguration => {
1457
+ Writable => 'integer',
1458
+ List => 'Seq',
1459
+ AutoSplit => 1,
1460
+ PrintConvColumns => 2,
1461
+ PrintConv => {
1462
+ 0 => '-',
1463
+ 1 => 'Y',
1464
+ 2 => 'Cb',
1465
+ 3 => 'Cr',
1466
+ 4 => 'R',
1467
+ 5 => 'G',
1468
+ 6 => 'B',
1469
+ },
1470
+ },
1471
+ CompressedBitsPerPixel => { Writable => 'rational' },
1472
+ PixelXDimension => { Name => 'ExifImageWidth', Writable => 'integer' },
1473
+ PixelYDimension => { Name => 'ExifImageHeight', Writable => 'integer' },
1474
+ MakerNote => { },
1475
+ UserComment => { Writable => 'lang-alt' },
1476
+ RelatedSoundFile => { },
1477
+ DateTimeOriginal => {
1478
+ Description => 'Date/Time Original',
1479
+ Groups => { 2 => 'Time' },
1480
+ %dateTimeInfo,
1481
+ },
1482
+ DateTimeDigitized => { # (EXIF tag named CreateDate, but this exists in XMP-xmp)
1483
+ Description => 'Date/Time Digitized',
1484
+ Groups => { 2 => 'Time' },
1485
+ %dateTimeInfo,
1486
+ },
1487
+ ExposureTime => {
1488
+ Writable => 'rational',
1489
+ PrintConv => 'Image::ExifTool::Exif::PrintExposureTime($val)',
1490
+ PrintConvInv => 'Image::ExifTool::Exif::ConvertFraction($val)',
1491
+ },
1492
+ FNumber => {
1493
+ Writable => 'rational',
1494
+ PrintConv => 'Image::ExifTool::Exif::PrintFNumber($val)',
1495
+ PrintConvInv => '$val',
1496
+ },
1497
+ ExposureProgram => {
1498
+ Groups => { 2 => 'Camera' },
1499
+ Writable => 'integer',
1500
+ PrintConv => {
1501
+ 0 => 'Not Defined',
1502
+ 1 => 'Manual',
1503
+ 2 => 'Program AE',
1504
+ 3 => 'Aperture-priority AE',
1505
+ 4 => 'Shutter speed priority AE',
1506
+ 5 => 'Creative (Slow speed)',
1507
+ 6 => 'Action (High speed)',
1508
+ 7 => 'Portrait',
1509
+ 8 => 'Landscape',
1510
+ },
1511
+ },
1512
+ SpectralSensitivity => { Groups => { 2 => 'Camera' } },
1513
+ ISOSpeedRatings => {
1514
+ Name => 'ISO',
1515
+ Writable => 'integer',
1516
+ List => 'Seq',
1517
+ AutoSplit => 1,
1518
+ },
1519
+ OECF => {
1520
+ Name => 'Opto-ElectricConvFactor',
1521
+ FlatName => 'OECF',
1522
+ Groups => { 2 => 'Camera' },
1523
+ Struct => \%sOECF,
1524
+ },
1525
+ ShutterSpeedValue => {
1526
+ Writable => 'rational',
1527
+ ValueConv => 'abs($val)<100 ? 1/(2**$val) : 0',
1528
+ PrintConv => 'Image::ExifTool::Exif::PrintExposureTime($val)',
1529
+ ValueConvInv => '$val>0 ? -log($val)/log(2) : 0',
1530
+ PrintConvInv => 'Image::ExifTool::Exif::ConvertFraction($val)',
1531
+ },
1532
+ ApertureValue => {
1533
+ Writable => 'rational',
1534
+ ValueConv => 'sqrt(2) ** $val',
1535
+ PrintConv => 'sprintf("%.1f",$val)',
1536
+ ValueConvInv => '$val>0 ? 2*log($val)/log(2) : 0',
1537
+ PrintConvInv => '$val',
1538
+ },
1539
+ BrightnessValue => { Writable => 'rational' },
1540
+ ExposureBiasValue => {
1541
+ Name => 'ExposureCompensation',
1542
+ Writable => 'rational',
1543
+ PrintConv => 'Image::ExifTool::Exif::PrintFraction($val)',
1544
+ PrintConvInv => '$val',
1545
+ },
1546
+ MaxApertureValue => {
1547
+ Groups => { 2 => 'Camera' },
1548
+ Writable => 'rational',
1549
+ ValueConv => 'sqrt(2) ** $val',
1550
+ PrintConv => 'sprintf("%.1f",$val)',
1551
+ ValueConvInv => '$val>0 ? 2*log($val)/log(2) : 0',
1552
+ PrintConvInv => '$val',
1553
+ },
1554
+ SubjectDistance => {
1555
+ Groups => { 2 => 'Camera' },
1556
+ Writable => 'rational',
1557
+ PrintConv => '$val =~ /^(inf|undef)$/ ? $val : "$val m"',
1558
+ PrintConvInv => '$val=~s/\s*m$//;$val',
1559
+ },
1560
+ MeteringMode => {
1561
+ Groups => { 2 => 'Camera' },
1562
+ Writable => 'integer',
1563
+ PrintConv => {
1564
+ 1 => 'Average',
1565
+ 2 => 'Center-weighted average',
1566
+ 3 => 'Spot',
1567
+ 4 => 'Multi-spot',
1568
+ 5 => 'Multi-segment',
1569
+ 6 => 'Partial',
1570
+ 255 => 'Other',
1571
+ },
1572
+ },
1573
+ LightSource => {
1574
+ Groups => { 2 => 'Camera' },
1575
+ SeparateTable => 'EXIF LightSource',
1576
+ PrintConv => \%Image::ExifTool::Exif::lightSource,
1577
+ },
1578
+ Flash => {
1579
+ Groups => { 2 => 'Camera' },
1580
+ Struct => {
1581
+ STRUCT_NAME => 'Flash',
1582
+ NAMESPACE => 'exif',
1583
+ Fired => { Writable => 'boolean', %boolConv },
1584
+ Return => {
1585
+ Writable => 'integer',
1586
+ PrintConv => {
1587
+ 0 => 'No return detection',
1588
+ 2 => 'Return not detected',
1589
+ 3 => 'Return detected',
1590
+ },
1591
+ },
1592
+ Mode => {
1593
+ Writable => 'integer',
1594
+ PrintConv => {
1595
+ 0 => 'Unknown',
1596
+ 1 => 'On',
1597
+ 2 => 'Off',
1598
+ 3 => 'Auto',
1599
+ },
1600
+ },
1601
+ Function => { Writable => 'boolean', %boolConv },
1602
+ RedEyeMode => { Writable => 'boolean', %boolConv },
1603
+ },
1604
+ },
1605
+ FocalLength=> {
1606
+ Groups => { 2 => 'Camera' },
1607
+ Writable => 'rational',
1608
+ PrintConv => 'sprintf("%.1f mm",$val)',
1609
+ PrintConvInv => '$val=~s/\s*mm$//;$val',
1610
+ },
1611
+ SubjectArea => { Writable => 'integer', List => 'Seq', AutoSplit => 1 },
1612
+ FlashEnergy => { Groups => { 2 => 'Camera' }, Writable => 'rational' },
1613
+ SpatialFrequencyResponse => {
1614
+ Groups => { 2 => 'Camera' },
1615
+ Struct => \%sOECF,
1616
+ },
1617
+ FocalPlaneXResolution => { Groups => { 2 => 'Camera' }, Writable => 'rational' },
1618
+ FocalPlaneYResolution => { Groups => { 2 => 'Camera' }, Writable => 'rational' },
1619
+ FocalPlaneResolutionUnit => {
1620
+ Groups => { 2 => 'Camera' },
1621
+ Writable => 'integer',
1622
+ Notes => 'values 1, 4 and 5 are not standard EXIF',
1623
+ PrintConv => {
1624
+ 1 => 'None', # (not standard EXIF)
1625
+ 2 => 'inches',
1626
+ 3 => 'cm',
1627
+ 4 => 'mm', # (not standard EXIF)
1628
+ 5 => 'um', # (not standard EXIF)
1629
+ },
1630
+ },
1631
+ SubjectLocation => { Writable => 'integer', List => 'Seq', AutoSplit => 1 },
1632
+ ExposureIndex => { Writable => 'rational' },
1633
+ SensingMethod => {
1634
+ Groups => { 2 => 'Camera' },
1635
+ Writable => 'integer',
1636
+ Notes => 'values 1 and 6 are not standard EXIF',
1637
+ PrintConv => {
1638
+ 1 => 'Monochrome area', # (not standard EXIF)
1639
+ 2 => 'One-chip color area',
1640
+ 3 => 'Two-chip color area',
1641
+ 4 => 'Three-chip color area',
1642
+ 5 => 'Color sequential area',
1643
+ 6 => 'Monochrome linear', # (not standard EXIF)
1644
+ 7 => 'Trilinear',
1645
+ 8 => 'Color sequential linear',
1646
+ },
1647
+ },
1648
+ FileSource => {
1649
+ Writable => 'integer',
1650
+ PrintConv => {
1651
+ 1 => 'Film Scanner',
1652
+ 2 => 'Reflection Print Scanner',
1653
+ 3 => 'Digital Camera',
1654
+ }
1655
+ },
1656
+ SceneType => { Writable => 'integer', PrintConv => { 1 => 'Directly photographed' } },
1657
+ CFAPattern => {
1658
+ Struct => {
1659
+ STRUCT_NAME => 'CFAPattern',
1660
+ NAMESPACE => 'exif',
1661
+ Columns => { Writable => 'integer' },
1662
+ Rows => { Writable => 'integer' },
1663
+ Values => { Writable => 'integer', List => 'Seq' },
1664
+ },
1665
+ },
1666
+ CustomRendered => {
1667
+ Writable => 'integer',
1668
+ PrintConv => {
1669
+ 0 => 'Normal',
1670
+ 1 => 'Custom',
1671
+ },
1672
+ },
1673
+ ExposureMode => {
1674
+ Groups => { 2 => 'Camera' },
1675
+ Writable => 'integer',
1676
+ PrintConv => {
1677
+ 0 => 'Auto',
1678
+ 1 => 'Manual',
1679
+ 2 => 'Auto bracket',
1680
+ },
1681
+ },
1682
+ WhiteBalance => {
1683
+ Groups => { 2 => 'Camera' },
1684
+ Writable => 'integer',
1685
+ PrintConv => {
1686
+ 0 => 'Auto',
1687
+ 1 => 'Manual',
1688
+ },
1689
+ },
1690
+ DigitalZoomRatio => { Writable => 'rational' },
1691
+ FocalLengthIn35mmFilm => {
1692
+ Name => 'FocalLengthIn35mmFormat',
1693
+ Writable => 'integer',
1694
+ Groups => { 2 => 'Camera' },
1695
+ PrintConv => '"$val mm"',
1696
+ PrintConvInv => '$val=~s/\s*mm$//;$val',
1697
+ },
1698
+ SceneCaptureType => {
1699
+ Groups => { 2 => 'Camera' },
1700
+ Writable => 'integer',
1701
+ PrintConv => {
1702
+ 0 => 'Standard',
1703
+ 1 => 'Landscape',
1704
+ 2 => 'Portrait',
1705
+ 3 => 'Night',
1706
+ },
1707
+ },
1708
+ GainControl => {
1709
+ Groups => { 2 => 'Camera' },
1710
+ Writable => 'integer',
1711
+ PrintConv => {
1712
+ 0 => 'None',
1713
+ 1 => 'Low gain up',
1714
+ 2 => 'High gain up',
1715
+ 3 => 'Low gain down',
1716
+ 4 => 'High gain down',
1717
+ },
1718
+ },
1719
+ Contrast => {
1720
+ Groups => { 2 => 'Camera' },
1721
+ Writable => 'integer',
1722
+ PrintConv => {
1723
+ 0 => 'Normal',
1724
+ 1 => 'Low',
1725
+ 2 => 'High',
1726
+ },
1727
+ PrintConvInv => 'Image::ExifTool::Exif::ConvertParameter($val)',
1728
+ },
1729
+ Saturation => {
1730
+ Groups => { 2 => 'Camera' },
1731
+ Writable => 'integer',
1732
+ PrintConv => {
1733
+ 0 => 'Normal',
1734
+ 1 => 'Low',
1735
+ 2 => 'High',
1736
+ },
1737
+ PrintConvInv => 'Image::ExifTool::Exif::ConvertParameter($val)',
1738
+ },
1739
+ Sharpness => {
1740
+ Groups => { 2 => 'Camera' },
1741
+ Writable => 'integer',
1742
+ PrintConv => {
1743
+ 0 => 'Normal',
1744
+ 1 => 'Soft',
1745
+ 2 => 'Hard',
1746
+ },
1747
+ PrintConvInv => 'Image::ExifTool::Exif::ConvertParameter($val)',
1748
+ },
1749
+ DeviceSettingDescription => {
1750
+ Groups => { 2 => 'Camera' },
1751
+ Struct => {
1752
+ STRUCT_NAME => 'DeviceSettings',
1753
+ NAMESPACE => 'exif',
1754
+ Columns => { Writable => 'integer' },
1755
+ Rows => { Writable => 'integer' },
1756
+ Settings => { List => 'Seq' },
1757
+ },
1758
+ },
1759
+ SubjectDistanceRange => {
1760
+ Groups => { 2 => 'Camera' },
1761
+ Writable => 'integer',
1762
+ PrintConv => {
1763
+ 0 => 'Unknown',
1764
+ 1 => 'Macro',
1765
+ 2 => 'Close',
1766
+ 3 => 'Distant',
1767
+ },
1768
+ },
1769
+ ImageUniqueID => { },
1770
+ GPSVersionID => { Groups => { 2 => 'Location' } },
1771
+ GPSLatitude => { Groups => { 2 => 'Location' }, %latConv },
1772
+ GPSLongitude => { Groups => { 2 => 'Location' }, %longConv },
1773
+ GPSAltitudeRef => {
1774
+ Groups => { 2 => 'Location' },
1775
+ Writable => 'integer',
1776
+ PrintConv => {
1777
+ 0 => 'Above Sea Level',
1778
+ 1 => 'Below Sea Level',
1779
+ },
1780
+ },
1781
+ GPSAltitude => {
1782
+ Groups => { 2 => 'Location' },
1783
+ Writable => 'rational',
1784
+ RawConv => 'require Image::ExifTool::GPS; $val', # to load Composite tags and routines
1785
+ # extricate unsigned decimal number from string
1786
+ ValueConvInv => '$val=~/((?=\d|\.\d)\d*(?:\.\d*)?)/ ? $1 : undef',
1787
+ PrintConv => '$val =~ /^(inf|undef)$/ ? $val : "$val m"',
1788
+ PrintConvInv => '$val=~s/\s*m$//;$val',
1789
+ },
1790
+ GPSTimeStamp => {
1791
+ Name => 'GPSDateTime',
1792
+ Description => 'GPS Date/Time',
1793
+ Groups => { 2 => 'Time' },
1794
+ Notes => q{
1795
+ a date/time tag called GPSTimeStamp by the XMP specification. This tag is
1796
+ renamed here to prevent direct copy from EXIF:GPSTimeStamp which is a
1797
+ time-only tag. Instead, the value of this tag should be taken from
1798
+ Composite:GPSDateTime when copying from EXIF
1799
+ },
1800
+ %dateTimeInfo,
1801
+ },
1802
+ GPSSatellites => { Groups => { 2 => 'Location' } },
1803
+ GPSStatus => {
1804
+ Groups => { 2 => 'Location' },
1805
+ PrintConv => {
1806
+ A => 'Measurement Active',
1807
+ V => 'Measurement Void',
1808
+ },
1809
+ },
1810
+ GPSMeasureMode => {
1811
+ Groups => { 2 => 'Location' },
1812
+ Writable => 'integer',
1813
+ PrintConv => {
1814
+ 2 => '2-Dimensional',
1815
+ 3 => '3-Dimensional',
1816
+ },
1817
+ },
1818
+ GPSDOP => { Groups => { 2 => 'Location' }, Writable => 'rational' },
1819
+ GPSSpeedRef => {
1820
+ Groups => { 2 => 'Location' },
1821
+ PrintConv => {
1822
+ K => 'km/h',
1823
+ M => 'mph',
1824
+ N => 'knots',
1825
+ },
1826
+ },
1827
+ GPSSpeed => { Groups => { 2 => 'Location' }, Writable => 'rational' },
1828
+ GPSTrackRef => {
1829
+ Groups => { 2 => 'Location' },
1830
+ PrintConv => {
1831
+ M => 'Magnetic North',
1832
+ T => 'True North',
1833
+ },
1834
+ },
1835
+ GPSTrack => { Groups => { 2 => 'Location' }, Writable => 'rational' },
1836
+ GPSImgDirectionRef => {
1837
+ PrintConv => {
1838
+ M => 'Magnetic North',
1839
+ T => 'True North',
1840
+ },
1841
+ },
1842
+ GPSImgDirection => { Groups => { 2 => 'Location' }, Writable => 'rational' },
1843
+ GPSMapDatum => { Groups => { 2 => 'Location' } },
1844
+ GPSDestLatitude => { Groups => { 2 => 'Location' }, %latConv },
1845
+ GPSDestLongitude=> { Groups => { 2 => 'Location' }, %longConv },
1846
+ GPSDestBearingRef => {
1847
+ Groups => { 2 => 'Location' },
1848
+ PrintConv => {
1849
+ M => 'Magnetic North',
1850
+ T => 'True North',
1851
+ },
1852
+ },
1853
+ GPSDestBearing => { Groups => { 2 => 'Location' }, Writable => 'rational' },
1854
+ GPSDestDistanceRef => {
1855
+ Groups => { 2 => 'Location' },
1856
+ PrintConv => {
1857
+ K => 'Kilometers',
1858
+ M => 'Miles',
1859
+ N => 'Nautical Miles',
1860
+ },
1861
+ },
1862
+ GPSDestDistance => {
1863
+ Groups => { 2 => 'Location' },
1864
+ Writable => 'rational',
1865
+ },
1866
+ GPSProcessingMethod => { Groups => { 2 => 'Location' } },
1867
+ GPSAreaInformation => { Groups => { 2 => 'Location' } },
1868
+ GPSDifferential => {
1869
+ Groups => { 2 => 'Location' },
1870
+ Writable => 'integer',
1871
+ PrintConv => {
1872
+ 0 => 'No Correction',
1873
+ 1 => 'Differential Corrected',
1874
+ },
1875
+ },
1876
+ GPSHPositioningError => { #12
1877
+ Description => 'GPS Horizontal Positioning Error',
1878
+ Groups => { 2 => 'Location' },
1879
+ Writable => 'rational',
1880
+ PrintConv => '"$val m"',
1881
+ PrintConvInv => '$val=~s/\s*m$//; $val',
1882
+ },
1883
+ NativeDigest => { }, #PH
1884
+ );
1885
+
1886
+ # Exif extended properties (exifEX, ref 12)
1887
+ %Image::ExifTool::XMP::exifEX = (
1888
+ %xmpTableDefaults,
1889
+ GROUPS => { 1 => 'XMP-exifEX', 2 => 'Image' },
1890
+ NAMESPACE => 'exifEX',
1891
+ PRIORITY => 0, # not as reliable as actual EXIF tags
1892
+ NOTES => q{
1893
+ EXIF tags added by the EXIF 2.3 for XMP specification (see
1894
+ L<http://www.cipa.jp/english/hyoujunka/kikaku/pdf/DC-010-2012_E.pdf>).
1895
+ },
1896
+ Gamma => { Writable => 'rational' },
1897
+ PhotographicSensitivity => { Writable => 'integer' },
1898
+ SensitivityType => {
1899
+ Writable => 'integer',
1900
+ PrintConv => {
1901
+ 0 => 'Unknown',
1902
+ 1 => 'Standard Output Sensitivity',
1903
+ 2 => 'Recommended Exposure Index',
1904
+ 3 => 'ISO Speed',
1905
+ 4 => 'Standard Output Sensitivity and Recommended Exposure Index',
1906
+ 5 => 'Standard Output Sensitivity and ISO Speed',
1907
+ 6 => 'Recommended Exposure Index and ISO Speed',
1908
+ 7 => 'Standard Output Sensitivity, Recommended Exposure Index and ISO Speed',
1909
+ },
1910
+ },
1911
+ StandardOutputSensitivity => { Writable => 'integer' },
1912
+ RecommendedExposureIndex => { Writable => 'integer' },
1913
+ ISOSpeed => { Writable => 'integer' },
1914
+ ISOSpeedLatitudeyyy => {
1915
+ Description => 'ISO Speed Latitude yyy',
1916
+ Writable => 'integer',
1917
+ },
1918
+ ISOSpeedLatitudezzz => {
1919
+ Description => 'ISO Speed Latitude zzz',
1920
+ Writable => 'integer',
1921
+ },
1922
+ CameraOwnerName => { Name => 'OwnerName' },
1923
+ BodySerialNumber => { Name => 'SerialNumber' },
1924
+ LensSpecification => {
1925
+ Name => 'LensInfo',
1926
+ Writable => 'rational',
1927
+ List => 'Seq',
1928
+ RawJoin => 1, # join list into a string before ValueConv
1929
+ ValueConv => \&ConvertRationalList,
1930
+ ValueConvInv => sub {
1931
+ my $val = shift;
1932
+ my @vals = split ' ', $val;
1933
+ return $val unless @vals == 4;
1934
+ foreach (@vals) {
1935
+ $_ eq 'inf' and $_ = '1/0', next;
1936
+ $_ eq 'undef' and $_ = '0/0', next;
1937
+ Image::ExifTool::IsFloat($_) or return $val;
1938
+ my @a = Image::ExifTool::Rationalize($_);
1939
+ $_ = join '/', @a;
1940
+ }
1941
+ return \@vals; # return list reference (List-type tag)
1942
+ },
1943
+ PrintConv => \&Image::ExifTool::Exif::PrintLensInfo,
1944
+ PrintConvInv => \&Image::ExifTool::Exif::ConvertLensInfo,
1945
+ Notes => q{
1946
+ called LensSpecification by the spec. Unfortunately the EXIF 2.3 for XMP
1947
+ specification defined this new tag instead of using the existing
1948
+ XMP-aux:LensInfo
1949
+ },
1950
+ },
1951
+ LensMake => { },
1952
+ LensModel => { },
1953
+ LensSerialNumber => { },
1954
+ InteroperabilityIndex => {
1955
+ Name => 'InteropIndex',
1956
+ Description => 'Interoperability Index',
1957
+ PrintConv => {
1958
+ R98 => 'R98 - DCF basic file (sRGB)',
1959
+ R03 => 'R03 - DCF option file (Adobe RGB)',
1960
+ THM => 'THM - DCF thumbnail file',
1961
+ },
1962
+ },
1963
+ );
1964
+
1965
+ # Auxiliary namespace properties (aux) - not fully documented (ref PH)
1966
+ %Image::ExifTool::XMP::aux = (
1967
+ %xmpTableDefaults,
1968
+ GROUPS => { 1 => 'XMP-aux', 2 => 'Camera' },
1969
+ NAMESPACE => 'aux',
1970
+ NOTES => q{
1971
+ Adobe-defined auxiliary EXIF tags. This namespace existed in the XMP
1972
+ specification until it was dropped in 2012, presumably due to the
1973
+ introduction of the EXIF 2.3 for XMP specification and the exifEX namespace
1974
+ at this time. For this reason, tags below with equivalents in the
1975
+ L<exifEX namespace|/XMP exifEX Tags> are avoided when writing.
1976
+ },
1977
+ Firmware => { }, #7
1978
+ FlashCompensation => { Writable => 'rational' }, #7
1979
+ ImageNumber => { }, #7
1980
+ LensInfo => { #7
1981
+ Notes => '4 rational values giving focal and aperture ranges',
1982
+ Avoid => 1,
1983
+ # convert to floating point values (or 'inf' or 'undef')
1984
+ ValueConv => \&ConvertRationalList,
1985
+ ValueConvInv => sub {
1986
+ my $val = shift;
1987
+ my @vals = split ' ', $val;
1988
+ return $val unless @vals == 4;
1989
+ foreach (@vals) {
1990
+ $_ eq 'inf' and $_ = '1/0', next;
1991
+ $_ eq 'undef' and $_ = '0/0', next;
1992
+ Image::ExifTool::IsFloat($_) or return $val;
1993
+ my @a = Image::ExifTool::Rationalize($_);
1994
+ $_ = join '/', @a;
1995
+ }
1996
+ return join ' ', @vals; # return string (string tag)
1997
+ },
1998
+ # convert to the form "12-20mm f/3.8-4.5" or "50mm f/1.4"
1999
+ PrintConv => \&Image::ExifTool::Exif::PrintLensInfo,
2000
+ PrintConvInv => \&Image::ExifTool::Exif::ConvertLensInfo,
2001
+ },
2002
+ Lens => { },
2003
+ OwnerName => { Avoid => 1 }, #7
2004
+ SerialNumber => { Avoid => 1 },
2005
+ LensSerialNumber=> { Avoid => 1 },
2006
+ LensID => {
2007
+ Priority => 0,
2008
+ # prevent this from getting set from a LensID that has been converted
2009
+ ValueConvInv => q{
2010
+ warn "Expected one or more integer values" if $val =~ /[^\d ]/;
2011
+ return $val;
2012
+ },
2013
+ },
2014
+ ApproximateFocusDistance => { Writable => 'rational' }, #PH (LR3)
2015
+ );
2016
+
2017
+ # IPTC Core namespace properties (Iptc4xmpCore) (ref 4)
2018
+ %Image::ExifTool::XMP::iptcCore = (
2019
+ %xmpTableDefaults,
2020
+ GROUPS => { 1 => 'XMP-iptcCore', 2 => 'Author' },
2021
+ NAMESPACE => 'Iptc4xmpCore',
2022
+ TABLE_DESC => 'XMP IPTC Core',
2023
+ NOTES => q{
2024
+ IPTC Core namespace tags. The actual IPTC Core namespace prefix is
2025
+ "Iptc4xmpCore", which is the prefix recorded in the file, but ExifTool
2026
+ shortens this for the "XMP-iptcCore" family 1 group name. (see
2027
+ L<http://www.iptc.org/IPTC4XMP/>)
2028
+ },
2029
+ CountryCode => { Groups => { 2 => 'Location' } },
2030
+ CreatorContactInfo => {
2031
+ Struct => {
2032
+ STRUCT_NAME => 'ContactInfo',
2033
+ NAMESPACE => 'Iptc4xmpCore',
2034
+ CiAdrCity => { },
2035
+ CiAdrCtry => { },
2036
+ CiAdrExtadr => { },
2037
+ CiAdrPcode => { },
2038
+ CiAdrRegion => { },
2039
+ CiEmailWork => { },
2040
+ CiTelWork => { },
2041
+ CiUrlWork => { },
2042
+ },
2043
+ },
2044
+ CreatorContactInfoCiAdrCity => { Flat => 1, Name => 'CreatorCity' },
2045
+ CreatorContactInfoCiAdrCtry => { Flat => 1, Name => 'CreatorCountry' },
2046
+ CreatorContactInfoCiAdrExtadr => { Flat => 1, Name => 'CreatorAddress' },
2047
+ CreatorContactInfoCiAdrPcode => { Flat => 1, Name => 'CreatorPostalCode' },
2048
+ CreatorContactInfoCiAdrRegion => { Flat => 1, Name => 'CreatorRegion' },
2049
+ CreatorContactInfoCiEmailWork => { Flat => 1, Name => 'CreatorWorkEmail' },
2050
+ CreatorContactInfoCiTelWork => { Flat => 1, Name => 'CreatorWorkTelephone' },
2051
+ CreatorContactInfoCiUrlWork => { Flat => 1, Name => 'CreatorWorkURL' },
2052
+ IntellectualGenre => { Groups => { 2 => 'Other' } },
2053
+ Location => { Groups => { 2 => 'Location' } },
2054
+ Scene => { Groups => { 2 => 'Other' }, List => 'Bag' },
2055
+ SubjectCode => { Groups => { 2 => 'Other' }, List => 'Bag' },
2056
+ );
2057
+
2058
+ # IPTC Extension namespace properties (Iptc4xmpExt) (ref 4)
2059
+ %Image::ExifTool::XMP::iptcExt = (
2060
+ %xmpTableDefaults,
2061
+ GROUPS => { 1 => 'XMP-iptcExt', 2 => 'Author' },
2062
+ NAMESPACE => 'Iptc4xmpExt',
2063
+ TABLE_DESC => 'XMP IPTC Extension',
2064
+ NOTES => q{
2065
+ IPTC Extension namespace tags. The actual namespace prefix is
2066
+ "Iptc4xmpExt", but ExifTool shortens this for the "XMP-iptcExt" family 1
2067
+ group name. (see L<http://www.iptc.org/IPTC4XMP/>)
2068
+ },
2069
+ AddlModelInfo => { Name => 'AdditionalModelInformation' },
2070
+ ArtworkOrObject => {
2071
+ Struct => {
2072
+ STRUCT_NAME => 'ArtworkOrObjectDetails',
2073
+ NAMESPACE => 'Iptc4xmpExt',
2074
+ AOCopyrightNotice => { },
2075
+ AOCreator => { List => 'Seq' },
2076
+ AODateCreated=> { Groups => { 2 => 'Time' }, %dateTimeInfo },
2077
+ AOSource => { },
2078
+ AOSourceInvNo=> { },
2079
+ AOTitle => { Writable => 'lang-alt' },
2080
+ },
2081
+ List => 'Bag',
2082
+ },
2083
+ ArtworkOrObjectAOCopyrightNotice=> { Flat => 1, Name => 'ArtworkCopyrightNotice' },
2084
+ ArtworkOrObjectAOCreator => { Flat => 1, Name => 'ArtworkCreator' },
2085
+ ArtworkOrObjectAODateCreated => { Flat => 1, Name => 'ArtworkDateCreated' },
2086
+ ArtworkOrObjectAOSource => { Flat => 1, Name => 'ArtworkSource' },
2087
+ ArtworkOrObjectAOSourceInvNo => { Flat => 1, Name => 'ArtworkSourceInventoryNo' },
2088
+ ArtworkOrObjectAOTitle => { Flat => 1, Name => 'ArtworkTitle' },
2089
+ OrganisationInImageCode => { List => 'Bag' },
2090
+ CVterm => {
2091
+ Name => 'ControlledVocabularyTerm',
2092
+ List => 'Bag',
2093
+ },
2094
+ LocationShown => {
2095
+ Struct => \%sLocationDetails,
2096
+ Groups => { 2 => 'Location' },
2097
+ List => 'Bag',
2098
+ },
2099
+ ModelAge => { List => 'Bag', Writable => 'integer' },
2100
+ OrganisationInImageName => { List => 'Bag' },
2101
+ PersonInImage => { List => 'Bag' },
2102
+ DigImageGUID => { Name => 'DigitalImageGUID' },
2103
+ DigitalSourcefileType => {
2104
+ Name => 'DigitalSourceFileType',
2105
+ Notes => 'now deprecated -- replaced by DigitalSourceType',
2106
+ },
2107
+ DigitalSourceType => { Name => 'DigitalSourceType' },
2108
+ Event => { Writable => 'lang-alt' },
2109
+ RegistryId => {
2110
+ Name => 'RegistryID',
2111
+ Struct => {
2112
+ STRUCT_NAME => 'RegistryEntryDetails',
2113
+ NAMESPACE => 'Iptc4xmpExt',
2114
+ RegItemId => { },
2115
+ RegOrgId => { },
2116
+ },
2117
+ List => 'Bag',
2118
+ },
2119
+ RegistryIdRegItemId => { Flat => 1, Name => 'RegistryItemID' },
2120
+ RegistryIdRegOrgId => { Flat => 1, Name => 'RegistryOrganisationID' },
2121
+ IptcLastEdited => {
2122
+ Name => 'IPTCLastEdited',
2123
+ Groups => { 2 => 'Time' },
2124
+ %dateTimeInfo,
2125
+ },
2126
+ LocationCreated => {
2127
+ Struct => \%sLocationDetails,
2128
+ Groups => { 2 => 'Location' },
2129
+ List => 'Bag',
2130
+ },
2131
+ MaxAvailHeight => { Writable => 'integer' },
2132
+ MaxAvailWidth => { Writable => 'integer' },
2133
+ );
2134
+
2135
+ # Adobe Lightroom namespace properties (lr) (ref PH)
2136
+ %Image::ExifTool::XMP::Lightroom = (
2137
+ %xmpTableDefaults,
2138
+ GROUPS => { 1 => 'XMP-lr', 2 => 'Image' },
2139
+ NAMESPACE => 'lr',
2140
+ TABLE_DESC => 'XMP Adobe Lightroom',
2141
+ NOTES => 'Adobe Lightroom "lr" namespace tags.',
2142
+ privateRTKInfo => { },
2143
+ hierarchicalSubject => { List => 'Bag' },
2144
+ );
2145
+
2146
+ # Adobe Album namespace properties (album) (ref PH)
2147
+ %Image::ExifTool::XMP::Album = (
2148
+ %xmpTableDefaults,
2149
+ GROUPS => { 1 => 'XMP-album', 2 => 'Image' },
2150
+ NAMESPACE => 'album',
2151
+ TABLE_DESC => 'XMP Adobe Album',
2152
+ NOTES => 'Adobe Album namespace tags.',
2153
+ Notes => { },
2154
+ );
2155
+
2156
+ # table to add tags in other namespaces
2157
+ %Image::ExifTool::XMP::other = (
2158
+ GROUPS => { 2 => 'Unknown' },
2159
+ LANG_INFO => \&GetLangInfo,
2160
+ );
2161
+
2162
+ # Composite XMP tags
2163
+ %Image::ExifTool::XMP::Composite = (
2164
+ # get latitude/logitude reference from XMP lat/long tags
2165
+ # (used to set EXIF GPS position from XMP tags)
2166
+ GPSLatitudeRef => {
2167
+ Require => 'XMP:GPSLatitude',
2168
+ ValueConv => q{
2169
+ IsFloat($val[0]) and return $val[0] < 0 ? "S" : "N";
2170
+ $val[0] =~ /^.*([NS])/;
2171
+ return $1;
2172
+ },
2173
+ PrintConv => {
2174
+ N => 'North',
2175
+ S => 'South',
2176
+ },
2177
+ },
2178
+ GPSLongitudeRef => {
2179
+ Require => 'XMP:GPSLongitude',
2180
+ ValueConv => q{
2181
+ IsFloat($val[0]) and return $val[0] < 0 ? "W" : "E";
2182
+ $val[0] =~ /^.*([EW])/;
2183
+ return $1;
2184
+ },
2185
+ PrintConv => {
2186
+ E => 'East',
2187
+ W => 'West',
2188
+ },
2189
+ },
2190
+ LensID => {
2191
+ Notes => 'attempt to convert numerical XMP-aux:LensID stored by Adobe applications',
2192
+ Require => {
2193
+ 0 => 'XMP-aux:LensID',
2194
+ 1 => 'Make',
2195
+ },
2196
+ Desire => {
2197
+ 2 => 'LensInfo',
2198
+ 3 => 'FocalLength',
2199
+ 4 => 'LensModel',
2200
+ },
2201
+ Inhibit => {
2202
+ 5 => 'Composite:LensID', # don't override existing Composite:LensID
2203
+ },
2204
+ ValueConv => '$val',
2205
+ PrintConv => 'Image::ExifTool::XMP::PrintLensID($self, @val)',
2206
+ },
2207
+ Flash => {
2208
+ Notes => 'facilitates copying camera flash information between XMP and EXIF',
2209
+ Desire => {
2210
+ 0 => 'XMP:FlashFired',
2211
+ 1 => 'XMP:FlashReturn',
2212
+ 2 => 'XMP:FlashMode',
2213
+ 3 => 'XMP:FlashFunction',
2214
+ 4 => 'XMP:FlashRedEyeMode',
2215
+ 5 => 'XMP:Flash', # handle structured flash information too
2216
+ },
2217
+ Writable => 1,
2218
+ PrintHex => 1,
2219
+ SeparateTable => 'EXIF Flash',
2220
+ ValueConv => q{
2221
+ if (ref $val[5] eq 'HASH') {
2222
+ # copy structure fields into value array
2223
+ my $i = 0;
2224
+ $val[$i++] = $val[5]{$_} foreach qw(Fired Return Mode Function RedEyeMode);
2225
+ }
2226
+ return (($val[0] and lc($val[0]) eq 'true') ? 0x01 : 0) |
2227
+ (($val[1] || 0) << 1) |
2228
+ (($val[2] || 0) << 3) |
2229
+ (($val[3] and lc($val[3]) eq 'true') ? 0x20 : 0) |
2230
+ (($val[4] and lc($val[4]) eq 'true') ? 0x40 : 0);
2231
+ },
2232
+ PrintConv => \%Image::ExifTool::Exif::flash,
2233
+ WriteAlso => {
2234
+ 'XMP:FlashFired' => '$val & 0x01 ? "True" : "False"',
2235
+ 'XMP:FlashReturn' => '($val & 0x06) >> 1',
2236
+ 'XMP:FlashMode' => '($val & 0x18) >> 3',
2237
+ 'XMP:FlashFunction' => '$val & 0x20 ? "True" : "False"',
2238
+ 'XMP:FlashRedEyeMode' => '$val & 0x40 ? "True" : "False"',
2239
+ },
2240
+ },
2241
+ );
2242
+
2243
+ # add our composite tags
2244
+ Image::ExifTool::AddCompositeTags('Image::ExifTool::XMP');
2245
+
2246
+ #------------------------------------------------------------------------------
2247
+ # AutoLoad our writer routines when necessary
2248
+ #
2249
+ sub AUTOLOAD
2250
+ {
2251
+ return Image::ExifTool::DoAutoLoad($AUTOLOAD, @_);
2252
+ }
2253
+
2254
+ #------------------------------------------------------------------------------
2255
+ # Escape necessary XML characters in UTF-8 string
2256
+ # Inputs: 0) string to be escaped
2257
+ # Returns: escaped string
2258
+ my %charName = ('"'=>'quot', '&'=>'amp', "'"=>'#39', '<'=>'lt', '>'=>'gt');
2259
+ sub EscapeXML($)
2260
+ {
2261
+ my $str = shift;
2262
+ $str =~ s/([&><'"])/&$charName{$1};/sg; # escape necessary XML characters
2263
+ return $str;
2264
+ }
2265
+
2266
+ #------------------------------------------------------------------------------
2267
+ # Unescape XML character references (entities and numerical)
2268
+ # Inputs: 0) string to be unescaped
2269
+ # 1) optional hash reference to convert entity names to numbers
2270
+ # Returns: unescaped string
2271
+ my %charNum = ('quot'=>34, 'amp'=>38, 'apos'=>39, 'lt'=>60, 'gt'=>62);
2272
+ sub UnescapeXML($;$)
2273
+ {
2274
+ my ($str, $conv) = @_;
2275
+ $conv = \%charNum unless $conv;
2276
+ $str =~ s/&(#?\w+);/UnescapeChar($1,$conv)/sge;
2277
+ return $str;
2278
+ }
2279
+
2280
+ #------------------------------------------------------------------------------
2281
+ # Escape string for XML, ensuring valid XML and UTF-8
2282
+ # Inputs: 0) string
2283
+ # Returns: escaped string
2284
+ sub FullEscapeXML($)
2285
+ {
2286
+ my $str = shift;
2287
+ $str =~ s/([&><'"])/&$charName{$1};/sg; # escape necessary XML characters
2288
+ $str =~ s/\\/&#92;/sg; # escape backslashes too
2289
+ # then use C-escape sequences for invalid characters
2290
+ if ($str =~ /[\0-\x1f]/ or IsUTF8(\$str) < 0) {
2291
+ $str =~ s/([\0-\x1f\x80-\xff])/sprintf("\\x%.2x",ord $1)/sge;
2292
+ }
2293
+ return $str;
2294
+ }
2295
+
2296
+ #------------------------------------------------------------------------------
2297
+ # Unescape XML/C escaped string
2298
+ # Inputs: 0) string
2299
+ # Returns: unescaped string
2300
+ sub FullUnescapeXML($)
2301
+ {
2302
+ my $str = shift;
2303
+ # unescape C escape sequences first
2304
+ $str =~ s/\\x([\da-f]{2})/chr(hex($1))/sge;
2305
+ my $conv = \%charNum;
2306
+ $str =~ s/&(#?\w+);/UnescapeChar($1,$conv)/sge;
2307
+ return $str;
2308
+ }
2309
+
2310
+ #------------------------------------------------------------------------------
2311
+ # Convert XML character reference to UTF-8
2312
+ # Inputs: 0) XML character reference stripped of the '&' and ';' (ie. 'quot', '#34', '#x22')
2313
+ # 1) hash reference for looking up character numbers by name
2314
+ # Returns: UTF-8 equivalent (or original character on conversion error)
2315
+ sub UnescapeChar($$)
2316
+ {
2317
+ my ($ch, $conv) = @_;
2318
+ my $val = $$conv{$ch};
2319
+ unless (defined $val) {
2320
+ if ($ch =~ /^#x([0-9a-fA-F]+)$/) {
2321
+ $val = hex($1);
2322
+ } elsif ($ch =~ /^#(\d+)$/) {
2323
+ $val = $1;
2324
+ } else {
2325
+ return "&$ch;"; # should issue a warning here? [no]
2326
+ }
2327
+ }
2328
+ return chr($val) if $val < 0x80; # simple ASCII
2329
+ return pack('C0U', $val) if $] >= 5.006001;
2330
+ return Image::ExifTool::PackUTF8($val);
2331
+ }
2332
+
2333
+ #------------------------------------------------------------------------------
2334
+ # Does a string contain valid UTF-8 characters?
2335
+ # Inputs: 0) string reference
2336
+ # Returns: 0=regular ASCII, -1=invalid UTF-8, 1=valid UTF-8 with maximum 16-bit
2337
+ # wide characters, 2=valid UTF-8 requiring 32-bit wide characters
2338
+ # Notes: Changes current string position
2339
+ sub IsUTF8($)
2340
+ {
2341
+ my $strPt = shift;
2342
+ pos($$strPt) = 0; # start at beginning of string
2343
+ return 0 unless $$strPt =~ /([\x80-\xff])/g;
2344
+ my $rtnVal = 1;
2345
+ for (;;) {
2346
+ my $ch = ord($1);
2347
+ # minimum lead byte for 2-byte sequence is 0xc2 (overlong sequences
2348
+ # not allowed), 0xf8-0xfd are restricted by RFC 3629 (no 5 or 6 byte
2349
+ # sequences), and 0xfe and 0xff are not valid in UTF-8 strings
2350
+ return -1 if $ch < 0xc2 or $ch >= 0xf8;
2351
+ # determine number of bytes remaining in sequence
2352
+ my $n;
2353
+ if ($ch < 0xe0) {
2354
+ $n = 1;
2355
+ } elsif ($ch < 0xf0) {
2356
+ $n = 2;
2357
+ } else {
2358
+ $n = 3;
2359
+ # character code is greater than 0xffff if more than 2 extra bytes
2360
+ # were required in the UTF-8 character
2361
+ $rtnVal = 2;
2362
+ }
2363
+ return -1 unless $$strPt =~ /\G[\x80-\xbf]{$n}/g;
2364
+ last unless $$strPt =~ /([\x80-\xff])/g;
2365
+ }
2366
+ return $rtnVal;
2367
+ }
2368
+
2369
+ #------------------------------------------------------------------------------
2370
+ # Fix malformed UTF8 (by replacing bad bytes with '?')
2371
+ # Inputs: 0) string reference
2372
+ # Returns: true if string was fixed, and updates string
2373
+ sub FixUTF8($)
2374
+ {
2375
+ my $strPt = shift;
2376
+ my $fixed;
2377
+ pos($$strPt) = 0; # start at beginning of string
2378
+ for (;;) {
2379
+ last unless $$strPt =~ /([\x80-\xff])/g;
2380
+ my $ch = ord($1);
2381
+ my $pos = pos($$strPt);
2382
+ # (see comments in IsUTF8() above)
2383
+ if ($ch >= 0xc2 and $ch < 0xf8) {
2384
+ my $n = $ch < 0xe0 ? 1 : ($ch < 0xf0 ? 2 : 3);
2385
+ next if $$strPt =~ /\G[\x80-\xbf]{$n}/g;
2386
+ }
2387
+ # replace bad character with '?'
2388
+ substr($$strPt, $pos-1, 1) = '?';
2389
+ pos($$strPt) = $fixed = $pos;
2390
+ }
2391
+ return $fixed;
2392
+ }
2393
+
2394
+ #------------------------------------------------------------------------------
2395
+ # Utility routine to decode a base64 string
2396
+ # Inputs: 0) base64 string
2397
+ # Returns: reference to decoded data
2398
+ sub DecodeBase64($)
2399
+ {
2400
+ local($^W) = 0; # unpack('u',...) gives bogus warning in 5.00[123]
2401
+ my $str = shift;
2402
+
2403
+ # truncate at first unrecognized character (base 64 data
2404
+ # may only contain A-Z, a-z, 0-9, +, /, =, or white space)
2405
+ $str =~ s/[^A-Za-z0-9+\/= \t\n\r\f].*//s;
2406
+ # translate to uucoded and remove padding and white space
2407
+ $str =~ tr/A-Za-z0-9+\/= \t\n\r\f/ -_/d;
2408
+
2409
+ # convert the data to binary in chunks
2410
+ my $chunkSize = 60;
2411
+ my $uuLen = pack('c', 32 + $chunkSize * 3 / 4); # calculate length byte
2412
+ my $dat = '';
2413
+ my ($i, $substr);
2414
+ # loop through the whole chunks
2415
+ my $len = length($str) - $chunkSize;
2416
+ for ($i=0; $i<=$len; $i+=$chunkSize) {
2417
+ $substr = substr($str, $i, $chunkSize); # get a chunk of the data
2418
+ $dat .= unpack('u', $uuLen . $substr); # decode it
2419
+ }
2420
+ $len += $chunkSize;
2421
+ # handle last partial chunk if necessary
2422
+ if ($i < $len) {
2423
+ $uuLen = pack('c', 32 + ($len-$i) * 3 / 4); # recalculate length
2424
+ $substr = substr($str, $i, $len-$i); # get the last partial chunk
2425
+ $dat .= unpack('u', $uuLen . $substr); # decode it
2426
+ }
2427
+ return \$dat;
2428
+ }
2429
+
2430
+ #------------------------------------------------------------------------------
2431
+ # Generate a tag ID for this XMP tag
2432
+ # Inputs: 0) tag property name list ref, 1) array ref for receiving structure property list
2433
+ # 2) array for receiving namespace list
2434
+ # Returns: tagID and outtermost interesting namespace (or '' if no namespace)
2435
+ sub GetXMPTagID($;$$)
2436
+ {
2437
+ my ($props, $structProps, $nsList) = @_;
2438
+ my ($tag, $prop, $namespace);
2439
+ foreach $prop (@$props) {
2440
+ # split name into namespace and property name
2441
+ # (Note: namespace can be '' for property qualifiers)
2442
+ my ($ns, $nm) = ($prop =~ /(.*?):(.*)/) ? ($1, $2) : ('', $prop);
2443
+ if ($ignoreNamespace{$ns}) {
2444
+ # special case: don't ignore rdf numbered items
2445
+ unless ($prop =~ /^rdf:(_\d+)$/) {
2446
+ # save list index if necessary for structures
2447
+ if ($structProps and @$structProps and $prop =~ /^rdf:li (\d+)$/) {
2448
+ push @{$$structProps[-1]}, $1;
2449
+ }
2450
+ next;
2451
+ }
2452
+ $tag .= $1 if defined $tag;
2453
+ } else {
2454
+ $nm =~ s/ .*//; # remove nodeID if it exists
2455
+ # all uppercase is ugly, so convert it
2456
+ if ($nm !~ /[a-z]/) {
2457
+ my $xlatNS = $$xlatNamespace{$ns} || $ns;
2458
+ my $info = $Image::ExifTool::XMP::Main{$xlatNS};
2459
+ my $table;
2460
+ if (ref $info eq 'HASH' and $$info{SubDirectory}) {
2461
+ $table = GetTagTable($$info{SubDirectory}{TagTable});
2462
+ }
2463
+ unless ($table and $$table{$nm}) {
2464
+ $nm = lc($nm);
2465
+ $nm =~ s/_([a-z])/\u$1/g;
2466
+ }
2467
+ }
2468
+ if (defined $tag) {
2469
+ $tag .= ucfirst($nm); # add to tag name
2470
+ } else {
2471
+ $tag = $nm;
2472
+ }
2473
+ # save structure information if necessary
2474
+ if ($structProps) {
2475
+ push @$structProps, [ $nm ];
2476
+ push @$nsList, $ns if $nsList;
2477
+ }
2478
+ }
2479
+ # save namespace of first property to contribute to tag name
2480
+ $namespace = $ns unless $namespace;
2481
+ }
2482
+ if (wantarray) {
2483
+ return ($tag, $namespace || '');
2484
+ } else {
2485
+ return $tag;
2486
+ }
2487
+ }
2488
+
2489
+ #------------------------------------------------------------------------------
2490
+ # Register namespace for specified user-defined table
2491
+ # Inputs: 0) tag/structure table ref
2492
+ # Returns: namespace prefix
2493
+ sub RegisterNamespace($)
2494
+ {
2495
+ my $table = shift;
2496
+ return $$table{NAMESPACE} unless ref $$table{NAMESPACE};
2497
+ my $nsRef = $$table{NAMESPACE};
2498
+ # recognize as either a list or hash
2499
+ my $ns;
2500
+ if (ref $nsRef eq 'ARRAY') {
2501
+ $ns = $$nsRef[0];
2502
+ $nsURI{$ns} = $$nsRef[1];
2503
+ } else { # must be a hash
2504
+ my @ns = sort keys %$nsRef; # allow multiple namespace definitions
2505
+ while (@ns) {
2506
+ $ns = pop @ns;
2507
+ if ($nsURI{$ns} and $nsURI{$ns} ne $$nsRef{$ns}) {
2508
+ warn "User-defined namespace prefix '$ns' conflicts with existing namespace\n";
2509
+ }
2510
+ $nsURI{$ns} = $$nsRef{$ns};
2511
+ }
2512
+ }
2513
+ return $$table{NAMESPACE} = $ns;
2514
+ }
2515
+
2516
+ #------------------------------------------------------------------------------
2517
+ # Generate flattened tags and add to table
2518
+ # Inputs: 0) tag table ref, 1) tag ID for Struct tag (if not defined, whole table is done),
2519
+ # 2) flag to not expand sub-structures
2520
+ # Returns: number of tags added (not counting those just initialized)
2521
+ # Notes: Must have verified that $$tagTablePtr{$tagID}{Struct} exists before calling this routine
2522
+ # - makes sure that the tagInfo Struct is a HASH reference
2523
+ sub AddFlattenedTags($;$$)
2524
+ {
2525
+ local $_;
2526
+ my ($tagTablePtr, $tagID, $noSubStruct) = @_;
2527
+ my $count = 0;
2528
+ my @tagIDs;
2529
+
2530
+ if (defined $tagID) {
2531
+ push @tagIDs, $tagID;
2532
+ } else {
2533
+ foreach $tagID (TagTableKeys($tagTablePtr)) {
2534
+ my $tagInfo = $$tagTablePtr{$tagID};
2535
+ next unless ref $tagInfo eq 'HASH' and $$tagInfo{Struct};
2536
+ push @tagIDs, $tagID;
2537
+ }
2538
+ }
2539
+
2540
+ # loop through specified tags
2541
+ foreach $tagID (@tagIDs) {
2542
+
2543
+ my $tagInfo = $$tagTablePtr{$tagID};
2544
+
2545
+ $$tagInfo{Flattened} and next; # only generate flattened tags once
2546
+ $$tagInfo{Flattened} = 1;
2547
+
2548
+ my $strTable = $$tagInfo{Struct};
2549
+ unless (ref $strTable) { # (allow a structure name for backward compatibility only)
2550
+ my $strName = $strTable;
2551
+ $strTable = $Image::ExifTool::UserDefined::xmpStruct{$strTable} or next;
2552
+ $$strTable{STRUCT_NAME} or $$strTable{STRUCT_NAME} = "XMP $strName";
2553
+ $$tagInfo{Struct} = $strTable; # replace old-style name with HASH ref
2554
+ delete $$tagInfo{SubDirectory}; # deprecated use of SubDirectory in Struct tags
2555
+ }
2556
+ # do not add flattened tags to variable-namespace structures
2557
+ next if exists $$strTable{NAMESPACE} and not defined $$strTable{NAMESPACE};
2558
+
2559
+ # get prefix for flattened tag names
2560
+ my $flat = (defined $$tagInfo{FlatName} ? $$tagInfo{FlatName} : $$tagInfo{Name});
2561
+
2562
+ # get family 2 group name for this structure tag
2563
+ my ($tagG2, $field);
2564
+ $tagG2 = $$tagInfo{Groups}{2} if $$tagInfo{Groups};
2565
+ $tagG2 or $tagG2 = $$tagTablePtr{GROUPS}{2};
2566
+
2567
+ foreach $field (keys %$strTable) {
2568
+ next if $specialStruct{$field};
2569
+ my $fieldInfo = $$strTable{$field};
2570
+ next if $$fieldInfo{LangCode}; # don't flatten lang-alt tags
2571
+ next if $$fieldInfo{Struct} and $noSubStruct; # don't expand sub-structures if specified
2572
+ # build a tag ID for the corresponding flattened tag
2573
+ my $fieldName = ucfirst($field);
2574
+ my $flatField = $$fieldInfo{FlatName} || $fieldName;
2575
+ my $flatID = $tagID . $fieldName;
2576
+ my $flatInfo = $$tagTablePtr{$flatID};
2577
+ if ($flatInfo) {
2578
+ ref $flatInfo eq 'HASH' or warn("$flatInfo is not a HASH!\n"), next; # (to be safe)
2579
+ # pre-defined flattened tags should have Flat flag set
2580
+ if (not defined $$flatInfo{Flat} and $Image::ExifTool::debug) {
2581
+ warn "Missing Flat flag for $$flatInfo{Name}\n";
2582
+ }
2583
+ $$flatInfo{Flat} = 0;
2584
+ # copy all missing entries from field information
2585
+ foreach (keys %$fieldInfo) {
2586
+ # must not copy PropertyPath (but can't delete it afterwards
2587
+ # because the flat tag may already have this set)
2588
+ next if $_ eq 'PropertyPath';
2589
+ $$flatInfo{$_} = $$fieldInfo{$_} unless defined $$flatInfo{$_};
2590
+ }
2591
+ # NOTE: Do NOT delete Groups because we need them if GotGroups was done
2592
+ # --> just override group 2 later according to field group
2593
+ # re-generate List flag unless it is set to 0
2594
+ delete $$flatInfo{List} if $$flatInfo{List};
2595
+ } else {
2596
+ # generate new flattened tag information based on structure field
2597
+ my $flatName = $flat . $flatField;
2598
+ $flatInfo = { %$fieldInfo, Name => $flatName, Flat => 0 };
2599
+ # add new flattened tag to table
2600
+ AddTagToTable($tagTablePtr, $flatID, $flatInfo);
2601
+ ++$count;
2602
+ }
2603
+ # propagate List flag (unless set to 0 in pre-defined flattened tag)
2604
+ unless (defined $$flatInfo{List}) {
2605
+ $$flatInfo{List} = $$fieldInfo{List} || 1 if $$fieldInfo{List} or $$tagInfo{List};
2606
+ }
2607
+ # set group 2 name from the first existing family 2 group in the:
2608
+ # 1) structure field Groups, 2) structure table GROUPS, 3) structure tag Groups
2609
+ if ($$fieldInfo{Groups} and $$fieldInfo{Groups}{2}) {
2610
+ $$flatInfo{Groups}{2} = $$fieldInfo{Groups}{2};
2611
+ } elsif ($$strTable{GROUPS} and $$strTable{GROUPS}{2}) {
2612
+ $$flatInfo{Groups}{2} = $$strTable{GROUPS}{2};
2613
+ } else {
2614
+ $$flatInfo{Groups}{2} = $tagG2;
2615
+ }
2616
+ # save reference to top-level structure
2617
+ $$flatInfo{RootTagInfo} = $$tagInfo{RootTagInfo} || $tagInfo;
2618
+ # recursively generate flattened tags for sub-structures
2619
+ next unless $$flatInfo{Struct};
2620
+ length($flatID) > 250 and warn("Possible deep recursion for tag $flatID\n"), last;
2621
+ # reset flattened tag just in case we flattened hierarchy in the wrong order
2622
+ # because we must start from the outtermost structure to get the List flags right
2623
+ # (this should only happen when building tag tables)
2624
+ delete $$flatInfo{Flattened};
2625
+ $count += AddFlattenedTags($tagTablePtr, $flatID, $$flatInfo{NoSubStruct});
2626
+ }
2627
+ }
2628
+ return $count;
2629
+ }
2630
+
2631
+ #------------------------------------------------------------------------------
2632
+ # Get localized version of tagInfo hash
2633
+ # Inputs: 0) tagInfo hash ref, 1) language code (ie. "x-default")
2634
+ # Returns: new tagInfo hash ref, or undef if invalid
2635
+ sub GetLangInfo($$)
2636
+ {
2637
+ my ($tagInfo, $langCode) = @_;
2638
+ # only allow alternate language tags in lang-alt lists
2639
+ return undef unless $$tagInfo{Writable} and $$tagInfo{Writable} eq 'lang-alt';
2640
+ $langCode =~ tr/_/-/; # RFC 3066 specifies '-' as a separator
2641
+ my $langInfo = Image::ExifTool::GetLangInfo($tagInfo, $langCode);
2642
+ # save reference to source tagInfo hash in case we need to set the PropertyPath later
2643
+ $$langInfo{SrcTagInfo} = $tagInfo;
2644
+ return $langInfo;
2645
+ }
2646
+
2647
+ #------------------------------------------------------------------------------
2648
+ # Get standard case for language code
2649
+ # Inputs: 0) Language code
2650
+ # Returns: Language code in standard case
2651
+ sub StandardLangCase($)
2652
+ {
2653
+ my $lang = shift;
2654
+ # make 2nd subtag uppercase only if it is 2 letters
2655
+ return lc($1) . uc($2) . lc($3) if $lang =~ /^([a-z]{2,3}|[xi])(-[a-z]{2})\b(.*)/i;
2656
+ return lc($lang);
2657
+ }
2658
+
2659
+ #------------------------------------------------------------------------------
2660
+ # Scan for XMP in a file
2661
+ # Inputs: 0) ExifTool object ref, 1) RAF reference
2662
+ # Returns: 1 if xmp was found, 0 otherwise
2663
+ # Notes: Currently only recognizes UTF8-encoded XMP
2664
+ sub ScanForXMP($$)
2665
+ {
2666
+ my ($et, $raf) = @_;
2667
+ my ($buff, $xmp);
2668
+ my $lastBuff = '';
2669
+
2670
+ $et->VPrint(0,"Scanning for XMP\n");
2671
+ for (;;) {
2672
+ defined $buff or $raf->Read($buff, 65536) or return 0;
2673
+ unless (defined $xmp) {
2674
+ $lastBuff .= $buff;
2675
+ unless ($lastBuff =~ /(<\?xpacket begin=)/g) {
2676
+ # must keep last 15 bytes to match 16-byte "xpacket begin" string
2677
+ $lastBuff = length($buff) <= 15 ? $buff : substr($buff, -15);
2678
+ undef $buff;
2679
+ next;
2680
+ }
2681
+ $xmp = $1;
2682
+ $buff = substr($lastBuff, pos($lastBuff));
2683
+ }
2684
+ my $pos = length($xmp) - 18; # (18 = length("<?xpacket end...") - 1)
2685
+ $xmp .= $buff; # add new data to our XMP
2686
+ pos($xmp) = $pos if $pos > 0; # set start for "xpacket end" scan
2687
+ if ($xmp =~ /<\?xpacket end=['"][wr]['"]\?>/g) {
2688
+ $buff = substr($xmp, pos($xmp)); # save data after end of XMP
2689
+ $xmp = substr($xmp, 0, pos($xmp)); # isolate XMP
2690
+ # check XMP for validity (not valid if it contains null bytes)
2691
+ $pos = rindex($xmp, "\0") + 1 or last;
2692
+ $lastBuff = substr($xmp, $pos); # re-parse beginning after last null byte
2693
+ undef $xmp;
2694
+ } else {
2695
+ undef $buff;
2696
+ }
2697
+ }
2698
+ unless ($$et{VALUE}{FileType}) {
2699
+ $$et{FILE_TYPE} = $$et{FILE_EXT};
2700
+ $et->SetFileType('<unknown file containing XMP>');
2701
+ }
2702
+ my %dirInfo = (
2703
+ DataPt => \$xmp,
2704
+ DirLen => length $xmp,
2705
+ DataLen => length $xmp,
2706
+ );
2707
+ ProcessXMP($et, \%dirInfo);
2708
+ return 1;
2709
+ }
2710
+
2711
+ #------------------------------------------------------------------------------
2712
+ # Print conversion for XMP-aux:LensID
2713
+ # Inputs: 0) ExifTool ref, 1) LensID, 2) Make, 3) LensInfo, 4) FocalLength, 5) LensModel
2714
+ # (yes, this is ugly -- blame Adobe)
2715
+ sub PrintLensID(@)
2716
+ {
2717
+ local $_;
2718
+ my ($et, $id, $make, $info, $focalLength, $lensModel) = @_;
2719
+ my ($mk, $printConv);
2720
+ # missing: Olympus (no XMP:LensID written by Adobe)
2721
+ foreach $mk (qw(Canon Nikon Pentax Sony Sigma Samsung Leica)) {
2722
+ next unless $make =~ /$mk/i;
2723
+ # get name of module containing the lens lookup (default "Make.pm")
2724
+ my $mod = { Sigma => 'SigmaRaw', Leica => 'Panasonic' }->{$mk} || $mk;
2725
+ require "Image/ExifTool/$mod.pm";
2726
+ # get the name of the lens name lookup (default "makeLensTypes")
2727
+ # (canonLensTypes, pentaxLensTypes, nikonLensIDs, etc)
2728
+ my $convName = "Image::ExifTool::${mod}::" .
2729
+ ({ Nikon => 'nikonLensIDs' }->{$mk} || lc($mk) . 'LensTypes');
2730
+ no strict 'refs';
2731
+ %$convName or last;
2732
+ my $printConv = \%$convName;
2733
+ use strict 'refs';
2734
+ my ($minf, $maxf, $maxa, $mina);
2735
+ if ($info) {
2736
+ my @a = split ' ', $info;
2737
+ $_ eq 'undef' and $_ = undef foreach @a;
2738
+ ($minf, $maxf, $maxa, $mina) = @a;
2739
+ }
2740
+ if ($mk eq 'Pentax' and $id =~ /^\d+$/) {
2741
+ # for Pentax, CS4 stores an int16u, but we use 2 x int8u
2742
+ $id = join(' ', unpack('C*', pack('n', $id)));
2743
+ }
2744
+ my $str = $$printConv{$id} || "Unknown ($id)";
2745
+ # Nikon is a special case because Adobe doesn't store the full LensID
2746
+ if ($mk eq 'Nikon') {
2747
+ my $hex = sprintf("%.2X", $id);
2748
+ my %newConv;
2749
+ my $i = 0;
2750
+ foreach (grep /^$hex /, keys %$printConv) {
2751
+ $newConv{$i ? "$id.$i" : $id} = $$printConv{$_};
2752
+ ++$i;
2753
+ }
2754
+ $printConv = \%newConv;
2755
+ }
2756
+ return Image::ExifTool::Exif::PrintLensID($et, $str, $printConv,
2757
+ undef, $id, $focalLength, $maxa, undef, $minf, $maxf, $lensModel);
2758
+ }
2759
+ return "Unknown ($id)";
2760
+ }
2761
+
2762
+ #------------------------------------------------------------------------------
2763
+ # Convert XMP date/time to EXIF format
2764
+ # Inputs: 0) XMP date/time string, 1) set if we aren't sure this is a date
2765
+ # Returns: EXIF date/time
2766
+ sub ConvertXMPDate($;$)
2767
+ {
2768
+ my ($val, $unsure) = @_;
2769
+ if ($val =~ /^(\d{4})-(\d{2})-(\d{2})[T ](\d{2}:\d{2})(:\d{2})?\s*(\S*)$/) {
2770
+ my $s = $5 || ''; # seconds may be missing
2771
+ $val = "$1:$2:$3 $4$s$6"; # convert back to EXIF time format
2772
+ } elsif (not $unsure and $val =~ /^(\d{4})(-\d{2}){0,2}/) {
2773
+ $val =~ tr/-/:/;
2774
+ }
2775
+ return $val;
2776
+ }
2777
+
2778
+ #------------------------------------------------------------------------------
2779
+ # Convert rational string value
2780
+ # Inputs: 0) string (converted to number, 'inf' or 'undef' on return if rational)
2781
+ # Returns: true if value was converted
2782
+ sub ConvertRational($)
2783
+ {
2784
+ my $val = $_[0];
2785
+ $val =~ m{^(-?\d+)/(-?\d+)$} or return undef;
2786
+ if ($2 != 0) {
2787
+ $_[0] = $1 / $2; # calculate quotient
2788
+ } elsif ($1) {
2789
+ $_[0] = 'inf';
2790
+ } else {
2791
+ $_[0] = 'undef';
2792
+ }
2793
+ return 1;
2794
+ }
2795
+
2796
+ #------------------------------------------------------------------------------
2797
+ # Convert a string of floating point values to rationals
2798
+ # Inputs: 0) string of floating point numbers separated by spaces
2799
+ # Returns: string of rational numbers separated by spaces
2800
+ sub ConvertRationalList($)
2801
+ {
2802
+ my $val = shift;
2803
+ my @vals = split ' ', $val;
2804
+ return $val unless @vals == 4;
2805
+ foreach (@vals) {
2806
+ ConvertRational($_) or return $val;
2807
+ }
2808
+ return join ' ', @vals;
2809
+ }
2810
+
2811
+ #------------------------------------------------------------------------------
2812
+ # We found an XMP property name/value
2813
+ # Inputs: 0) ExifTool object ref, 1) Pointer to tag table
2814
+ # 2) reference to array of XMP property names (last is current property)
2815
+ # 3) property value, 4) attribute hash ref (for 'xml:lang' or 'rdf:datatype')
2816
+ # Returns: 1 if valid tag was found
2817
+ sub FoundXMP($$$$;$)
2818
+ {
2819
+ local $_;
2820
+ my ($et, $tagTablePtr, $props, $val, $attrs) = @_;
2821
+ my ($lang, @structProps, $rawVal, $rational);
2822
+ my ($tag, $ns) = GetXMPTagID($props, $$et{OPTIONS}{Struct} ? \@structProps : undef);
2823
+ return 0 unless $tag; # ignore things that aren't valid tags
2824
+
2825
+ # translate namespace if necessary
2826
+ $ns = $$xlatNamespace{$ns} if $$xlatNamespace{$ns};
2827
+ my $info = $$tagTablePtr{$ns};
2828
+ my ($table, $added, $xns, $tagID);
2829
+ if ($info) {
2830
+ $table = $$info{SubDirectory}{TagTable} or warn "Missing TagTable for $tag!\n";
2831
+ } elsif ($$props[0] eq 'svg:svg') {
2832
+ if (not $ns) {
2833
+ # disambiguate MetadataID by adding back the 'metadata' we ignored
2834
+ $tag = 'metadataId' if $tag eq 'id' and $$props[1] eq 'svg:metadata';
2835
+ # use SVG namespace in SVG files if nothing better to use
2836
+ $table = 'Image::ExifTool::XMP::SVG';
2837
+ } elsif (not grep /^rdf:/, @$props) {
2838
+ # only other SVG information if not inside RDF (call it XMP if in RDF)
2839
+ $table = 'Image::ExifTool::XMP::otherSVG';
2840
+ }
2841
+ }
2842
+
2843
+ # look up this tag in the appropriate table
2844
+ $table or $table = 'Image::ExifTool::XMP::other';
2845
+ $tagTablePtr = GetTagTable($table);
2846
+ if ($$tagTablePtr{NAMESPACE}) {
2847
+ $tagID = $tag;
2848
+ } else {
2849
+ # add XMP namespace prefix to avoid collisions in variable-namespace tables
2850
+ $xns = $xmpNS{$ns} || $ns;
2851
+ $tagID = "$xns:$tag";
2852
+ # add namespace to top-level structure property
2853
+ $structProps[0][0] = "$xns:" . $structProps[0][0] if @structProps;
2854
+ }
2855
+ my $tagInfo = $et->GetTagInfo($tagTablePtr, $tagID);
2856
+
2857
+ $lang = $$attrs{'xml:lang'} if $attrs;
2858
+
2859
+ # must add a new tag table entry if this tag isn't pre-defined
2860
+ # (or initialize from structure field if this is a pre-defined flattened tag)
2861
+ NoLoop:
2862
+ while (not $tagInfo or $$tagInfo{Flat}) {
2863
+ my (@tagList, @nsList);
2864
+ GetXMPTagID($props, \@tagList, \@nsList);
2865
+ my ($ta, $t, $ti, $addedFlat, $i, $j);
2866
+ # build tag ID strings for each level in the property path
2867
+ foreach $ta (@tagList) {
2868
+ # insert tag ID in index 1 of tagList list
2869
+ $t = $$ta[1] = $t ? $t . ucfirst($$ta[0]) : $$ta[0];
2870
+ # generate flattened tags for top-level structure if necessary
2871
+ next if defined $addedFlat;
2872
+ $ti = $$tagTablePtr{$t} or next;
2873
+ next unless ref $ti eq 'HASH' and $$ti{Struct};
2874
+ $addedFlat = AddFlattenedTags($tagTablePtr, $t);
2875
+ if ($tagInfo) {
2876
+ # all done if we just wanted to initialize the flattened tag
2877
+ if ($$tagInfo{Flat}) {
2878
+ warn "Orphan tagInfo with Flat flag set: $$tagInfo{Name}\n";
2879
+ delete $$tagInfo{Flat};
2880
+ }
2881
+ last NoLoop;
2882
+ }
2883
+ # all done if we generated the tag we are looking for
2884
+ $tagInfo = $$tagTablePtr{$tagID} and last NoLoop if $addedFlat;
2885
+ }
2886
+ my $name = ucfirst($tag);
2887
+
2888
+ # search for the innermost containing structure
2889
+ # (in case tag is an unknown field in a known structure)
2890
+ # (only necessary if we found a structure above)
2891
+ if (defined $addedFlat) {
2892
+ my $t2 = '';
2893
+ for ($i=$#tagList-1; $i>=0; --$i) {
2894
+ $t = $tagList[$i][1];
2895
+ $t2 = $tagList[$i+1][0] . ucfirst($t2); # build relative tag id
2896
+ $ti = $$tagTablePtr{$t} or next;
2897
+ next unless ref $ti eq 'HASH';
2898
+ my $strTable = $$ti{Struct} or next;
2899
+ my $flat = (defined $$ti{FlatName} ? $$ti{FlatName} : $$ti{Name});
2900
+ $name = $flat . ucfirst($t2);
2901
+ # don't continue if structure is known but field is not
2902
+ last if $$strTable{NAMESPACE} or not exists $$strTable{NAMESPACE};
2903
+ # this is a variable-namespace structure, so we must:
2904
+ # 1) get tagInfo from corresponding top-level XMP tag if it exists
2905
+ # 2) add new entry in this tag table, but with namespace prefix on tag ID
2906
+ my $n = $nsList[$i+1]; # namespace of structure field
2907
+ # translate to standard ExifTool namespace
2908
+ $n = $$xlatNamespace{$n} if $$xlatNamespace{$n};
2909
+ my $xn = $xmpNS{$n} || $n; # standard XMP namespace
2910
+ # no need to continue with variable-namespace logic if
2911
+ # we are in our own namespace (right?)
2912
+ last if $xn eq ($$tagTablePtr{NAMESPACE} || '');
2913
+ $tagID = "$xn:$tag"; # add namespace to avoid collisions
2914
+ # change structure properties to add the standard XMP namespace
2915
+ # prefix for this field (needed for variable-namespace fields)
2916
+ if (@structProps) {
2917
+ $structProps[$i+1][0] = "$xn:" . $structProps[$i+1][0];
2918
+ }
2919
+ # copy tagInfo entries from the existing top-level XMP tag
2920
+ my $tg = $Image::ExifTool::XMP::Main{$n};
2921
+ last unless ref $tg eq 'HASH' and $$tg{SubDirectory};
2922
+ my $tbl = GetTagTable($$tg{SubDirectory}{TagTable}) or last;
2923
+ my $sti = $et->GetTagInfo($tbl, $t2);
2924
+ if (not $sti or $$sti{Flat}) {
2925
+ # again, we must initialize flattened tags if necessary
2926
+ # (but don't bother to recursively apply full logic to
2927
+ # allow nested variable-namespace strucures until someone
2928
+ # actually wants to do such a silly thing)
2929
+ my $t3 = '';
2930
+ for ($j=$i+1; $j<@tagList; ++$j) {
2931
+ $t3 = $tagList[$j][0] . ucfirst($t3);
2932
+ my $ti3 = $$tbl{$t3} or next;
2933
+ next unless ref $ti3 eq 'HASH' and $$ti3{Struct};
2934
+ last unless AddFlattenedTags($tbl, $t3);
2935
+ $sti = $$tbl{$t2};
2936
+ last;
2937
+ }
2938
+ last unless $sti;
2939
+ }
2940
+ $tagInfo = {
2941
+ %$sti,
2942
+ Name => $flat . $$sti{Name},
2943
+ WasAdded => 1,
2944
+ };
2945
+ # be careful not to copy elements we shouldn't...
2946
+ delete $$tagInfo{Description}; # Description will be different
2947
+ # can't copy group hash because group 1 will be different and
2948
+ # we need to check this when writing tag to a specific group
2949
+ delete $$tagInfo{Groups};
2950
+ $$tagInfo{Groups}{2} = $$sti{Groups}{2} if $$sti{Groups};
2951
+ last;
2952
+ }
2953
+ }
2954
+ $tagInfo or $tagInfo = { Name => $name, WasAdded => 1 };
2955
+
2956
+ # add tag Namespace entry for tags in variable-namespace tables
2957
+ $$tagInfo{Namespace} = $xns if $xns;
2958
+ if ($curNS{$ns} and $curNS{$ns} =~ m{^http://ns.exiftool.ca/(.*?)/(.*?)/}) {
2959
+ my %grps = ( 0 => $1, 1 => $2 );
2960
+ # apply a little magic to recover original group names
2961
+ # from this exiftool-written RDF/XML file
2962
+ if ($grps{1} =~ /^\d/) {
2963
+ # URI's with only family 0 are internal tags from the source file,
2964
+ # so change the group name to avoid confusion with tags from this file
2965
+ $grps{1} = "XML-$grps{0}";
2966
+ $grps{0} = 'XML';
2967
+ }
2968
+ $$tagInfo{Groups} = \%grps;
2969
+ # flag to avoid setting group 1 later
2970
+ $$tagInfo{StaticGroup1} = 1;
2971
+ }
2972
+ # construct tag information for this unknown tag
2973
+ # -> make this a List or lang-alt tag if necessary
2974
+ if (@$props > 2 and $$props[-1] =~ /^rdf:li \d+$/ and
2975
+ $$props[-2] =~ /^rdf:(Bag|Seq|Alt)$/)
2976
+ {
2977
+ if ($lang and $1 eq 'Alt') {
2978
+ $$tagInfo{Writable} = 'lang-alt';
2979
+ } else {
2980
+ $$tagInfo{List} = $1;
2981
+ }
2982
+ # tried this, but maybe not a good idea for complex structures:
2983
+ #} elsif (grep / /, @$props) {
2984
+ # $$tagInfo{List} = 1;
2985
+ }
2986
+ AddTagToTable($tagTablePtr, $tagID, $tagInfo);
2987
+ $added = 1;
2988
+ last;
2989
+ }
2990
+ # decode value if necessary (et:encoding was used before exiftool 7.71)
2991
+ if ($attrs) {
2992
+ my $enc = $$attrs{'rdf:datatype'} || $$attrs{'et:encoding'};
2993
+ if ($enc and $enc =~ /base64/) {
2994
+ $val = DecodeBase64($val); # (now a value ref)
2995
+ $val = $$val unless length $$val > 100 or $$val =~ /[\0-\x08\x0b\0x0c\x0e-\x1f]/;
2996
+ }
2997
+ }
2998
+ if (defined $lang and lc($lang) ne 'x-default') {
2999
+ $lang = StandardLangCase($lang);
3000
+ my $langInfo = GetLangInfo($tagInfo, $lang);
3001
+ $tagInfo = $langInfo if $langInfo;
3002
+ }
3003
+ # un-escape XML character entities (handling CDATA)
3004
+ pos($val) = 0;
3005
+ if ($val =~ /<!\[CDATA\[(.*?)\]\]>/sg) {
3006
+ my $p = pos $val;
3007
+ # unescape everything up to the start of the CDATA section
3008
+ # (the length of "<[[CDATA[]]>" is 12 characters)
3009
+ my $v = UnescapeXML(substr($val, 0, $p - length($1) - 12)) . $1;
3010
+ while ($val =~ /<!\[CDATA\[(.*?)\]\]>/sg) {
3011
+ my $p1 = pos $val;
3012
+ $v .= UnescapeXML(substr($val, $p, $p1 - length($1) - 12)) . $1;
3013
+ $p = $p1;
3014
+ }
3015
+ $val = $v . UnescapeXML(substr($val, $p));
3016
+ } else {
3017
+ $val = UnescapeXML($val);
3018
+ }
3019
+ # decode from UTF8
3020
+ $val = $et->Decode($val, 'UTF8');
3021
+ # convert rational and date values to a more sensible format
3022
+ my $fmt = $$tagInfo{Writable};
3023
+ my $new = $$tagInfo{WasAdded} && $$et{OPTIONS}{XMPAutoConv};
3024
+ if ($fmt or $new) {
3025
+ $rawVal = $val; # save raw value for verbose output
3026
+ if (($new or $fmt eq 'rational') and ConvertRational($val)) {
3027
+ $rational = $rawVal;
3028
+ } else {
3029
+ $val = ConvertXMPDate($val, $new) if $new or $fmt eq 'date';
3030
+ }
3031
+ # protect against large binary data in unknown tags
3032
+ $$tagInfo{Binary} = 1 if $new and length($val) > 65536;
3033
+ }
3034
+ # store the value for this tag
3035
+ my $key = $et->FoundTag($tagInfo, $val) or return 0;
3036
+ # save original components of rational numbers (used when copying)
3037
+ $$et{RATIONAL}{$key} = $rational if defined $rational;
3038
+ # save structure/list information if necessary
3039
+ if (@structProps and (@structProps > 1 or defined $structProps[0][1]) and
3040
+ not $$et{NO_STRUCT})
3041
+ {
3042
+ $$et{TAG_EXTRA}{$key}{Struct} = \@structProps;
3043
+ $$et{IsStruct} = 1;
3044
+ }
3045
+ if ($ns and not $$tagInfo{StaticGroup1}) {
3046
+ # set group1 dynamically according to the namespace
3047
+ $et->SetGroup($key, "$$tagTablePtr{GROUPS}{0}-$ns");
3048
+ }
3049
+ if ($$et{OPTIONS}{Verbose}) {
3050
+ if ($added) {
3051
+ my $g1 = $et->GetGroup($key, 1);
3052
+ $et->VPrint(0, $$et{INDENT}, "[adding $g1:$tag]\n");
3053
+ }
3054
+ my $tagID = join('/',@$props);
3055
+ $et->VerboseInfo($tagID, $tagInfo, Value => $rawVal || $val);
3056
+ }
3057
+ return 1;
3058
+ }
3059
+
3060
+ #------------------------------------------------------------------------------
3061
+ # Recursively parse nested XMP data element
3062
+ # Inputs: 0) ExifTool ref, 1) tag table ref, 2) XMP data ref
3063
+ # 3) offset to start of XMP element, 4) offset to end of XMP element
3064
+ # 5) reference to array of enclosing XMP property names (undef if none)
3065
+ # 6) reference to blank node information hash
3066
+ # Returns: Number of contained XMP elements
3067
+ sub ParseXMPElement($$$;$$$$)
3068
+ {
3069
+ my ($et, $tagTablePtr, $dataPt, $start, $end, $propListPt, $blankInfo) = @_;
3070
+ my ($count, $nItems) = (0, 0);
3071
+ my $isWriting = $$et{XMP_CAPTURE};
3072
+ my $isSVG = $$et{XMP_IS_SVG};
3073
+
3074
+ # get our parse procs
3075
+ my ($attrProc, $foundProc);
3076
+ if ($$et{XMPParseOpts}) {
3077
+ $attrProc = $$et{XMPParseOpts}{AttrProc};
3078
+ $foundProc = $$et{XMPParseOpts}{FoundProc} || \&FoundXMP;
3079
+ } else {
3080
+ $foundProc = \&FoundXMP;
3081
+ }
3082
+ $start or $start = 0;
3083
+ $end or $end = length $$dataPt;
3084
+ $propListPt or $propListPt = [ ];
3085
+
3086
+ my $processBlankInfo;
3087
+ # create empty blank node information hash if necessary
3088
+ $blankInfo or $blankInfo = $processBlankInfo = { Prop => { } };
3089
+ # keep track of current nodeID at this nesting level
3090
+ my $oldNodeID = $$blankInfo{NodeID};
3091
+ pos($$dataPt) = $start;
3092
+
3093
+ Element: for (;;) {
3094
+ # all done if there isn't enough data for another element
3095
+ # (the smallest possible element is 4 bytes, ie. "<a/>")
3096
+ last if pos($$dataPt) > $end - 4;
3097
+ # reset nodeID before processing each element
3098
+ my $nodeID = $$blankInfo{NodeID} = $oldNodeID;
3099
+ # get next element
3100
+ last if $$dataPt !~ m{<([?/]?)([-\w:.\x80-\xff]+)([^>]*)>}sg or pos($$dataPt) > $end;
3101
+ # (the only reason we match '<[?/]' is to keep from scanning past the
3102
+ # "<?xpacket end..." terminator or other closing token, so
3103
+ next if $1;
3104
+ my ($prop, $attrs) = ($2, $3);
3105
+ my $valStart = pos($$dataPt);
3106
+ my $valEnd;
3107
+ # only look for closing token if this is not an empty element
3108
+ # (empty elements end with '/', ie. <a:b/>)
3109
+ if ($attrs !~ s/\/$//) {
3110
+ my $nesting = 1;
3111
+ my $tok;
3112
+ for (;;) {
3113
+ # this match fails with perl 5.6.2 (perl bug!), but it works without
3114
+ # the '(.*?)', so we must do it differently...
3115
+ # $$dataPt =~ m/(.*?)<\/$prop>/sg or last Element;
3116
+ # my $val2 = $1;
3117
+ # find next matching closing token, or the next opening token
3118
+ # of a nested same-named element
3119
+ if ($$dataPt !~ m{<(/?)$prop([-\w:.\x80-\xff]*)(.*?(/?))>}sg or
3120
+ pos($$dataPt) > $end)
3121
+ {
3122
+ $et->Warn("XMP format error (no closing tag for $prop)");
3123
+ last Element;
3124
+ }
3125
+ next if $2; # ignore opening properties with different names
3126
+ if ($1) {
3127
+ next if --$nesting;
3128
+ $valEnd = pos($$dataPt) - length($prop) - length($3) - 3;
3129
+ last; # this element is complete
3130
+ }
3131
+ # this is a nested opening token (or empty element)
3132
+ ++$nesting unless $4;
3133
+ }
3134
+ } else {
3135
+ $valEnd = $valStart;
3136
+ }
3137
+ $start = pos($$dataPt); # start from here the next time around
3138
+ my $parseResource;
3139
+ if ($prop eq 'rdf:li') {
3140
+ # impose a reasonable maximum on the number of items in a list
3141
+ if ($nItems > 999) {
3142
+ my ($tg,$ns);
3143
+ ($tg, $ns) = GetXMPTagID($propListPt) if $nItems == 1000;
3144
+ if ($isWriting) {
3145
+ $et->Warn("Excessive number of items for $ns:$tg. Processing may be slow.", 1) if $tg;
3146
+ } elsif (not $$et{OPTIONS}{IgnoreMinorErrors}) {
3147
+ $et->Warn("Excessive number of items for $ns:$tg. Extracted only the first 1000.", 2) if $tg;
3148
+ last;
3149
+ }
3150
+ }
3151
+ # add index to list items so we can keep them in order
3152
+ # (this also enables us to keep structure elements grouped properly
3153
+ # for lists of structures, like JobRef)
3154
+ # Note: the list index is prefixed by the number of digits so sorting
3155
+ # alphabetically gives the correct order while still allowing a flexible
3156
+ # number of digits -- this scheme allows up to 9 digits in the index,
3157
+ # with index numbers ranging from 0 to 999999999. The sequence is:
3158
+ # 10,11,12-19,210,211-299,3100,3101-3999,41000...9999999999.
3159
+ $prop .= ' ' . length($nItems) . $nItems;
3160
+ # reset LIST_TAGS at the start of the outtermost list
3161
+ # (avoids accumulating incorrectly-written elements in a correctly-written list)
3162
+ if (not $nItems and not grep /^rdf:li /, @$propListPt) {
3163
+ $$et{LIST_TAGS} = { };
3164
+ }
3165
+ ++$nItems;
3166
+ } elsif ($prop eq 'rdf:Description') {
3167
+ # remove unnecessary rdf:Description elements since parseType='Resource'
3168
+ # is more efficient (also necessary to make property path consistent)
3169
+ $parseResource = 1 if grep /^rdf:Description$/, @$propListPt;
3170
+ } elsif ($prop eq 'xmp:xmpmeta') {
3171
+ # patch MicrosoftPhoto unconformity
3172
+ $prop = 'x:xmpmeta';
3173
+ }
3174
+
3175
+ # extract property attributes
3176
+ my (%attrs, @attrs, $val);
3177
+ while ($attrs =~ m/(\S+?)\s*=\s*(['"])(.*?)\2/sg) {
3178
+ push @attrs, $1; # preserve order
3179
+ $attrs{$1} = $3;
3180
+ }
3181
+
3182
+ # hook for special parsing of attributes
3183
+ if ($attrProc) {
3184
+ $val = substr($$dataPt, $valStart, $valEnd - $valStart);
3185
+ if (&$attrProc(\@attrs, \%attrs, \$prop, \$val)) {
3186
+ # the value was changed, so reset $valStart/$valEnd to use $val instead
3187
+ $valStart = $valEnd;
3188
+ }
3189
+ }
3190
+
3191
+ # add nodeID to property path (with leading ' #') if it exists
3192
+ if (defined $attrs{'rdf:nodeID'}) {
3193
+ $nodeID = $$blankInfo{NodeID} = $attrs{'rdf:nodeID'};
3194
+ delete $attrs{'rdf:nodeID'};
3195
+ $prop .= ' #' . $nodeID;
3196
+ undef $parseResource; # can't ignore if this is a node
3197
+ }
3198
+
3199
+ # push this property name onto our hierarchy list
3200
+ push @$propListPt, $prop unless $parseResource;
3201
+
3202
+ if ($isSVG) {
3203
+ # ignore everything but top level SVG tags and metadata unless Unknown set
3204
+ unless ($$et{OPTIONS}{Unknown} > 1 or $$et{OPTIONS}{Verbose}) {
3205
+ if (@$propListPt > 1 and $$propListPt[1] !~ /\b(metadata|desc|title)$/) {
3206
+ pop @$propListPt;
3207
+ next;
3208
+ }
3209
+ }
3210
+ if ($prop eq 'svg' or $prop eq 'metadata') {
3211
+ # add svg namespace prefix if missing to ignore these entries in the tag name
3212
+ $$propListPt[-1] = "svg:$prop";
3213
+ }
3214
+ }
3215
+
3216
+ # handle properties inside element attributes (RDF shorthand format):
3217
+ # (attributes take the form a:b='c' or a:b="c")
3218
+ my ($shortName, $shorthand, $ignored);
3219
+ foreach $shortName (@attrs) {
3220
+ my $propName = $shortName;
3221
+ my ($ns, $name);
3222
+ if ($propName =~ /(.*?):(.*)/) {
3223
+ $ns = $1; # specified namespace
3224
+ $name = $2;
3225
+ } elsif ($prop =~ /(\S*?):/) {
3226
+ $ns = $1; # assume same namespace as parent
3227
+ $name = $propName;
3228
+ $propName = "$ns:$name"; # generate full property name
3229
+ } else {
3230
+ # a property qualifier is the only property name that may not
3231
+ # have a namespace, and a qualifier shouldn't have attributes,
3232
+ # but what the heck, let's allow this anyway
3233
+ $ns = '';
3234
+ $name = $propName;
3235
+ }
3236
+ # keep track of the namespace prefixes used
3237
+ if ($ns eq 'xmlns') {
3238
+ unless ($attrs{$shortName}) {
3239
+ $et->WarnOnce("Duplicate namespace '$shortName'");
3240
+ next;
3241
+ }
3242
+ $curNS{$name} = $attrs{$shortName};
3243
+ my $stdNS = $uri2ns{$attrs{$shortName}};
3244
+ # translate namespace if non-standard (except 'x' and 'iX')
3245
+ if ($stdNS and $name ne $stdNS and $stdNS ne 'x' and $stdNS ne 'iX') {
3246
+ # make a copy of the standard translations so we can modify it
3247
+ $xlatNamespace = { %stdXlatNS } if $xlatNamespace eq \%stdXlatNS;
3248
+ # translate this namespace prefix to the standard version
3249
+ $$xlatNamespace{$name} = $stdXlatNS{$stdNS} || $stdNS;
3250
+ }
3251
+ }
3252
+ if ($isWriting) {
3253
+ # keep track of our namespaces when writing
3254
+ if ($ns eq 'xmlns') {
3255
+ my $stdNS = $uri2ns{$attrs{$shortName}};
3256
+ unless ($stdNS and ($stdNS eq 'x' or $stdNS eq 'iX')) {
3257
+ my $nsUsed = $$et{XMP_NS};
3258
+ $$nsUsed{$name} = $attrs{$shortName} unless defined $$nsUsed{$name};
3259
+ }
3260
+ delete $attrs{$shortName}; # (handled by namespace logic)
3261
+ next;
3262
+ } elsif ($recognizedAttrs{$propName}) {
3263
+ # save UUID to use same ID when writing
3264
+ if ($propName eq 'rdf:about') {
3265
+ if (not $$et{XMP_ABOUT}) {
3266
+ $$et{XMP_ABOUT} = $attrs{$shortName};
3267
+ } elsif ($$et{XMP_ABOUT} ne $attrs{$shortName}) {
3268
+ $et->Error("Different 'rdf:about' attributes not handled", 1);
3269
+ }
3270
+ }
3271
+ next;
3272
+ }
3273
+ }
3274
+ my $shortVal = $attrs{$shortName};
3275
+ if ($ignoreNamespace{$ns}) {
3276
+ $ignored = $propName;
3277
+ # handle special attributes (extract as tags only once if not empty)
3278
+ if (ref $recognizedAttrs{$propName} and $shortVal) {
3279
+ my ($tbl, $id, $name) = @{$recognizedAttrs{$propName}};
3280
+ my $tval = UnescapeXML($shortVal);
3281
+ unless (defined $$et{VALUE}{$name} and $$et{VALUE}{$name} eq $tval) {
3282
+ $et->HandleTag(GetTagTable($tbl), $id, $tval);
3283
+ }
3284
+ }
3285
+ next;
3286
+ }
3287
+ delete $attrs{$shortName}; # don't re-use this attribute
3288
+ push @$propListPt, $propName;
3289
+ # save this shorthand XMP property
3290
+ if (defined $nodeID) {
3291
+ SaveBlankInfo($blankInfo, $propListPt, $shortVal);
3292
+ } elsif ($isWriting) {
3293
+ CaptureXMP($et, $propListPt, $shortVal);
3294
+ } else {
3295
+ &$foundProc($et, $tagTablePtr, $propListPt, $shortVal);
3296
+ }
3297
+ pop @$propListPt;
3298
+ $shorthand = 1;
3299
+ }
3300
+ if ($isWriting) {
3301
+ if (ParseXMPElement($et, $tagTablePtr, $dataPt, $valStart, $valEnd,
3302
+ $propListPt, $blankInfo))
3303
+ {
3304
+ # (no value since we found more properties within this one)
3305
+ # set an error on any ignored attributes here, because they will be lost
3306
+ $$et{XMP_ERROR} = "Can't handle XMP attribute '$ignored'" if $ignored;
3307
+ } elsif (not $shorthand or $valEnd != $valStart) {
3308
+ $val = substr($$dataPt, $valStart, $valEnd - $valStart);
3309
+ # remove comments and whitespace from rdf:Description only
3310
+ if ($prop eq 'rdf:Description') {
3311
+ $val =~ s/<!--.*?-->//g; $val =~ s/^\s+//; $val =~ s/\s+$//;
3312
+ }
3313
+ if (defined $nodeID) {
3314
+ SaveBlankInfo($blankInfo, $propListPt, $val, \%attrs);
3315
+ } else {
3316
+ CaptureXMP($et, $propListPt, $val, \%attrs);
3317
+ }
3318
+ }
3319
+ } else {
3320
+ # look for additional elements contained within this one
3321
+ if ($valStart == $valEnd or
3322
+ !ParseXMPElement($et, $tagTablePtr, $dataPt, $valStart, $valEnd,
3323
+ $propListPt, $blankInfo))
3324
+ {
3325
+ my $wasEmpty;
3326
+ unless (defined $val) {
3327
+ $val = substr($$dataPt, $valStart, $valEnd - $valStart);
3328
+ # remove comments and whitespace from rdf:Description only
3329
+ if ($prop eq 'rdf:Description' and $val) {
3330
+ $val =~ s/<!--.*?-->//g; $val =~ s/^\s+//; $val =~ s/\s+$//;
3331
+ }
3332
+ # if element value is empty, take value from 'resource' attribute
3333
+ # (preferentially) or 'about' attribute (if no 'resource')
3334
+ if ($val eq '' and ($attrs =~ /\bresource=(['"])(.*?)\1/ or
3335
+ $attrs =~ /\babout=(['"])(.*?)\1/))
3336
+ {
3337
+ $val = $2;
3338
+ $wasEmpty = 1;
3339
+ }
3340
+ }
3341
+ # there are no contained elements, so this must be a simple property value
3342
+ # (unless we already extracted shorthand values from this element)
3343
+ if (length $val or not $shorthand) {
3344
+ my $lastProp = $$propListPt[-1];
3345
+ if (defined $nodeID) {
3346
+ SaveBlankInfo($blankInfo, $propListPt, $val);
3347
+ } elsif ($lastProp eq 'rdf:type' and $wasEmpty) {
3348
+ # do not extract empty structure types (for now)
3349
+ } elsif ($lastProp =~ /^et:(desc|prt|val)$/ and ($count or $1 eq 'desc')) {
3350
+ # ignore et:desc, and et:val if preceded by et:prt
3351
+ --$count;
3352
+ } else {
3353
+ &$foundProc($et, $tagTablePtr, $propListPt, $val, \%attrs);
3354
+ }
3355
+ }
3356
+ }
3357
+ }
3358
+ pop @$propListPt unless $parseResource;
3359
+ ++$count;
3360
+ last if $start >= $end;
3361
+ pos($$dataPt) = $start;
3362
+ $$dataPt =~ /\G\s+/gc; # skip white space after closing token
3363
+ }
3364
+ #
3365
+ # process resources referenced by blank nodeID's
3366
+ #
3367
+ if ($processBlankInfo and %{$$blankInfo{Prop}}) {
3368
+ ProcessBlankInfo($et, $tagTablePtr, $blankInfo, $isWriting);
3369
+ %$blankInfo = (); # free some memory
3370
+ }
3371
+ return $count; # return the number of elements found at this level
3372
+ }
3373
+
3374
+ #------------------------------------------------------------------------------
3375
+ # Process XMP data
3376
+ # Inputs: 0) ExifTool object reference, 1) DirInfo reference, 2) Pointer to tag table
3377
+ # Returns: 1 on success
3378
+ # Notes: The following flavours of XMP files are currently recognized:
3379
+ # - standard XMP with xpacket, x:xmpmeta and rdf:RDF elements
3380
+ # - XMP that is missing the xpacket and/or x:xmpmeta elements
3381
+ # - mutant Microsoft XMP with xmp:xmpmeta element
3382
+ # - XML files beginning with "<xml"
3383
+ # - SVG files that begin with "<svg" or "<!DOCTYPE svg"
3384
+ # - XMP and XML files beginning with a UTF-8 byte order mark
3385
+ # - UTF-8, UTF-16 and UTF-32 encoded XMP
3386
+ # - erroneously double-UTF8 encoded XMP
3387
+ # - otherwise valid files with leading XML comment
3388
+ sub ProcessXMP($$;$)
3389
+ {
3390
+ my ($et, $dirInfo, $tagTablePtr) = @_;
3391
+ my $dataPt = $$dirInfo{DataPt};
3392
+ my ($dirStart, $dirLen, $dataLen, $double);
3393
+ my ($buff, $fmt, $hasXMP, $isXML, $isRDF, $isSVG);
3394
+ my $rtnVal = 0;
3395
+ my $bom = 0;
3396
+ undef %curNS;
3397
+
3398
+ # ignore non-standard XMP while in strict MWG compatibility mode
3399
+ if ($Image::ExifTool::MWG::strict and not $$et{XMP_CAPTURE} and
3400
+ $$et{FILE_TYPE} =~ /^(JPEG|TIFF|PSD)$/)
3401
+ {
3402
+ my $path = $et->MetadataPath();
3403
+ unless ($path =~ /^(JPEG-APP1-XMP|TIFF-IFD0-XMP|PSD-XMP)$/) {
3404
+ $et->Warn("Ignored non-standard XMP at $path");
3405
+ return 1;
3406
+ }
3407
+ }
3408
+ if ($dataPt) {
3409
+ $dirStart = $$dirInfo{DirStart} || 0;
3410
+ $dirLen = $$dirInfo{DirLen} || (length($$dataPt) - $dirStart);
3411
+ $dataLen = $$dirInfo{DataLen} || length($$dataPt);
3412
+ # check leading BOM (may indicate double-encoded UTF)
3413
+ pos($$dataPt) = $dirStart;
3414
+ $double = $1 if $$dataPt =~ /\G((\0\0)?\xfe\xff|\xff\xfe(\0\0)?|\xef\xbb\xbf)\0*<\0*\?\0*x\0*p\0*a\0*c\0*k\0*e\0*t/g;
3415
+ } else {
3416
+ my ($type, $buf2, $buf3);
3417
+ # read information from XMP file
3418
+ my $raf = $$dirInfo{RAF} or return 0;
3419
+ $raf->Read($buff, 256) or return 0;
3420
+ ($buf2 = $buff) =~ tr/\0//d; # cheap conversion to UTF-8
3421
+ # remove leading comments if they exist (ie. ImageIngester)
3422
+ while ($buf2 =~ /^\s*<!--/) {
3423
+ # remove the comment if it is complete
3424
+ if ($buf2 =~ s/^\s*<!--.*?-->\s+//s) {
3425
+ # continue with parsing if we have more than 128 bytes remaining
3426
+ next if length $buf2 > 128;
3427
+ } else {
3428
+ # don't read more than 10k when looking for the end of comment
3429
+ return 0 if length($buf2) > 10000;
3430
+ }
3431
+ $raf->Read($buf3, 256) or last; # read more data if available
3432
+ $buff .= $buf3;
3433
+ $buf3 =~ tr/\0//d;
3434
+ $buf2 .= $buf3;
3435
+ }
3436
+ # check to see if this is XMP format
3437
+ # (CS2 writes .XMP files without the "xpacket begin")
3438
+ if ($buf2 =~ /^\s*(<\?xpacket begin=|<x(mp)?:x[ma]pmeta)/) {
3439
+ $hasXMP = 1;
3440
+ } else {
3441
+ # also recognize XML files and .XMP files with BOM and without x:xmpmeta
3442
+ if ($buf2 =~ /^(\xfe\xff)(<\?xml|<rdf:RDF|<x(mp)?:x[ma]pmeta)/g) {
3443
+ $fmt = 'n'; # UTF-16 or 32 MM with BOM
3444
+ } elsif ($buf2 =~ /^(\xff\xfe)(<\?xml|<rdf:RDF|<x(mp)?:x[ma]pmeta)/g) {
3445
+ $fmt = 'v'; # UTF-16 or 32 II with BOM
3446
+ } elsif ($buf2 =~ /^(\xef\xbb\xbf)?(<\?xml|<rdf:RDF|<x(mp)?:x[ma]pmeta)/g) {
3447
+ $fmt = 0; # UTF-8 with BOM or unknown encoding without BOM
3448
+ } elsif ($buf2 =~ /^(\xfe\xff|\xff\xfe|\xef\xbb\xbf)(<\?xpacket begin=)/g) {
3449
+ $double = $1; # double-encoded UTF
3450
+ } else {
3451
+ return 0; # not recognized XMP or XML
3452
+ }
3453
+ $bom = 1 if $1;
3454
+ if ($2 eq '<?xml') {
3455
+ if (defined $fmt and not $fmt and $buf2 =~ /^[^\n\r]*[\n\r]+<\?aid /s) {
3456
+ if ($$et{XMP_CAPTURE}) {
3457
+ $et->Error("ExifTool does not yet support writing of INX files");
3458
+ return 0;
3459
+ }
3460
+ $type = 'INX';
3461
+ } elsif ($buf2 =~ /<x(mp)?:x[ma]pmeta/) {
3462
+ $hasXMP = 1;
3463
+ } else {
3464
+ # identify SVG images and PLIST files by DOCTYPE if available
3465
+ if ($buf2 =~ /<!DOCTYPE\s+(\w+)/) {
3466
+ if ($1 eq 'svg') {
3467
+ $isSVG = 1;
3468
+ } elsif ($1 eq 'plist') {
3469
+ $type = 'PLIST';
3470
+ } else {
3471
+ return 0;
3472
+ }
3473
+ } elsif ($buf2 =~ /<svg[\s>]/) {
3474
+ $isSVG = 1;
3475
+ } elsif ($buf2 =~ /<rdf:RDF/) {
3476
+ $isRDF = 1;
3477
+ } elsif ($buf2 =~ /<plist[\s>]/) {
3478
+ $type = 'PLIST';
3479
+ }
3480
+ if ($isSVG and $$et{XMP_CAPTURE}) {
3481
+ $et->Error("ExifTool does not yet support writing of SVG images");
3482
+ return 0;
3483
+ }
3484
+ }
3485
+ $isXML = 1;
3486
+ } elsif ($2 eq '<rdf:RDF') {
3487
+ $isRDF = 1; # recognize XMP without x:xmpmeta element
3488
+ }
3489
+ if ($buff =~ /^\0\0/) {
3490
+ $fmt = 'N'; # UTF-32 MM with or without BOM
3491
+ } elsif ($buff =~ /^..\0\0/s) {
3492
+ $fmt = 'V'; # UTF-32 II with or without BOM
3493
+ } elsif (not $fmt) {
3494
+ if ($buff =~ /^\0/) {
3495
+ $fmt = 'n'; # UTF-16 MM without BOM
3496
+ } elsif ($buff =~ /^.\0/s) {
3497
+ $fmt = 'v'; # UTF-16 II without BOM
3498
+ }
3499
+ }
3500
+ }
3501
+ my $size;
3502
+ if ($type) {
3503
+ if ($type eq 'PLIST') {
3504
+ my $ext = $$et{FILE_EXT};
3505
+ $type = $ext if $ext and $ext eq 'MODD';
3506
+ $tagTablePtr = GetTagTable('Image::ExifTool::PLIST::Main');
3507
+ $$dirInfo{XMPParseOpts}{FoundProc} = \&Image::ExifTool::PLIST::FoundTag;
3508
+ }
3509
+ } else {
3510
+ if ($isSVG) {
3511
+ $type = 'SVG';
3512
+ } elsif ($isXML and not $hasXMP and not $isRDF) {
3513
+ $type = 'XML';
3514
+ }
3515
+ }
3516
+ $et->SetFileType($type);
3517
+
3518
+ if ($type and $type eq 'INX') {
3519
+ # brute force search for first XMP packet in INX file
3520
+ # start: '<![CDATA[<?xpacket begin' (24 bytes)
3521
+ # end: '<?xpacket end="r"?>]]>' (22 bytes)
3522
+ $raf->Seek(0, 0) or return 0;
3523
+ $raf->Read($buff, 65536) or return 1;
3524
+ for (;;) {
3525
+ last if $buff =~ /<!\[CDATA\[<\?xpacket begin/g;
3526
+ $raf->Read($buf2, 65536) or return 1;
3527
+ $buff = substr($buff, -24) . $buf2;
3528
+ }
3529
+ $buff = substr($buff, pos($buff) - 15); # (discard '<![CDATA[' and before)
3530
+ for (;;) {
3531
+ last if $buff =~ /<\?xpacket end="[rw]"\?>\]\]>/g;
3532
+ my $n = length $buff;
3533
+ $raf->Read($buf2, 65536) or $et->Warn('Missing xpacket end'), return 1;
3534
+ $buff .= $buf2;
3535
+ pos($buff) = $n - 22; # don't miss end pattern if it was split
3536
+ }
3537
+ $size = pos($buff) - 3; # (discard ']]>' and after)
3538
+ $buff = substr($buff, 0, $size);
3539
+ } else {
3540
+ # read the entire file
3541
+ $raf->Seek(0, 2) or return 0;
3542
+ $size = $raf->Tell() or return 0;
3543
+ $raf->Seek(0, 0) or return 0;
3544
+ $raf->Read($buff, $size) == $size or return 0;
3545
+ }
3546
+ $dataPt = \$buff;
3547
+ $dirStart = 0;
3548
+ $dirLen = $dataLen = $size;
3549
+ }
3550
+
3551
+ # decode the first layer of double-encoded UTF text (if necessary)
3552
+ if ($double) {
3553
+ my ($buf2, $fmt);
3554
+ $buff = substr($$dataPt, $dirStart + length $double); # remove leading BOM
3555
+ Image::ExifTool::SetWarning(undef); # clear old warning
3556
+ local $SIG{'__WARN__'} = \&Image::ExifTool::SetWarning;
3557
+ # assume that character data has been re-encoded in UTF, so re-pack
3558
+ # as characters and look for warnings indicating a false assumption
3559
+ if ($double eq "\xef\xbb\xbf") {
3560
+ require Image::ExifTool::Charset;
3561
+ my $uni = Image::ExifTool::Charset::Decompose(undef,$buff,'UTF8');
3562
+ $buf2 = pack('C*', @$uni);
3563
+ } else {
3564
+ if (length($double) == 2) {
3565
+ $fmt = ($double eq "\xfe\xff") ? 'n' : 'v';
3566
+ } else {
3567
+ $fmt = ($double eq "\0\0\xfe\xff") ? 'N' : 'V';
3568
+ }
3569
+ $buf2 = pack('C*', unpack("$fmt*",$buff));
3570
+ }
3571
+ if (Image::ExifTool::GetWarning()) {
3572
+ $et->Warn('Superfluous BOM at start of XMP');
3573
+ $dataPt = \$buff; # use XMP with the BOM removed
3574
+ } else {
3575
+ $et->Warn('XMP is double UTF-encoded');
3576
+ $dataPt = \$buf2; # use the decoded XMP
3577
+ }
3578
+ $dirStart = 0;
3579
+ $dirLen = $dataLen = length $$dataPt;
3580
+ }
3581
+
3582
+ # extract XMP as a block if specified
3583
+ my $blockName = $$dirInfo{BlockInfo} ? $$dirInfo{BlockInfo}{Name} : 'XMP';
3584
+ if (($$et{REQ_TAG_LOOKUP}{lc $blockName} or ($$et{TAGS_FROM_FILE} and
3585
+ not $$et{EXCL_TAG_LOOKUP}{lc $blockName})) and not $isSVG)
3586
+ {
3587
+ $et->FoundTag($$dirInfo{BlockInfo} || 'XMP', substr($$dataPt, $dirStart, $dirLen));
3588
+ }
3589
+
3590
+ $tagTablePtr or $tagTablePtr = GetTagTable('Image::ExifTool::XMP::Main');
3591
+ if ($et->Options('Verbose') and not $$et{XMP_CAPTURE}) {
3592
+ my $dirType = $isSVG ? 'SVG' : $$tagTablePtr{GROUPS}{1};
3593
+ $et->VerboseDir($dirType, 0, $dirLen);
3594
+ }
3595
+ #
3596
+ # convert UTF-16 or UTF-32 encoded XMP to UTF-8 if necessary
3597
+ #
3598
+ my $begin = '<?xpacket begin=';
3599
+ my $dirEnd = $dirStart + $dirLen;
3600
+ pos($$dataPt) = $dirStart;
3601
+ delete $$et{XMP_IS_XML};
3602
+ delete $$et{XMP_IS_SVG};
3603
+ if ($isXML or $isRDF) {
3604
+ $$et{XMP_IS_XML} = $isXML;
3605
+ $$et{XMP_IS_SVG} = $isSVG;
3606
+ $$et{XMP_NO_XPACKET} = 1 + $bom;
3607
+ } elsif ($$dataPt =~ /\G\Q$begin\E/gc) {
3608
+ delete $$et{XMP_NO_XPACKET};
3609
+ } elsif ($$dataPt =~ /<x(mp)?:x[ma]pmeta/gc and
3610
+ pos($$dataPt) > $dirStart and pos($$dataPt) < $dirEnd)
3611
+ {
3612
+ $$et{XMP_NO_XPACKET} = 1 + $bom;
3613
+ } else {
3614
+ delete $$et{XMP_NO_XPACKET};
3615
+ # check for UTF-16 encoding (insert one \0 between characters)
3616
+ $begin = join "\0", split //, $begin;
3617
+ # must reset pos because it was killed by previous unsuccessful //g match
3618
+ pos($$dataPt) = $dirStart;
3619
+ if ($$dataPt =~ /\G(\0)?\Q$begin\E\0./sg) {
3620
+ # validate byte ordering by checking for U+FEFF character
3621
+ if ($1) {
3622
+ # should be big-endian since we had a leading \0
3623
+ $fmt = 'n' if $$dataPt =~ /\G\xfe\xff/g;
3624
+ } else {
3625
+ $fmt = 'v' if $$dataPt =~ /\G\0\xff\xfe/g;
3626
+ }
3627
+ } else {
3628
+ # check for UTF-32 encoding (with three \0's between characters)
3629
+ $begin =~ s/\0/\0\0\0/g;
3630
+ pos($$dataPt) = $dirStart;
3631
+ if ($$dataPt !~ /\G(\0\0\0)?\Q$begin\E\0\0\0./sg) {
3632
+ $fmt = 0; # set format to zero as indication we didn't find encoded XMP
3633
+ } elsif ($1) {
3634
+ # should be big-endian
3635
+ $fmt = 'N' if $$dataPt =~ /\G\0\0\xfe\xff/g;
3636
+ } else {
3637
+ $fmt = 'V' if $$dataPt =~ /\G\0\0\0\xff\xfe\0\0/g;
3638
+ }
3639
+ }
3640
+ defined $fmt or $et->Warn('XMP character encoding error');
3641
+ }
3642
+ if ($fmt) {
3643
+ # trim if necessary to avoid converting non-UTF data
3644
+ if ($dirStart or $dirEnd != length($$dataPt)) {
3645
+ $buff = substr($$dataPt, $dirStart, $dirLen);
3646
+ $dataPt = \$buff;
3647
+ }
3648
+ # convert into UTF-8
3649
+ if ($] >= 5.006001) {
3650
+ $buff = pack('C0U*', unpack("$fmt*",$$dataPt));
3651
+ } else {
3652
+ $buff = Image::ExifTool::PackUTF8(unpack("$fmt*",$$dataPt));
3653
+ }
3654
+ $dataPt = \$buff;
3655
+ $dirStart = 0;
3656
+ $dirLen = length $$dataPt;
3657
+ $dirEnd = $dirStart + $dirLen;
3658
+ }
3659
+ # initialize namespace translation
3660
+ $xlatNamespace = \%stdXlatNS;
3661
+
3662
+ # avoid scanning for XMP later in case ScanForXMP is set
3663
+ $$et{FoundXMP} = 1;
3664
+
3665
+ # set XMP parsing options
3666
+ $$et{XMPParseOpts} = $$dirInfo{XMPParseOpts};
3667
+
3668
+ # need to preserve list indices to be able to handle multi-dimensional lists
3669
+ my $keepFlat;
3670
+ if ($$et{OPTIONS}{Struct}) {
3671
+ if ($$et{OPTIONS}{Struct} eq '2') {
3672
+ $keepFlat = 1; # preserve flattened tags
3673
+ # setting NO_LIST to 0 combines list items in a TAG_EXTRA "NoList" element
3674
+ # to allow them to be re-listed later if necessary. A "NoListDel" element
3675
+ # is also created for tags that wouldn't have existed.
3676
+ $$et{NO_LIST} = 0;
3677
+ } else {
3678
+ $$et{NO_LIST} = 1;
3679
+ }
3680
+ }
3681
+
3682
+ # don't generate structures if this isn't real XMP
3683
+ $$et{NO_STRUCT} = 1 if $$dirInfo{BlockInfo};
3684
+
3685
+ # parse the XMP
3686
+ if (ParseXMPElement($et, $tagTablePtr, $dataPt, $dirStart, $dirEnd)) {
3687
+ $rtnVal = 1;
3688
+ } elsif ($$dirInfo{DirName} and $$dirInfo{DirName} eq 'XMP') {
3689
+ # if DirName was 'XMP' we expect well-formed XMP, so set Warning since it wasn't
3690
+ $et->Warn('Invalid XMP');
3691
+ }
3692
+ delete $$et{NO_STRUCT};
3693
+
3694
+ # return DataPt if successful in case we want it for writing
3695
+ $$dirInfo{DataPt} = $dataPt if $rtnVal and $$dirInfo{RAF};
3696
+
3697
+ # restore structures if necessary
3698
+ if ($$et{IsStruct}) {
3699
+ require 'Image/ExifTool/XMPStruct.pl';
3700
+ RestoreStruct($et, $keepFlat);
3701
+ delete $$et{IsStruct};
3702
+ }
3703
+ # reset NO_LIST flag (must do this _after_ RestoreStruct() above)
3704
+ delete $$et{NO_LIST};
3705
+ delete $$et{XMPParseOpts};
3706
+
3707
+ undef %curNS;
3708
+ return $rtnVal;
3709
+ }
3710
+
3711
+
3712
+ 1; #end
3713
+
3714
+ __END__
3715
+
3716
+ =head1 NAME
3717
+
3718
+ Image::ExifTool::XMP - Read XMP meta information
3719
+
3720
+ =head1 SYNOPSIS
3721
+
3722
+ This module is loaded automatically by Image::ExifTool when required.
3723
+
3724
+ =head1 DESCRIPTION
3725
+
3726
+ XMP stands for Extensible Metadata Platform. It is a format based on XML
3727
+ that Adobe developed for embedding metadata information in image files.
3728
+ This module contains the definitions required by Image::ExifTool to read XMP
3729
+ information.
3730
+
3731
+ =head1 AUTHOR
3732
+
3733
+ Copyright 2003-2014, Phil Harvey (phil at owl.phy.queensu.ca)
3734
+
3735
+ This library is free software; you can redistribute it and/or modify it
3736
+ under the same terms as Perl itself.
3737
+
3738
+ =head1 REFERENCES
3739
+
3740
+ =over 4
3741
+
3742
+ =item L<http://www.adobe.com/devnet/xmp/>
3743
+
3744
+ =item L<http://www.w3.org/TR/rdf-syntax-grammar/>
3745
+
3746
+ =item L<http://www.iptc.org/IPTC4XMP/>
3747
+
3748
+ =back
3749
+
3750
+ =head1 SEE ALSO
3751
+
3752
+ L<Image::ExifTool::TagNames/XMP Tags>,
3753
+ L<Image::ExifTool(3pm)|Image::ExifTool>
3754
+
3755
+ =cut