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