mini_exiftool_vendored 8.9.7.v2 → 9.2.7.v1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1023) hide show
  1. checksums.yaml +7 -0
  2. data/lib/mini_exiftool_vendored.rb +1 -1
  3. data/lib/mini_exiftool_vendored/version.rb +2 -2
  4. data/mini_exiftool_vendored.gemspec +1 -1
  5. data/vendor/Image-ExifTool-9.27/Changes +6162 -0
  6. data/vendor/Image-ExifTool-9.27/MANIFEST +858 -0
  7. data/vendor/Image-ExifTool-9.27/META.yml +26 -0
  8. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/Makefile.PL +0 -0
  9. data/vendor/Image-ExifTool-9.27/README +227 -0
  10. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27/arg_files}/exif2iptc.args +0 -0
  11. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27/arg_files}/exif2xmp.args +0 -0
  12. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27/arg_files}/gps2xmp.args +0 -0
  13. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27/arg_files}/iptc2exif.args +0 -0
  14. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27/arg_files}/iptc2xmp.args +0 -0
  15. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27/arg_files}/iptcCore.args +0 -0
  16. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27/arg_files}/pdf2xmp.args +0 -0
  17. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27/arg_files}/xmp2exif.args +0 -0
  18. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27/arg_files}/xmp2gps.args +0 -0
  19. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27/arg_files}/xmp2iptc.args +0 -0
  20. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27/arg_files}/xmp2pdf.args +0 -0
  21. data/vendor/Image-ExifTool-9.27/config_files/ExifTool_config +299 -0
  22. data/vendor/Image-ExifTool-9.27/config_files/convert_regions.config +81 -0
  23. data/vendor/Image-ExifTool-9.27/exiftool +5655 -0
  24. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27/fmt_files}/gpx.fmt +0 -0
  25. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27/fmt_files}/gpx_wpt.fmt +0 -0
  26. data/vendor/Image-ExifTool-9.27/fmt_files/kml.fmt +53 -0
  27. data/vendor/Image-ExifTool-9.27/html/ExifTool.html +1951 -0
  28. data/vendor/Image-ExifTool-9.27/html/MIE1.1-20070121.pdf +0 -0
  29. data/vendor/Image-ExifTool-9.27/html/Shift.html +173 -0
  30. data/vendor/Image-ExifTool-9.27/html/TagNames/AFCP.html +49 -0
  31. data/vendor/Image-ExifTool-9.27/html/TagNames/AIFF.html +146 -0
  32. data/vendor/Image-ExifTool-9.27/html/TagNames/APE.html +149 -0
  33. data/vendor/Image-ExifTool-9.27/html/TagNames/APP12.html +188 -0
  34. data/vendor/Image-ExifTool-9.27/html/TagNames/ASF.html +1075 -0
  35. data/vendor/Image-ExifTool-9.27/html/TagNames/BMP.html +110 -0
  36. data/vendor/Image-ExifTool-9.27/html/TagNames/Canon.html +8021 -0
  37. data/vendor/Image-ExifTool-9.27/html/TagNames/CanonCustom.html +2044 -0
  38. data/vendor/Image-ExifTool-9.27/html/TagNames/CanonRaw.html +561 -0
  39. data/vendor/Image-ExifTool-9.27/html/TagNames/CanonVRD.html +1222 -0
  40. data/vendor/Image-ExifTool-9.27/html/TagNames/Casio.html +1569 -0
  41. data/vendor/Image-ExifTool-9.27/html/TagNames/Composite.html +659 -0
  42. data/vendor/Image-ExifTool-9.27/html/TagNames/DICOM.html +15762 -0
  43. data/vendor/Image-ExifTool-9.27/html/TagNames/DNG.html +273 -0
  44. data/vendor/Image-ExifTool-9.27/html/TagNames/DV.html +75 -0
  45. data/vendor/Image-ExifTool-9.27/html/TagNames/DarwinCore.html +1445 -0
  46. data/vendor/Image-ExifTool-9.27/html/TagNames/DjVu.html +312 -0
  47. data/vendor/Image-ExifTool-9.27/html/TagNames/EXE.html +697 -0
  48. data/vendor/Image-ExifTool-9.27/html/TagNames/EXIF.html +3244 -0
  49. data/vendor/Image-ExifTool-9.27/html/TagNames/Extra.html +300 -0
  50. data/vendor/Image-ExifTool-9.27/html/TagNames/FLAC.html +183 -0
  51. data/vendor/Image-ExifTool-9.27/html/TagNames/FLIR.html +615 -0
  52. data/vendor/Image-ExifTool-9.27/html/TagNames/Flash.html +419 -0
  53. data/vendor/Image-ExifTool-9.27/html/TagNames/FlashPix.html +1435 -0
  54. data/vendor/Image-ExifTool-9.27/html/TagNames/Font.html +485 -0
  55. data/vendor/Image-ExifTool-9.27/html/TagNames/FotoStation.html +103 -0
  56. data/vendor/Image-ExifTool-9.27/html/TagNames/FujiFilm.html +636 -0
  57. data/vendor/Image-ExifTool-9.27/html/TagNames/GE.html +40 -0
  58. data/vendor/Image-ExifTool-9.27/html/TagNames/GIF.html +116 -0
  59. data/vendor/Image-ExifTool-9.27/html/TagNames/GIMP.html +140 -0
  60. data/vendor/Image-ExifTool-9.27/html/TagNames/GPS.html +221 -0
  61. data/vendor/Image-ExifTool-9.27/html/TagNames/GeoTiff.html +2177 -0
  62. data/vendor/Image-ExifTool-9.27/html/TagNames/H264.html +387 -0
  63. data/vendor/Image-ExifTool-9.27/html/TagNames/HP.html +155 -0
  64. data/vendor/Image-ExifTool-9.27/html/TagNames/HTML.html +666 -0
  65. data/vendor/Image-ExifTool-9.27/html/TagNames/ICC_Profile.html +710 -0
  66. data/vendor/Image-ExifTool-9.27/html/TagNames/ID3.html +1429 -0
  67. data/vendor/Image-ExifTool-9.27/html/TagNames/IPTC.html +895 -0
  68. data/vendor/Image-ExifTool-9.27/html/TagNames/ITC.html +90 -0
  69. data/vendor/Image-ExifTool-9.27/html/TagNames/JFIF.html +61 -0
  70. data/vendor/Image-ExifTool-9.27/html/TagNames/JPEG.html +523 -0
  71. data/vendor/Image-ExifTool-9.27/html/TagNames/JVC.html +56 -0
  72. data/vendor/Image-ExifTool-9.27/html/TagNames/Jpeg2000.html +464 -0
  73. data/vendor/Image-ExifTool-9.27/html/TagNames/Kodak.html +1759 -0
  74. data/vendor/Image-ExifTool-9.27/html/TagNames/KyoceraRaw.html +92 -0
  75. data/vendor/Image-ExifTool-9.27/html/TagNames/LNK.html +478 -0
  76. data/vendor/Image-ExifTool-9.27/html/TagNames/Leaf.html +870 -0
  77. data/vendor/Image-ExifTool-9.27/html/TagNames/M2TS.html +133 -0
  78. data/vendor/Image-ExifTool-9.27/html/TagNames/MIE.html +1026 -0
  79. data/vendor/Image-ExifTool-9.27/html/TagNames/MIFF.html +196 -0
  80. data/vendor/Image-ExifTool-9.27/html/TagNames/MNG.html +847 -0
  81. data/vendor/Image-ExifTool-9.27/html/TagNames/MPC.html +97 -0
  82. data/vendor/Image-ExifTool-9.27/html/TagNames/MPEG.html +249 -0
  83. data/vendor/Image-ExifTool-9.27/html/TagNames/MPF.html +199 -0
  84. data/vendor/Image-ExifTool-9.27/html/TagNames/MWG.html +519 -0
  85. data/vendor/Image-ExifTool-9.27/html/TagNames/MXF.html +6673 -0
  86. data/vendor/Image-ExifTool-9.27/html/TagNames/Matroska.html +1069 -0
  87. data/vendor/Image-ExifTool-9.27/html/TagNames/Microsoft.html +2066 -0
  88. data/vendor/Image-ExifTool-9.27/html/TagNames/Minolta.html +2550 -0
  89. data/vendor/Image-ExifTool-9.27/html/TagNames/MinoltaRaw.html +326 -0
  90. data/vendor/Image-ExifTool-9.27/html/TagNames/Nikon.html +4453 -0
  91. data/vendor/Image-ExifTool-9.27/html/TagNames/NikonCapture.html +776 -0
  92. data/vendor/Image-ExifTool-9.27/html/TagNames/NikonCustom.html +3835 -0
  93. data/vendor/Image-ExifTool-9.27/html/TagNames/OOXML.html +280 -0
  94. data/vendor/Image-ExifTool-9.27/html/TagNames/Ogg.html +44 -0
  95. data/vendor/Image-ExifTool-9.27/html/TagNames/Olympus.html +3331 -0
  96. data/vendor/Image-ExifTool-9.27/html/TagNames/OpenEXR.html +222 -0
  97. data/vendor/Image-ExifTool-9.27/html/TagNames/PDF.html +745 -0
  98. data/vendor/Image-ExifTool-9.27/html/TagNames/PGF.html +80 -0
  99. data/vendor/Image-ExifTool-9.27/html/TagNames/PICT.html +753 -0
  100. data/vendor/Image-ExifTool-9.27/html/TagNames/PLIST.html +86 -0
  101. data/vendor/Image-ExifTool-9.27/html/TagNames/PNG.html +515 -0
  102. data/vendor/Image-ExifTool-9.27/html/TagNames/PSP.html +160 -0
  103. data/vendor/Image-ExifTool-9.27/html/TagNames/Panasonic.html +1359 -0
  104. data/vendor/Image-ExifTool-9.27/html/TagNames/PanasonicRaw.html +214 -0
  105. data/vendor/Image-ExifTool-9.27/html/TagNames/Pentax.html +4329 -0
  106. data/vendor/Image-ExifTool-9.27/html/TagNames/PhaseOne.html +258 -0
  107. data/vendor/Image-ExifTool-9.27/html/TagNames/PhotoCD.html +402 -0
  108. data/vendor/Image-ExifTool-9.27/html/TagNames/PhotoMechanic.html +196 -0
  109. data/vendor/Image-ExifTool-9.27/html/TagNames/Photoshop.html +460 -0
  110. data/vendor/Image-ExifTool-9.27/html/TagNames/PostScript.html +125 -0
  111. data/vendor/Image-ExifTool-9.27/html/TagNames/PrintIM.html +31 -0
  112. data/vendor/Image-ExifTool-9.27/html/TagNames/Qualcomm.html +4778 -0
  113. data/vendor/Image-ExifTool-9.27/html/TagNames/QuickTime.html +2967 -0
  114. data/vendor/Image-ExifTool-9.27/html/TagNames/RIFF.html +1164 -0
  115. data/vendor/Image-ExifTool-9.27/html/TagNames/RSRC.html +74 -0
  116. data/vendor/Image-ExifTool-9.27/html/TagNames/RTF.html +150 -0
  117. data/vendor/Image-ExifTool-9.27/html/TagNames/Radiance.html +87 -0
  118. data/vendor/Image-ExifTool-9.27/html/TagNames/Rawzor.html +45 -0
  119. data/vendor/Image-ExifTool-9.27/html/TagNames/Real.html +780 -0
  120. data/vendor/Image-ExifTool-9.27/html/TagNames/Reconyx.html +132 -0
  121. data/vendor/Image-ExifTool-9.27/html/TagNames/Ricoh.html +456 -0
  122. data/vendor/Image-ExifTool-9.27/html/TagNames/Samsung.html +377 -0
  123. data/vendor/Image-ExifTool-9.27/html/TagNames/Sanyo.html +366 -0
  124. data/vendor/Image-ExifTool-9.27/html/TagNames/Shortcuts.html +237 -0
  125. data/vendor/Image-ExifTool-9.27/html/TagNames/Sigma.html +372 -0
  126. data/vendor/Image-ExifTool-9.27/html/TagNames/SigmaRaw.html +403 -0
  127. data/vendor/Image-ExifTool-9.27/html/TagNames/Sony.html +4052 -0
  128. data/vendor/Image-ExifTool-9.27/html/TagNames/SonyIDC.html +267 -0
  129. data/vendor/Image-ExifTool-9.27/html/TagNames/Stim.html +200 -0
  130. data/vendor/Image-ExifTool-9.27/html/TagNames/Theora.html +102 -0
  131. data/vendor/Image-ExifTool-9.27/html/TagNames/Unknown.html +31 -0
  132. data/vendor/Image-ExifTool-9.27/html/TagNames/Vorbis.html +228 -0
  133. data/vendor/Image-ExifTool-9.27/html/TagNames/XMP.html +7188 -0
  134. data/vendor/Image-ExifTool-9.27/html/TagNames/ZIP.html +204 -0
  135. data/vendor/Image-ExifTool-9.27/html/TagNames/iWork.html +49 -0
  136. data/vendor/Image-ExifTool-9.27/html/TagNames/index.html +192 -0
  137. data/vendor/Image-ExifTool-9.27/html/TagNames/style.css +31 -0
  138. data/vendor/Image-ExifTool-9.27/html/ancient_history.html +6564 -0
  139. data/vendor/Image-ExifTool-9.27/html/canon_raw.html +366 -0
  140. data/vendor/Image-ExifTool-9.27/html/commentary.html +319 -0
  141. data/vendor/Image-ExifTool-9.27/html/config.html +312 -0
  142. data/vendor/Image-ExifTool-9.27/html/data_members.html +264 -0
  143. data/vendor/Image-ExifTool-9.27/html/exiftool_pod.html +2325 -0
  144. data/vendor/Image-ExifTool-9.27/html/faq.html +1427 -0
  145. data/vendor/Image-ExifTool-9.27/html/filename.html +281 -0
  146. data/vendor/Image-ExifTool-9.27/html/geotag.html +642 -0
  147. data/vendor/Image-ExifTool-9.27/html/history.html +433 -0
  148. data/vendor/Image-ExifTool-9.27/html/htmldump.html +732 -0
  149. data/vendor/Image-ExifTool-9.27/html/idiosyncracies.html +251 -0
  150. data/vendor/Image-ExifTool-9.27/html/index.html +1266 -0
  151. data/vendor/Image-ExifTool-9.27/html/install.html +239 -0
  152. data/vendor/Image-ExifTool-9.27/html/metafiles.html +266 -0
  153. data/vendor/Image-ExifTool-9.27/html/overview.png +0 -0
  154. data/vendor/Image-ExifTool-9.27/html/standards.html +277 -0
  155. data/vendor/Image-ExifTool-9.27/html/struct.html +342 -0
  156. data/vendor/Image-ExifTool-9.27/html/style.css +31 -0
  157. data/vendor/Image-ExifTool-9.27/html/under.html +120 -0
  158. data/vendor/Image-ExifTool-9.27/html/verbose.html +195 -0
  159. data/vendor/Image-ExifTool-9.27/html/writing.html +239 -0
  160. data/vendor/Image-ExifTool-9.27/lib/File/RandomAccess.pm +378 -0
  161. data/vendor/Image-ExifTool-9.27/lib/File/RandomAccess.pod +231 -0
  162. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool.pm +6811 -0
  163. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool.pod +2353 -0
  164. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/AES.pm +501 -0
  165. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/AFCP.pm +280 -0
  166. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/AIFF.pm +271 -0
  167. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/APE.pm +262 -0
  168. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/APP12.pm +322 -0
  169. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/ASF.pm +871 -0
  170. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/BMP.pm +179 -0
  171. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/BZZ.pm +472 -0
  172. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/BigTIFF.pm +282 -0
  173. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/BuildTagLookup.pm +2391 -0
  174. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Canon.pm +7736 -0
  175. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/CanonCustom.pm +2523 -0
  176. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/CanonRaw.pm +931 -0
  177. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/CanonVRD.pm +1481 -0
  178. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/CaptureOne.pm +235 -0
  179. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Casio.pm +2013 -0
  180. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Charset.pm +396 -0
  181. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/Arabic.pm +0 -0
  182. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/Baltic.pm +0 -0
  183. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/Cyrillic.pm +0 -0
  184. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/Greek.pm +0 -0
  185. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/Hebrew.pm +0 -0
  186. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/JIS.pm +0 -0
  187. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/Latin.pm +0 -0
  188. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/Latin2.pm +0 -0
  189. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacArabic.pm +0 -0
  190. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacChineseCN.pm +0 -0
  191. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacChineseTW.pm +0 -0
  192. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacCroatian.pm +0 -0
  193. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacCyrillic.pm +0 -0
  194. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacGreek.pm +0 -0
  195. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacHebrew.pm +0 -0
  196. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacIceland.pm +0 -0
  197. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacJapanese.pm +0 -0
  198. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacKorean.pm +0 -0
  199. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacLatin2.pm +0 -0
  200. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacRSymbol.pm +0 -0
  201. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacRoman.pm +0 -0
  202. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacRomanian.pm +0 -0
  203. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacThai.pm +0 -0
  204. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/MacTurkish.pm +0 -0
  205. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/PDFDoc.pm +0 -0
  206. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/ShiftJIS.pm +0 -0
  207. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/Symbol.pm +0 -0
  208. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/Thai.pm +0 -0
  209. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/Turkish.pm +0 -0
  210. data/vendor/{Image-ExifTool-8.97 → Image-ExifTool-9.27}/lib/Image/ExifTool/Charset/Vietnam.pm +0 -0
  211. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/DICOM.pm +3835 -0
  212. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/DNG.pm +835 -0
  213. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/DV.pm +319 -0
  214. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/DarwinCore.pm +317 -0
  215. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/DjVu.pm +373 -0
  216. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/EXE.pm +1228 -0
  217. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Exif.pm +4526 -0
  218. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/FLAC.pm +296 -0
  219. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/FLIR.pm +672 -0
  220. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Fixup.pm +354 -0
  221. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Flash.pm +755 -0
  222. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/FlashPix.pm +1882 -0
  223. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Font.pm +643 -0
  224. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/FotoStation.pm +258 -0
  225. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/FujiFilm.pm +1019 -0
  226. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/GE.pm +80 -0
  227. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/GIF.pm +542 -0
  228. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/GIMP.pm +258 -0
  229. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/GPS.pm +511 -0
  230. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/GeoTiff.pm +2187 -0
  231. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Geotag.pm +1173 -0
  232. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/H264.pm +1097 -0
  233. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/HP.pm +262 -0
  234. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/HTML.pm +576 -0
  235. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/HtmlDump.pm +895 -0
  236. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/ICC_Profile.pm +999 -0
  237. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/ID3.pm +1486 -0
  238. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/IPTC.pm +1244 -0
  239. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/ITC.pm +215 -0
  240. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Import.pm +308 -0
  241. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/InDesign.pm +277 -0
  242. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/JPEG.pm +588 -0
  243. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/JPEGDigest.pm +2511 -0
  244. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/JVC.pm +130 -0
  245. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Jpeg2000.pm +881 -0
  246. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Kodak.pm +2014 -0
  247. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/KyoceraRaw.pm +173 -0
  248. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/LNK.pm +723 -0
  249. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/cs.pm +1586 -0
  250. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/de.pm +7356 -0
  251. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/en_ca.pm +557 -0
  252. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/en_gb.pm +572 -0
  253. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/es.pm +4016 -0
  254. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/fi.pm +2856 -0
  255. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/fr.pm +4720 -0
  256. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/it.pm +7917 -0
  257. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/ja.pm +5815 -0
  258. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/ko.pm +2332 -0
  259. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/nl.pm +3220 -0
  260. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/pl.pm +1140 -0
  261. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/ru.pm +769 -0
  262. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/sv.pm +639 -0
  263. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/tr.pm +544 -0
  264. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/zh_cn.pm +1329 -0
  265. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Lang/zh_tw.pm +802 -0
  266. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Leaf.pm +515 -0
  267. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/M2TS.pm +729 -0
  268. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/MIE.pm +2561 -0
  269. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/MIEUnits.pod +377 -0
  270. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/MIFF.pm +279 -0
  271. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/MNG.pm +684 -0
  272. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/MPC.pm +156 -0
  273. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/MPEG.pm +736 -0
  274. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/MPF.pm +289 -0
  275. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/MWG.pm +736 -0
  276. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/MXF.pm +3032 -0
  277. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/MakerNotes.pm +1569 -0
  278. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Matroska.pm +891 -0
  279. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Microsoft.pm +879 -0
  280. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Minolta.pm +2823 -0
  281. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/MinoltaRaw.pm +534 -0
  282. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Nikon.pm +6105 -0
  283. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/NikonCapture.pm +911 -0
  284. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/NikonCustom.pm +4405 -0
  285. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/OOXML.pm +409 -0
  286. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Ogg.pm +237 -0
  287. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Olympus.pm +3540 -0
  288. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/OpenEXR.pm +324 -0
  289. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/PDF.pm +2327 -0
  290. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/PGF.pm +143 -0
  291. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/PICT.pm +1260 -0
  292. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/PLIST.pm +449 -0
  293. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/PNG.pm +1100 -0
  294. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/PPM.pm +169 -0
  295. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/PSP.pm +305 -0
  296. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Panasonic.pm +1921 -0
  297. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/PanasonicRaw.pm +535 -0
  298. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Pentax.pm +5486 -0
  299. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/PhaseOne.pm +557 -0
  300. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/PhotoCD.pm +507 -0
  301. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/PhotoMechanic.pm +256 -0
  302. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Photoshop.pm +597 -0
  303. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/PostScript.pm +693 -0
  304. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/PrintIM.pm +125 -0
  305. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Qualcomm.pm +1344 -0
  306. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/QuickTime.pm +3316 -0
  307. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/README +943 -0
  308. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/RIFF.pm +1322 -0
  309. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/RSRC.pm +241 -0
  310. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/RTF.pm +383 -0
  311. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Radiance.pm +144 -0
  312. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Rawzor.pm +190 -0
  313. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Real.pm +736 -0
  314. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Reconyx.pm +190 -0
  315. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Ricoh.pm +740 -0
  316. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Samsung.pm +769 -0
  317. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Sanyo.pm +439 -0
  318. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Shift.pl +594 -0
  319. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Shortcuts.pm +291 -0
  320. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Sigma.pm +574 -0
  321. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/SigmaRaw.pm +649 -0
  322. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Sony.pm +5388 -0
  323. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/SonyIDC.pm +330 -0
  324. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Stim.pm +196 -0
  325. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/TagInfoXML.pm +792 -0
  326. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/TagLookup.pm +7911 -0
  327. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/TagNames.pod +25645 -0
  328. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Theora.pm +145 -0
  329. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Unknown.pm +66 -0
  330. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Vorbis.pm +237 -0
  331. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/WriteCanonRaw.pl +637 -0
  332. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/WriteExif.pl +3674 -0
  333. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/WriteIPTC.pl +702 -0
  334. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/WritePDF.pl +759 -0
  335. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/WritePNG.pl +330 -0
  336. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/WritePhotoshop.pl +266 -0
  337. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/WritePostScript.pl +777 -0
  338. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/WriteXMP.pl +1318 -0
  339. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/Writer.pl +5755 -0
  340. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/XMP.pm +3535 -0
  341. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/XMP2.pl +1298 -0
  342. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/XMPStruct.pl +813 -0
  343. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/ZIP.pm +623 -0
  344. data/vendor/Image-ExifTool-9.27/lib/Image/ExifTool/iWork.pm +223 -0
  345. data/vendor/Image-ExifTool-9.27/perl-Image-ExifTool.spec +104 -0
  346. data/vendor/Image-ExifTool-9.27/t/AFCP.t +44 -0
  347. data/vendor/Image-ExifTool-9.27/t/AFCP_2.out +37 -0
  348. data/vendor/Image-ExifTool-9.27/t/AFCP_3.out +20 -0
  349. data/vendor/Image-ExifTool-9.27/t/AIFF.t +28 -0
  350. data/vendor/Image-ExifTool-9.27/t/AIFF_2.out +31 -0
  351. data/vendor/Image-ExifTool-9.27/t/APE.t +38 -0
  352. data/vendor/Image-ExifTool-9.27/t/APE_2.out +28 -0
  353. data/vendor/Image-ExifTool-9.27/t/APE_3.out +57 -0
  354. data/vendor/Image-ExifTool-9.27/t/ASF.t +28 -0
  355. data/vendor/Image-ExifTool-9.27/t/ASF_2.out +48 -0
  356. data/vendor/Image-ExifTool-9.27/t/BMP.t +28 -0
  357. data/vendor/Image-ExifTool-9.27/t/BMP_2.out +21 -0
  358. data/vendor/Image-ExifTool-9.27/t/BigTIFF.t +28 -0
  359. data/vendor/Image-ExifTool-9.27/t/BigTIFF_2.out +19 -0
  360. data/vendor/Image-ExifTool-9.27/t/Canon.t +41 -0
  361. data/vendor/Image-ExifTool-9.27/t/CanonRaw.t +126 -0
  362. data/vendor/Image-ExifTool-9.27/t/CanonRaw_2.out +165 -0
  363. data/vendor/Image-ExifTool-9.27/t/CanonRaw_4.out +214 -0
  364. data/vendor/Image-ExifTool-9.27/t/CanonRaw_5.out +207 -0
  365. data/vendor/Image-ExifTool-9.27/t/CanonRaw_6.out +231 -0
  366. data/vendor/Image-ExifTool-9.27/t/CanonRaw_7.out +246 -0
  367. data/vendor/Image-ExifTool-9.27/t/CanonVRD.t +129 -0
  368. data/vendor/Image-ExifTool-9.27/t/CanonVRD_11.out +118 -0
  369. data/vendor/Image-ExifTool-9.27/t/CanonVRD_12.out +12 -0
  370. data/vendor/Image-ExifTool-9.27/t/CanonVRD_2.out +116 -0
  371. data/vendor/Image-ExifTool-9.27/t/CanonVRD_3.out +116 -0
  372. data/vendor/Image-ExifTool-9.27/t/CanonVRD_4.out +2 -0
  373. data/vendor/Image-ExifTool-9.27/t/CanonVRD_5.out +3 -0
  374. data/vendor/Image-ExifTool-9.27/t/CanonVRD_6.out +3 -0
  375. data/vendor/Image-ExifTool-9.27/t/CanonVRD_7.out +2 -0
  376. data/vendor/Image-ExifTool-9.27/t/CanonVRD_8.out +2 -0
  377. data/vendor/Image-ExifTool-9.27/t/CanonVRD_9.out +1 -0
  378. data/vendor/Image-ExifTool-9.27/t/Canon_2.out +350 -0
  379. data/vendor/Image-ExifTool-9.27/t/Canon_3.out +3 -0
  380. data/vendor/Image-ExifTool-9.27/t/Casio.t +54 -0
  381. data/vendor/Image-ExifTool-9.27/t/Casio_2.out +70 -0
  382. data/vendor/Image-ExifTool-9.27/t/Casio_3.out +100 -0
  383. data/vendor/Image-ExifTool-9.27/t/Casio_4.out +26 -0
  384. data/vendor/Image-ExifTool-9.27/t/Casio_5.out +78 -0
  385. data/vendor/Image-ExifTool-9.27/t/Casio_6.out +115 -0
  386. data/vendor/Image-ExifTool-9.27/t/DICOM.t +28 -0
  387. data/vendor/Image-ExifTool-9.27/t/DICOM_2.out +108 -0
  388. data/vendor/Image-ExifTool-9.27/t/DNG.t +39 -0
  389. data/vendor/Image-ExifTool-9.27/t/DNG_2.out +326 -0
  390. data/vendor/Image-ExifTool-9.27/t/DNG_3.out +4 -0
  391. data/vendor/Image-ExifTool-9.27/t/DV.t +27 -0
  392. data/vendor/Image-ExifTool-9.27/t/DV_2.out +24 -0
  393. data/vendor/Image-ExifTool-9.27/t/DjVu.t +28 -0
  394. data/vendor/Image-ExifTool-9.27/t/DjVu_2.out +44 -0
  395. data/vendor/Image-ExifTool-9.27/t/EXE.t +31 -0
  396. data/vendor/Image-ExifTool-9.27/t/EXE_2.out +40 -0
  397. data/vendor/Image-ExifTool-9.27/t/EXE_3.out +15 -0
  398. data/vendor/Image-ExifTool-9.27/t/EXE_4.out +14 -0
  399. data/vendor/Image-ExifTool-9.27/t/ExifTool.t +284 -0
  400. data/vendor/Image-ExifTool-9.27/t/ExifTool_16.out +180 -0
  401. data/vendor/Image-ExifTool-9.27/t/ExifTool_17.out +594 -0
  402. data/vendor/Image-ExifTool-9.27/t/ExifTool_2.out +399 -0
  403. data/vendor/Image-ExifTool-9.27/t/ExifTool_20.out +1 -0
  404. data/vendor/Image-ExifTool-9.27/t/ExifTool_21.out +1 -0
  405. data/vendor/Image-ExifTool-9.27/t/ExifTool_22.out +1 -0
  406. data/vendor/Image-ExifTool-9.27/t/ExifTool_23.out +6 -0
  407. data/vendor/Image-ExifTool-9.27/t/ExifTool_24.out +3 -0
  408. data/vendor/Image-ExifTool-9.27/t/ExifTool_25.out +13 -0
  409. data/vendor/Image-ExifTool-9.27/t/ExifTool_26.out +12 -0
  410. data/vendor/Image-ExifTool-9.27/t/ExifTool_3.out +87 -0
  411. data/vendor/Image-ExifTool-9.27/t/ExifTool_4.out +41 -0
  412. data/vendor/Image-ExifTool-9.27/t/ExifTool_5.out +6 -0
  413. data/vendor/Image-ExifTool-9.27/t/ExifTool_6.out +68 -0
  414. data/vendor/Image-ExifTool-9.27/t/ExifTool_7.out +125 -0
  415. data/vendor/Image-ExifTool-9.27/t/ExifTool_8.out +125 -0
  416. data/vendor/Image-ExifTool-9.27/t/ExifTool_9.out +33 -0
  417. data/vendor/Image-ExifTool-9.27/t/FLAC.t +37 -0
  418. data/vendor/Image-ExifTool-9.27/t/FLAC_2.out +25 -0
  419. data/vendor/Image-ExifTool-9.27/t/FLAC_3.out +19 -0
  420. data/vendor/Image-ExifTool-9.27/t/FLIR.t +30 -0
  421. data/vendor/Image-ExifTool-9.27/t/FLIR_2.out +93 -0
  422. data/vendor/Image-ExifTool-9.27/t/FLIR_3.out +47 -0
  423. data/vendor/Image-ExifTool-9.27/t/Flash.t +37 -0
  424. data/vendor/Image-ExifTool-9.27/t/FlashPix.t +30 -0
  425. data/vendor/Image-ExifTool-9.27/t/FlashPix_2.out +48 -0
  426. data/vendor/Image-ExifTool-9.27/t/Flash_2.out +20 -0
  427. data/vendor/Image-ExifTool-9.27/t/Flash_3.out +53 -0
  428. data/vendor/Image-ExifTool-9.27/t/Font.t +30 -0
  429. data/vendor/Image-ExifTool-9.27/t/Font_2.out +23 -0
  430. data/vendor/Image-ExifTool-9.27/t/Font_3.out +35 -0
  431. data/vendor/Image-ExifTool-9.27/t/Font_4.out +26 -0
  432. data/vendor/Image-ExifTool-9.27/t/Font_5.out +26 -0
  433. data/vendor/Image-ExifTool-9.27/t/Font_6.out +36 -0
  434. data/vendor/Image-ExifTool-9.27/t/Font_7.out +36 -0
  435. data/vendor/Image-ExifTool-9.27/t/FotoStation.t +38 -0
  436. data/vendor/Image-ExifTool-9.27/t/FotoStation_2.out +39 -0
  437. data/vendor/Image-ExifTool-9.27/t/FotoStation_3.out +3 -0
  438. data/vendor/Image-ExifTool-9.27/t/FujiFilm.t +78 -0
  439. data/vendor/Image-ExifTool-9.27/t/FujiFilm_2.out +87 -0
  440. data/vendor/Image-ExifTool-9.27/t/FujiFilm_3.out +88 -0
  441. data/vendor/Image-ExifTool-9.27/t/FujiFilm_4.out +117 -0
  442. data/vendor/Image-ExifTool-9.27/t/FujiFilm_5.out +1 -0
  443. data/vendor/Image-ExifTool-9.27/t/GE.t +46 -0
  444. data/vendor/Image-ExifTool-9.27/t/GE_2.out +84 -0
  445. data/vendor/Image-ExifTool-9.27/t/GE_3.out +84 -0
  446. data/vendor/Image-ExifTool-9.27/t/GIF.t +83 -0
  447. data/vendor/Image-ExifTool-9.27/t/GIF_2.out +40 -0
  448. data/vendor/Image-ExifTool-9.27/t/GIF_3.out +41 -0
  449. data/vendor/Image-ExifTool-9.27/t/GIF_4.out +16 -0
  450. data/vendor/Image-ExifTool-9.27/t/GIMP.t +27 -0
  451. data/vendor/Image-ExifTool-9.27/t/GIMP_2.out +63 -0
  452. data/vendor/Image-ExifTool-9.27/t/GPS.t +42 -0
  453. data/vendor/Image-ExifTool-9.27/t/GPS_2.out +94 -0
  454. data/vendor/Image-ExifTool-9.27/t/GPS_3.out +96 -0
  455. data/vendor/Image-ExifTool-9.27/t/GeoTiff.t +36 -0
  456. data/vendor/Image-ExifTool-9.27/t/GeoTiff_2.out +36 -0
  457. data/vendor/Image-ExifTool-9.27/t/GeoTiff_3.out +36 -0
  458. data/vendor/Image-ExifTool-9.27/t/Geotag.t +164 -0
  459. data/vendor/Image-ExifTool-9.27/t/Geotag_2.out +9 -0
  460. data/vendor/Image-ExifTool-9.27/t/Geotag_3.out +6 -0
  461. data/vendor/Image-ExifTool-9.27/t/Geotag_5.out +1 -0
  462. data/vendor/Image-ExifTool-9.27/t/Geotag_6.out +9 -0
  463. data/vendor/Image-ExifTool-9.27/t/Geotag_7.out +53 -0
  464. data/vendor/Image-ExifTool-9.27/t/Geotag_8.out +15 -0
  465. data/vendor/Image-ExifTool-9.27/t/HTML.t +28 -0
  466. data/vendor/Image-ExifTool-9.27/t/HTML_2.out +68 -0
  467. data/vendor/Image-ExifTool-9.27/t/IPTC.t +157 -0
  468. data/vendor/Image-ExifTool-9.27/t/IPTC_2.out +58 -0
  469. data/vendor/Image-ExifTool-9.27/t/IPTC_4.out +56 -0
  470. data/vendor/Image-ExifTool-9.27/t/IPTC_5.out +1 -0
  471. data/vendor/Image-ExifTool-9.27/t/IPTC_6.out +2 -0
  472. data/vendor/Image-ExifTool-9.27/t/IPTC_7.out +1 -0
  473. data/vendor/Image-ExifTool-9.27/t/IPTC_8.out +20 -0
  474. data/vendor/Image-ExifTool-9.27/t/ITC.t +28 -0
  475. data/vendor/Image-ExifTool-9.27/t/ITC_2.out +19 -0
  476. data/vendor/Image-ExifTool-9.27/t/InDesign.t +61 -0
  477. data/vendor/Image-ExifTool-9.27/t/InDesign_2.out +19 -0
  478. data/vendor/Image-ExifTool-9.27/t/InDesign_3.out +21 -0
  479. data/vendor/Image-ExifTool-9.27/t/InDesign_4.out +11 -0
  480. data/vendor/Image-ExifTool-9.27/t/JVC.t +36 -0
  481. data/vendor/Image-ExifTool-9.27/t/JVC_2.out +3 -0
  482. data/vendor/Image-ExifTool-9.27/t/JVC_3.out +3 -0
  483. data/vendor/Image-ExifTool-9.27/t/Jpeg2000.t +49 -0
  484. data/vendor/Image-ExifTool-9.27/t/Jpeg2000_2.out +63 -0
  485. data/vendor/Image-ExifTool-9.27/t/Jpeg2000_3.out +51 -0
  486. data/vendor/Image-ExifTool-9.27/t/Jpeg2000_4.out +15 -0
  487. data/vendor/Image-ExifTool-9.27/t/Kodak.t +40 -0
  488. data/vendor/Image-ExifTool-9.27/t/Kodak_2.out +109 -0
  489. data/vendor/Image-ExifTool-9.27/t/Kodak_3.out +119 -0
  490. data/vendor/Image-ExifTool-9.27/t/KyoceraRaw.t +28 -0
  491. data/vendor/Image-ExifTool-9.27/t/KyoceraRaw_2.out +27 -0
  492. data/vendor/Image-ExifTool-9.27/t/LNK.t +28 -0
  493. data/vendor/Image-ExifTool-9.27/t/LNK_2.out +45 -0
  494. data/vendor/Image-ExifTool-9.27/t/Lang.t +40 -0
  495. data/vendor/Image-ExifTool-9.27/t/Lang_1.out +1 -0
  496. data/vendor/Image-ExifTool-9.27/t/Lang_10.out +46 -0
  497. data/vendor/Image-ExifTool-9.27/t/Lang_11.out +46 -0
  498. data/vendor/Image-ExifTool-9.27/t/Lang_12.out +46 -0
  499. data/vendor/Image-ExifTool-9.27/t/Lang_13.out +46 -0
  500. data/vendor/Image-ExifTool-9.27/t/Lang_14.out +46 -0
  501. data/vendor/Image-ExifTool-9.27/t/Lang_15.out +46 -0
  502. data/vendor/Image-ExifTool-9.27/t/Lang_16.out +46 -0
  503. data/vendor/Image-ExifTool-9.27/t/Lang_17.out +46 -0
  504. data/vendor/Image-ExifTool-9.27/t/Lang_18.out +46 -0
  505. data/vendor/Image-ExifTool-9.27/t/Lang_2.out +46 -0
  506. data/vendor/Image-ExifTool-9.27/t/Lang_3.out +46 -0
  507. data/vendor/Image-ExifTool-9.27/t/Lang_4.out +46 -0
  508. data/vendor/Image-ExifTool-9.27/t/Lang_5.out +46 -0
  509. data/vendor/Image-ExifTool-9.27/t/Lang_6.out +46 -0
  510. data/vendor/Image-ExifTool-9.27/t/Lang_7.out +46 -0
  511. data/vendor/Image-ExifTool-9.27/t/Lang_8.out +46 -0
  512. data/vendor/Image-ExifTool-9.27/t/Lang_9.out +46 -0
  513. data/vendor/Image-ExifTool-9.27/t/M2TS.t +29 -0
  514. data/vendor/Image-ExifTool-9.27/t/M2TS_2.out +27 -0
  515. data/vendor/Image-ExifTool-9.27/t/MIE.t +82 -0
  516. data/vendor/Image-ExifTool-9.27/t/MIE_2.out +67 -0
  517. data/vendor/Image-ExifTool-9.27/t/MIE_3.out +134 -0
  518. data/vendor/Image-ExifTool-9.27/t/MIE_5.out +1 -0
  519. data/vendor/Image-ExifTool-9.27/t/MIE_6.out +1 -0
  520. data/vendor/Image-ExifTool-9.27/t/MIFF.t +28 -0
  521. data/vendor/Image-ExifTool-9.27/t/MIFF_2.out +108 -0
  522. data/vendor/Image-ExifTool-9.27/t/MP3.t +29 -0
  523. data/vendor/Image-ExifTool-9.27/t/MP3_2.out +45 -0
  524. data/vendor/Image-ExifTool-9.27/t/MWG.t +72 -0
  525. data/vendor/Image-ExifTool-9.27/t/MWG_2.out +13 -0
  526. data/vendor/Image-ExifTool-9.27/t/MWG_3.out +8 -0
  527. data/vendor/Image-ExifTool-9.27/t/MWG_4.out +5 -0
  528. data/vendor/Image-ExifTool-9.27/t/MWG_5.out +22 -0
  529. data/vendor/Image-ExifTool-9.27/t/MXF.t +27 -0
  530. data/vendor/Image-ExifTool-9.27/t/MXF_2.out +78 -0
  531. data/vendor/Image-ExifTool-9.27/t/Matroska.t +29 -0
  532. data/vendor/Image-ExifTool-9.27/t/Matroska_2.out +64 -0
  533. data/vendor/Image-ExifTool-9.27/t/Minolta.t +50 -0
  534. data/vendor/Image-ExifTool-9.27/t/Minolta_2.out +133 -0
  535. data/vendor/Image-ExifTool-9.27/t/Minolta_3.out +146 -0
  536. data/vendor/Image-ExifTool-9.27/t/Minolta_4.out +148 -0
  537. data/vendor/Image-ExifTool-9.27/t/Nikon.t +114 -0
  538. data/vendor/Image-ExifTool-9.27/t/Nikon_2.out +82 -0
  539. data/vendor/Image-ExifTool-9.27/t/Nikon_3.out +98 -0
  540. data/vendor/Image-ExifTool-9.27/t/Nikon_4.out +173 -0
  541. data/vendor/Image-ExifTool-9.27/t/Nikon_5.out +167 -0
  542. data/vendor/Image-ExifTool-9.27/t/Nikon_7.out +260 -0
  543. data/vendor/Image-ExifTool-9.27/t/Nikon_8.out +4 -0
  544. data/vendor/Image-ExifTool-9.27/t/Olympus.t +85 -0
  545. data/vendor/Image-ExifTool-9.27/t/Olympus_2.out +79 -0
  546. data/vendor/Image-ExifTool-9.27/t/Olympus_3.out +81 -0
  547. data/vendor/Image-ExifTool-9.27/t/Olympus_4.out +192 -0
  548. data/vendor/Image-ExifTool-9.27/t/Olympus_5.out +264 -0
  549. data/vendor/Image-ExifTool-9.27/t/Olympus_6.out +151 -0
  550. data/vendor/Image-ExifTool-9.27/t/Olympus_7.out +482 -0
  551. data/vendor/Image-ExifTool-9.27/t/OpenEXR.t +28 -0
  552. data/vendor/Image-ExifTool-9.27/t/OpenEXR_2.out +23 -0
  553. data/vendor/Image-ExifTool-9.27/t/PDF.t +295 -0
  554. data/vendor/Image-ExifTool-9.27/t/PDF_10.out +10 -0
  555. data/vendor/Image-ExifTool-9.27/t/PDF_11.out +10 -0
  556. data/vendor/Image-ExifTool-9.27/t/PDF_12.out +9 -0
  557. data/vendor/Image-ExifTool-9.27/t/PDF_14.out +5 -0
  558. data/vendor/Image-ExifTool-9.27/t/PDF_15.out +6 -0
  559. data/vendor/Image-ExifTool-9.27/t/PDF_16.out +4 -0
  560. data/vendor/Image-ExifTool-9.27/t/PDF_17.out +4 -0
  561. data/vendor/Image-ExifTool-9.27/t/PDF_18.out +5 -0
  562. data/vendor/Image-ExifTool-9.27/t/PDF_19.out +6 -0
  563. data/vendor/Image-ExifTool-9.27/t/PDF_2.out +117 -0
  564. data/vendor/Image-ExifTool-9.27/t/PDF_20.out +4 -0
  565. data/vendor/Image-ExifTool-9.27/t/PDF_22.out +3 -0
  566. data/vendor/Image-ExifTool-9.27/t/PDF_4.out +12 -0
  567. data/vendor/Image-ExifTool-9.27/t/PDF_5.out +8 -0
  568. data/vendor/Image-ExifTool-9.27/t/PDF_6.out +9 -0
  569. data/vendor/Image-ExifTool-9.27/t/PDF_7.out +11 -0
  570. data/vendor/Image-ExifTool-9.27/t/PDF_8.out +9 -0
  571. data/vendor/Image-ExifTool-9.27/t/PDF_9.out +9 -0
  572. data/vendor/Image-ExifTool-9.27/t/PGF.t +28 -0
  573. data/vendor/Image-ExifTool-9.27/t/PGF_2.out +32 -0
  574. data/vendor/Image-ExifTool-9.27/t/PICT.t +28 -0
  575. data/vendor/Image-ExifTool-9.27/t/PICT_2.out +15 -0
  576. data/vendor/Image-ExifTool-9.27/t/PLIST.t +31 -0
  577. data/vendor/Image-ExifTool-9.27/t/PLIST_2.out +20 -0
  578. data/vendor/Image-ExifTool-9.27/t/PLIST_3.out +20 -0
  579. data/vendor/Image-ExifTool-9.27/t/PNG.t +75 -0
  580. data/vendor/Image-ExifTool-9.27/t/PNG_2.out +22 -0
  581. data/vendor/Image-ExifTool-9.27/t/PNG_3.out +118 -0
  582. data/vendor/Image-ExifTool-9.27/t/PNG_4.out +12 -0
  583. data/vendor/Image-ExifTool-9.27/t/PPM.t +40 -0
  584. data/vendor/Image-ExifTool-9.27/t/PPM_2.out +15 -0
  585. data/vendor/Image-ExifTool-9.27/t/PPM_3.out +9 -0
  586. data/vendor/Image-ExifTool-9.27/t/PSP.t +28 -0
  587. data/vendor/Image-ExifTool-9.27/t/PSP_2.out +32 -0
  588. data/vendor/Image-ExifTool-9.27/t/Panasonic.t +60 -0
  589. data/vendor/Image-ExifTool-9.27/t/Panasonic_2.out +99 -0
  590. data/vendor/Image-ExifTool-9.27/t/Panasonic_3.out +119 -0
  591. data/vendor/Image-ExifTool-9.27/t/Panasonic_4.out +177 -0
  592. data/vendor/Image-ExifTool-9.27/t/Panasonic_5.out +228 -0
  593. data/vendor/Image-ExifTool-9.27/t/Pentax.t +50 -0
  594. data/vendor/Image-ExifTool-9.27/t/Pentax_2.out +219 -0
  595. data/vendor/Image-ExifTool-9.27/t/Pentax_3.out +262 -0
  596. data/vendor/Image-ExifTool-9.27/t/Pentax_4.out +123 -0
  597. data/vendor/Image-ExifTool-9.27/t/PhotoCD.t +28 -0
  598. data/vendor/Image-ExifTool-9.27/t/PhotoCD_2.out +35 -0
  599. data/vendor/Image-ExifTool-9.27/t/PhotoMechanic.t +38 -0
  600. data/vendor/Image-ExifTool-9.27/t/PhotoMechanic_2.out +81 -0
  601. data/vendor/Image-ExifTool-9.27/t/PhotoMechanic_3.out +2 -0
  602. data/vendor/Image-ExifTool-9.27/t/Photoshop.t +42 -0
  603. data/vendor/Image-ExifTool-9.27/t/Photoshop_2.out +96 -0
  604. data/vendor/Image-ExifTool-9.27/t/Photoshop_3.out +108 -0
  605. data/vendor/Image-ExifTool-9.27/t/PostScript.t +49 -0
  606. data/vendor/Image-ExifTool-9.27/t/PostScript_2.out +64 -0
  607. data/vendor/Image-ExifTool-9.27/t/PostScript_3.out +132 -0
  608. data/vendor/Image-ExifTool-9.27/t/QuickTime.t +31 -0
  609. data/vendor/Image-ExifTool-9.27/t/QuickTime_2.out +128 -0
  610. data/vendor/Image-ExifTool-9.27/t/QuickTime_3.out +69 -0
  611. data/vendor/Image-ExifTool-9.27/t/RIFF.t +31 -0
  612. data/vendor/Image-ExifTool-9.27/t/RIFF_2.out +24 -0
  613. data/vendor/Image-ExifTool-9.27/t/RIFF_3.out +52 -0
  614. data/vendor/Image-ExifTool-9.27/t/RIFF_4.out +16 -0
  615. data/vendor/Image-ExifTool-9.27/t/RTF.t +27 -0
  616. data/vendor/Image-ExifTool-9.27/t/RTF_2.out +20 -0
  617. data/vendor/Image-ExifTool-9.27/t/Radiance.t +28 -0
  618. data/vendor/Image-ExifTool-9.27/t/Radiance_2.out +22 -0
  619. data/vendor/Image-ExifTool-9.27/t/Real.t +46 -0
  620. data/vendor/Image-ExifTool-9.27/t/Real_2.out +68 -0
  621. data/vendor/Image-ExifTool-9.27/t/Real_3.out +18 -0
  622. data/vendor/Image-ExifTool-9.27/t/Real_4.out +11 -0
  623. data/vendor/Image-ExifTool-9.27/t/Ricoh.t +47 -0
  624. data/vendor/Image-ExifTool-9.27/t/Ricoh_2.out +70 -0
  625. data/vendor/Image-ExifTool-9.27/t/Ricoh_3.out +98 -0
  626. data/vendor/Image-ExifTool-9.27/t/Ricoh_4.out +112 -0
  627. data/vendor/Image-ExifTool-9.27/t/Sanyo.t +39 -0
  628. data/vendor/Image-ExifTool-9.27/t/Sanyo_2.out +101 -0
  629. data/vendor/Image-ExifTool-9.27/t/Sanyo_3.out +111 -0
  630. data/vendor/Image-ExifTool-9.27/t/Sigma.t +60 -0
  631. data/vendor/Image-ExifTool-9.27/t/Sigma_2.out +91 -0
  632. data/vendor/Image-ExifTool-9.27/t/Sigma_3.out +94 -0
  633. data/vendor/Image-ExifTool-9.27/t/Sigma_4.out +63 -0
  634. data/vendor/Image-ExifTool-9.27/t/Sigma_5.out +192 -0
  635. data/vendor/Image-ExifTool-9.27/t/Sony.t +62 -0
  636. data/vendor/Image-ExifTool-9.27/t/Sony_2.out +84 -0
  637. data/vendor/Image-ExifTool-9.27/t/Sony_3.out +85 -0
  638. data/vendor/Image-ExifTool-9.27/t/Sony_5.out +32 -0
  639. data/vendor/Image-ExifTool-9.27/t/TestLib.pm +417 -0
  640. data/vendor/Image-ExifTool-9.27/t/Unknown.t +36 -0
  641. data/vendor/Image-ExifTool-9.27/t/Unknown_2.out +90 -0
  642. data/vendor/Image-ExifTool-9.27/t/Unknown_3.out +90 -0
  643. data/vendor/Image-ExifTool-9.27/t/Vorbis.t +28 -0
  644. data/vendor/Image-ExifTool-9.27/t/Vorbis_2.out +28 -0
  645. data/vendor/Image-ExifTool-9.27/t/Writer.t +896 -0
  646. data/vendor/Image-ExifTool-9.27/t/Writer_10.out +239 -0
  647. data/vendor/Image-ExifTool-9.27/t/Writer_11.out +37 -0
  648. data/vendor/Image-ExifTool-9.27/t/Writer_13.out +160 -0
  649. data/vendor/Image-ExifTool-9.27/t/Writer_14.out +67 -0
  650. data/vendor/Image-ExifTool-9.27/t/Writer_15.out +171 -0
  651. data/vendor/Image-ExifTool-9.27/t/Writer_16.out +1 -0
  652. data/vendor/Image-ExifTool-9.27/t/Writer_17.out +1 -0
  653. data/vendor/Image-ExifTool-9.27/t/Writer_18.out +3 -0
  654. data/vendor/Image-ExifTool-9.27/t/Writer_19.out +34 -0
  655. data/vendor/Image-ExifTool-9.27/t/Writer_2.out +168 -0
  656. data/vendor/Image-ExifTool-9.27/t/Writer_22.out +4 -0
  657. data/vendor/Image-ExifTool-9.27/t/Writer_24.out +1 -0
  658. data/vendor/Image-ExifTool-9.27/t/Writer_25.out +38 -0
  659. data/vendor/Image-ExifTool-9.27/t/Writer_26.out +32 -0
  660. data/vendor/Image-ExifTool-9.27/t/Writer_27.out +14 -0
  661. data/vendor/Image-ExifTool-9.27/t/Writer_28.out +1 -0
  662. data/vendor/Image-ExifTool-9.27/t/Writer_29.out +2 -0
  663. data/vendor/Image-ExifTool-9.27/t/Writer_30.out +2 -0
  664. data/vendor/Image-ExifTool-9.27/t/Writer_31.out +97 -0
  665. data/vendor/Image-ExifTool-9.27/t/Writer_32.out +3 -0
  666. data/vendor/Image-ExifTool-9.27/t/Writer_33.out +3 -0
  667. data/vendor/Image-ExifTool-9.27/t/Writer_34.out +3 -0
  668. data/vendor/Image-ExifTool-9.27/t/Writer_35.out +187 -0
  669. data/vendor/Image-ExifTool-9.27/t/Writer_36.out +2 -0
  670. data/vendor/Image-ExifTool-9.27/t/Writer_37.out +2 -0
  671. data/vendor/Image-ExifTool-9.27/t/Writer_38.out +62 -0
  672. data/vendor/Image-ExifTool-9.27/t/Writer_39.out +4 -0
  673. data/vendor/Image-ExifTool-9.27/t/Writer_4.out +85 -0
  674. data/vendor/Image-ExifTool-9.27/t/Writer_40.out +4 -0
  675. data/vendor/Image-ExifTool-9.27/t/Writer_41.out +3 -0
  676. data/vendor/Image-ExifTool-9.27/t/Writer_42.out +5 -0
  677. data/vendor/Image-ExifTool-9.27/t/Writer_43.out +5 -0
  678. data/vendor/Image-ExifTool-9.27/t/Writer_44.out +2 -0
  679. data/vendor/Image-ExifTool-9.27/t/Writer_45.out +1 -0
  680. data/vendor/Image-ExifTool-9.27/t/Writer_46.out +77 -0
  681. data/vendor/Image-ExifTool-9.27/t/Writer_47.out +56 -0
  682. data/vendor/Image-ExifTool-9.27/t/Writer_48.out +29 -0
  683. data/vendor/Image-ExifTool-9.27/t/Writer_50.out +3 -0
  684. data/vendor/Image-ExifTool-9.27/t/Writer_6.out +182 -0
  685. data/vendor/Image-ExifTool-9.27/t/Writer_7.out +149 -0
  686. data/vendor/Image-ExifTool-9.27/t/Writer_9.out +236 -0
  687. data/vendor/Image-ExifTool-9.27/t/XMP.t +521 -0
  688. data/vendor/Image-ExifTool-9.27/t/XMP_10.out +33 -0
  689. data/vendor/Image-ExifTool-9.27/t/XMP_11.out +59 -0
  690. data/vendor/Image-ExifTool-9.27/t/XMP_12.out +4 -0
  691. data/vendor/Image-ExifTool-9.27/t/XMP_13.out +5 -0
  692. data/vendor/Image-ExifTool-9.27/t/XMP_14.out +3 -0
  693. data/vendor/Image-ExifTool-9.27/t/XMP_15.out +3 -0
  694. data/vendor/Image-ExifTool-9.27/t/XMP_16.out +5 -0
  695. data/vendor/Image-ExifTool-9.27/t/XMP_17.out +6 -0
  696. data/vendor/Image-ExifTool-9.27/t/XMP_18.out +10 -0
  697. data/vendor/Image-ExifTool-9.27/t/XMP_19.out +35 -0
  698. data/vendor/Image-ExifTool-9.27/t/XMP_2.out +138 -0
  699. data/vendor/Image-ExifTool-9.27/t/XMP_20.out +35 -0
  700. data/vendor/Image-ExifTool-9.27/t/XMP_21.out +37 -0
  701. data/vendor/Image-ExifTool-9.27/t/XMP_22.out +37 -0
  702. data/vendor/Image-ExifTool-9.27/t/XMP_23.out +9 -0
  703. data/vendor/Image-ExifTool-9.27/t/XMP_24.out +31 -0
  704. data/vendor/Image-ExifTool-9.27/t/XMP_25.out +28 -0
  705. data/vendor/Image-ExifTool-9.27/t/XMP_26.out +52 -0
  706. data/vendor/Image-ExifTool-9.27/t/XMP_27.out +93 -0
  707. data/vendor/Image-ExifTool-9.27/t/XMP_28.out +44 -0
  708. data/vendor/Image-ExifTool-9.27/t/XMP_29.out +24 -0
  709. data/vendor/Image-ExifTool-9.27/t/XMP_3.out +136 -0
  710. data/vendor/Image-ExifTool-9.27/t/XMP_30.out +90 -0
  711. data/vendor/Image-ExifTool-9.27/t/XMP_31.out +19 -0
  712. data/vendor/Image-ExifTool-9.27/t/XMP_32.out +2 -0
  713. data/vendor/Image-ExifTool-9.27/t/XMP_34.out +2 -0
  714. data/vendor/Image-ExifTool-9.27/t/XMP_36.out +18 -0
  715. data/vendor/Image-ExifTool-9.27/t/XMP_37.out +35 -0
  716. data/vendor/Image-ExifTool-9.27/t/XMP_39.out +44 -0
  717. data/vendor/Image-ExifTool-9.27/t/XMP_40.out +3 -0
  718. data/vendor/Image-ExifTool-9.27/t/XMP_41.out +175 -0
  719. data/vendor/Image-ExifTool-9.27/t/XMP_5.out +29 -0
  720. data/vendor/Image-ExifTool-9.27/t/XMP_6.out +87 -0
  721. data/vendor/Image-ExifTool-9.27/t/XMP_7.out +118 -0
  722. data/vendor/Image-ExifTool-9.27/t/XMP_8.out +17 -0
  723. data/vendor/Image-ExifTool-9.27/t/XMP_9.out +36 -0
  724. data/vendor/Image-ExifTool-9.27/t/ZIP.t +69 -0
  725. data/vendor/Image-ExifTool-9.27/t/ZIP_2.out +18 -0
  726. data/vendor/Image-ExifTool-9.27/t/ZIP_3.out +17 -0
  727. data/vendor/Image-ExifTool-9.27/t/ZIP_4.out +213 -0
  728. data/vendor/Image-ExifTool-9.27/t/ZIP_5.out +134 -0
  729. data/vendor/Image-ExifTool-9.27/t/ZIP_6.out +49 -0
  730. data/vendor/Image-ExifTool-9.27/t/ZIP_7.out +28 -0
  731. data/vendor/Image-ExifTool-9.27/t/images/AFCP.jpg +0 -0
  732. data/vendor/Image-ExifTool-9.27/t/images/AIFF.aif +0 -0
  733. data/vendor/Image-ExifTool-9.27/t/images/APE.ape +0 -0
  734. data/vendor/Image-ExifTool-9.27/t/images/APE.mpc +0 -0
  735. data/vendor/Image-ExifTool-9.27/t/images/ASF.wmv +0 -0
  736. data/vendor/Image-ExifTool-9.27/t/images/BMP.bmp +0 -0
  737. data/vendor/Image-ExifTool-9.27/t/images/BigTIFF.btf +0 -0
  738. data/vendor/Image-ExifTool-9.27/t/images/Canon.jpg +0 -0
  739. data/vendor/Image-ExifTool-9.27/t/images/Canon1DmkIII.jpg +0 -0
  740. data/vendor/Image-ExifTool-9.27/t/images/CanonRaw.cr2 +0 -0
  741. data/vendor/Image-ExifTool-9.27/t/images/CanonRaw.crw +0 -0
  742. data/vendor/Image-ExifTool-9.27/t/images/CanonVRD.vrd +0 -0
  743. data/vendor/Image-ExifTool-9.27/t/images/CaptureOne.eip +0 -0
  744. data/vendor/Image-ExifTool-9.27/t/images/Casio.jpg +0 -0
  745. data/vendor/Image-ExifTool-9.27/t/images/Casio2.jpg +0 -0
  746. data/vendor/Image-ExifTool-9.27/t/images/CasioQVCI.jpg +0 -0
  747. data/vendor/Image-ExifTool-9.27/t/images/DICOM.dcm +0 -0
  748. data/vendor/Image-ExifTool-9.27/t/images/DNG.dng +0 -0
  749. data/vendor/Image-ExifTool-9.27/t/images/DV.dv +0 -0
  750. data/vendor/Image-ExifTool-9.27/t/images/DjVu.djvu +0 -0
  751. data/vendor/Image-ExifTool-9.27/t/images/EXE.elf +0 -0
  752. data/vendor/Image-ExifTool-9.27/t/images/EXE.exe +0 -0
  753. data/vendor/Image-ExifTool-9.27/t/images/EXE.macho +0 -0
  754. data/vendor/Image-ExifTool-9.27/t/images/ExifTool.jpg +0 -0
  755. data/vendor/Image-ExifTool-9.27/t/images/ExifTool.tif +0 -0
  756. data/vendor/Image-ExifTool-9.27/t/images/ExtendedXMP.jpg +0 -0
  757. data/vendor/Image-ExifTool-9.27/t/images/FLAC.flac +0 -0
  758. data/vendor/Image-ExifTool-9.27/t/images/FLAC.ogg +0 -0
  759. data/vendor/Image-ExifTool-9.27/t/images/FLIR.fpf +0 -0
  760. data/vendor/Image-ExifTool-9.27/t/images/FLIR.jpg +0 -0
  761. data/vendor/Image-ExifTool-9.27/t/images/Flash.flv +0 -0
  762. data/vendor/Image-ExifTool-9.27/t/images/Flash.swf +0 -0
  763. data/vendor/Image-ExifTool-9.27/t/images/FlashPix.ppt +0 -0
  764. data/vendor/Image-ExifTool-9.27/t/images/Font.afm +28 -0
  765. data/vendor/Image-ExifTool-9.27/t/images/Font.dfont +0 -0
  766. data/vendor/Image-ExifTool-9.27/t/images/Font.pfa +38 -0
  767. data/vendor/Image-ExifTool-9.27/t/images/Font.pfb +0 -0
  768. data/vendor/Image-ExifTool-9.27/t/images/Font.pfm +0 -0
  769. data/vendor/Image-ExifTool-9.27/t/images/Font.ttf +0 -0
  770. data/vendor/Image-ExifTool-9.27/t/images/FotoStation.jpg +0 -0
  771. data/vendor/Image-ExifTool-9.27/t/images/FujiFilm.jpg +0 -0
  772. data/vendor/Image-ExifTool-9.27/t/images/FujiFilm.raf +0 -0
  773. data/vendor/Image-ExifTool-9.27/t/images/GE.jpg +0 -0
  774. data/vendor/Image-ExifTool-9.27/t/images/GIF.gif +0 -0
  775. data/vendor/Image-ExifTool-9.27/t/images/GIMP.xcf +0 -0
  776. data/vendor/Image-ExifTool-9.27/t/images/GPS.jpg +0 -0
  777. data/vendor/Image-ExifTool-9.27/t/images/GeoTiff.tif +0 -0
  778. data/vendor/Image-ExifTool-9.27/t/images/Geotag.gpx +23 -0
  779. data/vendor/Image-ExifTool-9.27/t/images/Geotag.igc +24 -0
  780. data/vendor/Image-ExifTool-9.27/t/images/Geotag.log +13 -0
  781. data/vendor/Image-ExifTool-9.27/t/images/Geotag.xml +23 -0
  782. data/vendor/Image-ExifTool-9.27/t/images/Geotag2.log +7 -0
  783. data/vendor/Image-ExifTool-9.27/t/images/HTML.html +77 -0
  784. data/vendor/Image-ExifTool-9.27/t/images/IPTC.jpg +0 -0
  785. data/vendor/Image-ExifTool-9.27/t/images/ITC.itc +0 -0
  786. data/vendor/Image-ExifTool-9.27/t/images/InDesign.indd +0 -0
  787. data/vendor/Image-ExifTool-9.27/t/images/JVC.jpg +0 -0
  788. data/vendor/Image-ExifTool-9.27/t/images/JVC2.jpg +0 -0
  789. data/vendor/Image-ExifTool-9.27/t/images/Jpeg2000.j2c +0 -0
  790. data/vendor/Image-ExifTool-9.27/t/images/Jpeg2000.jp2 +0 -0
  791. data/vendor/Image-ExifTool-9.27/t/images/Kodak.jpg +0 -0
  792. data/vendor/Image-ExifTool-9.27/t/images/KyoceraRaw.raw +0 -0
  793. data/vendor/Image-ExifTool-9.27/t/images/LNK.lnk +0 -0
  794. data/vendor/Image-ExifTool-9.27/t/images/M2TS.mts +0 -0
  795. data/vendor/Image-ExifTool-9.27/t/images/MIE.mie +0 -0
  796. data/vendor/Image-ExifTool-9.27/t/images/MIFF.miff +0 -0
  797. data/vendor/Image-ExifTool-9.27/t/images/MP3.mp3 +0 -0
  798. data/vendor/Image-ExifTool-9.27/t/images/MWG.jpg +0 -0
  799. data/vendor/Image-ExifTool-9.27/t/images/MXF.mxf +0 -0
  800. data/vendor/Image-ExifTool-9.27/t/images/Matroska.mkv +0 -0
  801. data/vendor/Image-ExifTool-9.27/t/images/Minolta.jpg +0 -0
  802. data/vendor/Image-ExifTool-9.27/t/images/Minolta.mrw +0 -0
  803. data/vendor/Image-ExifTool-9.27/t/images/Nikon.jpg +0 -0
  804. data/vendor/Image-ExifTool-9.27/t/images/Nikon.nef +0 -0
  805. data/vendor/Image-ExifTool-9.27/t/images/NikonD2Hs.jpg +0 -0
  806. data/vendor/Image-ExifTool-9.27/t/images/NikonD70.jpg +0 -0
  807. data/vendor/Image-ExifTool-9.27/t/images/OOXML.docx +0 -0
  808. data/vendor/Image-ExifTool-9.27/t/images/Olympus.jpg +0 -0
  809. data/vendor/Image-ExifTool-9.27/t/images/Olympus2.jpg +0 -0
  810. data/vendor/Image-ExifTool-9.27/t/images/OlympusE1.jpg +0 -0
  811. data/vendor/Image-ExifTool-9.27/t/images/OpenDoc.ods +0 -0
  812. data/vendor/Image-ExifTool-9.27/t/images/OpenEXR.exr +0 -0
  813. data/vendor/Image-ExifTool-9.27/t/images/PDF.pdf +0 -0
  814. data/vendor/Image-ExifTool-9.27/t/images/PDF2.pdf +0 -0
  815. data/vendor/Image-ExifTool-9.27/t/images/PGF.pgf +0 -0
  816. data/vendor/Image-ExifTool-9.27/t/images/PICT.pict +0 -0
  817. data/vendor/Image-ExifTool-9.27/t/images/PLIST-bin.plist +0 -0
  818. data/vendor/Image-ExifTool-9.27/t/images/PLIST-xml.plist +35 -0
  819. data/vendor/Image-ExifTool-9.27/t/images/PNG.png +0 -0
  820. data/vendor/Image-ExifTool-9.27/t/images/PPM.ppm +5 -0
  821. data/vendor/Image-ExifTool-9.27/t/images/PSP.psp +0 -0
  822. data/vendor/Image-ExifTool-9.27/t/images/Panasonic.jpg +0 -0
  823. data/vendor/Image-ExifTool-9.27/t/images/Panasonic.rw2 +0 -0
  824. data/vendor/Image-ExifTool-9.27/t/images/Pentax.avi +0 -0
  825. data/vendor/Image-ExifTool-9.27/t/images/Pentax.jpg +0 -0
  826. data/vendor/Image-ExifTool-9.27/t/images/PhotoCD.pcd +0 -0
  827. data/vendor/Image-ExifTool-9.27/t/images/PhotoMechanic.jpg +0 -0
  828. data/vendor/Image-ExifTool-9.27/t/images/Photoshop.psd +0 -0
  829. data/vendor/Image-ExifTool-9.27/t/images/PostScript.eps +108 -0
  830. data/vendor/Image-ExifTool-9.27/t/images/QuickTime.m4a +0 -0
  831. data/vendor/Image-ExifTool-9.27/t/images/QuickTime.mov +0 -0
  832. data/vendor/Image-ExifTool-9.27/t/images/RIFF.avi +0 -0
  833. data/vendor/Image-ExifTool-9.27/t/images/RIFF.wav +0 -0
  834. data/vendor/Image-ExifTool-9.27/t/images/RIFF.webp +0 -0
  835. data/vendor/Image-ExifTool-9.27/t/images/RTF.rtf +25 -0
  836. data/vendor/Image-ExifTool-9.27/t/images/Radiance.hdr +0 -0
  837. data/vendor/Image-ExifTool-9.27/t/images/Real.ra +0 -0
  838. data/vendor/Image-ExifTool-9.27/t/images/Real.ram +1 -0
  839. data/vendor/Image-ExifTool-9.27/t/images/Real.rm +0 -0
  840. data/vendor/Image-ExifTool-9.27/t/images/Ricoh.jpg +0 -0
  841. data/vendor/Image-ExifTool-9.27/t/images/Ricoh2.jpg +0 -0
  842. data/vendor/Image-ExifTool-9.27/t/images/Sanyo.jpg +0 -0
  843. data/vendor/Image-ExifTool-9.27/t/images/Sigma.jpg +0 -0
  844. data/vendor/Image-ExifTool-9.27/t/images/Sigma.x3f +0 -0
  845. data/vendor/Image-ExifTool-9.27/t/images/SigmaDP2.x3f +0 -0
  846. data/vendor/Image-ExifTool-9.27/t/images/Sony.jpg +0 -0
  847. data/vendor/Image-ExifTool-9.27/t/images/Sony.pmp +0 -0
  848. data/vendor/Image-ExifTool-9.27/t/images/Unknown.jpg +0 -0
  849. data/vendor/Image-ExifTool-9.27/t/images/Vorbis.ogg +0 -0
  850. data/vendor/Image-ExifTool-9.27/t/images/Writer.jpg +0 -0
  851. data/vendor/Image-ExifTool-9.27/t/images/XMP.inx +108 -0
  852. data/vendor/Image-ExifTool-9.27/t/images/XMP.jpg +0 -0
  853. data/vendor/Image-ExifTool-9.27/t/images/XMP.svg +33 -0
  854. data/vendor/Image-ExifTool-9.27/t/images/XMP.xml +98 -0
  855. data/vendor/Image-ExifTool-9.27/t/images/XMP.xmp +99 -0
  856. data/vendor/Image-ExifTool-9.27/t/images/XMP2.xmp +25 -0
  857. data/vendor/Image-ExifTool-9.27/t/images/XMP3.xmp +43 -0
  858. data/vendor/Image-ExifTool-9.27/t/images/XMP4.xmp +93 -0
  859. data/vendor/Image-ExifTool-9.27/t/images/XMP5.xmp +158 -0
  860. data/vendor/Image-ExifTool-9.27/t/images/ZIP.gz +0 -0
  861. data/vendor/Image-ExifTool-9.27/t/images/ZIP.zip +0 -0
  862. data/vendor/Image-ExifTool-9.27/t/images/iWork.numbers +0 -0
  863. metadata +868 -218
  864. data/vendor/Image-ExifTool-8.97/.DS_Store +0 -0
  865. data/vendor/Image-ExifTool-8.97/Changes +0 -5753
  866. data/vendor/Image-ExifTool-8.97/ExifTool_config +0 -299
  867. data/vendor/Image-ExifTool-8.97/MANIFEST +0 -831
  868. data/vendor/Image-ExifTool-8.97/META.yml +0 -26
  869. data/vendor/Image-ExifTool-8.97/README +0 -221
  870. data/vendor/Image-ExifTool-8.97/exiftool +0 -5207
  871. data/vendor/Image-ExifTool-8.97/kml.fmt +0 -63
  872. data/vendor/Image-ExifTool-8.97/lib/File/RandomAccess.pm +0 -378
  873. data/vendor/Image-ExifTool-8.97/lib/File/RandomAccess.pod +0 -231
  874. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool.pm +0 -6623
  875. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool.pod +0 -2276
  876. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/AES.pm +0 -501
  877. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/AFCP.pm +0 -280
  878. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/AIFF.pm +0 -271
  879. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/APE.pm +0 -254
  880. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/APP12.pm +0 -322
  881. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/ASF.pm +0 -871
  882. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/BMP.pm +0 -179
  883. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/BZZ.pm +0 -472
  884. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/BigTIFF.pm +0 -286
  885. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/BuildTagLookup.pm +0 -2311
  886. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Canon.pm +0 -7435
  887. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/CanonCustom.pm +0 -2484
  888. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/CanonRaw.pm +0 -927
  889. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/CanonVRD.pm +0 -1481
  890. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/CaptureOne.pm +0 -235
  891. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Casio.pm +0 -2013
  892. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Charset.pm +0 -396
  893. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/DICOM.pm +0 -3832
  894. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/DNG.pm +0 -835
  895. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/DV.pm +0 -319
  896. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/DjVu.pm +0 -373
  897. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/EXE.pm +0 -1228
  898. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Exif.pm +0 -4344
  899. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/FLAC.pm +0 -296
  900. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Fixup.pm +0 -333
  901. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Flash.pm +0 -755
  902. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/FlashPix.pm +0 -1882
  903. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Font.pm +0 -643
  904. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/FotoStation.pm +0 -258
  905. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/FujiFilm.pm +0 -968
  906. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/GE.pm +0 -80
  907. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/GIF.pm +0 -525
  908. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/GIMP.pm +0 -258
  909. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/GPS.pm +0 -511
  910. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/GeoTiff.pm +0 -2187
  911. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Geotag.pm +0 -1171
  912. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/H264.pm +0 -1093
  913. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/HP.pm +0 -262
  914. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/HTML.pm +0 -576
  915. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/HtmlDump.pm +0 -886
  916. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/ICC_Profile.pm +0 -997
  917. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/ID3.pm +0 -1276
  918. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/IPTC.pm +0 -1233
  919. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/ITC.pm +0 -215
  920. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Import.pm +0 -307
  921. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/InDesign.pm +0 -277
  922. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/JPEG.pm +0 -584
  923. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/JPEGDigest.pm +0 -2511
  924. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/JVC.pm +0 -130
  925. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Jpeg2000.pm +0 -823
  926. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Kodak.pm +0 -2012
  927. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/KyoceraRaw.pm +0 -173
  928. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/LNK.pm +0 -723
  929. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/cs.pm +0 -1581
  930. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/de.pm +0 -5503
  931. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/en_ca.pm +0 -557
  932. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/en_gb.pm +0 -572
  933. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/es.pm +0 -1718
  934. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/fi.pm +0 -2831
  935. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/fr.pm +0 -4716
  936. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/it.pm +0 -2201
  937. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/ja.pm +0 -5793
  938. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/ko.pm +0 -2324
  939. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/nl.pm +0 -3212
  940. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/pl.pm +0 -1134
  941. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/ru.pm +0 -761
  942. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/sv.pm +0 -632
  943. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/tr.pm +0 -539
  944. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/zh_cn.pm +0 -1320
  945. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Lang/zh_tw.pm +0 -794
  946. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Leaf.pm +0 -515
  947. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/M2TS.pm +0 -729
  948. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/MIE.pm +0 -2552
  949. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/MIEUnits.pod +0 -377
  950. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/MIFF.pm +0 -279
  951. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/MNG.pm +0 -684
  952. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/MPC.pm +0 -156
  953. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/MPEG.pm +0 -736
  954. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/MPF.pm +0 -286
  955. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/MWG.pm +0 -586
  956. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/MXF.pm +0 -3032
  957. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/MakerNotes.pm +0 -1551
  958. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Matroska.pm +0 -891
  959. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Microsoft.pm +0 -861
  960. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Minolta.pm +0 -2786
  961. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/MinoltaRaw.pm +0 -534
  962. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Nikon.pm +0 -5568
  963. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/NikonCapture.pm +0 -911
  964. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/NikonCustom.pm +0 -3724
  965. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/OOXML.pm +0 -409
  966. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Ogg.pm +0 -237
  967. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Olympus.pm +0 -4027
  968. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/OpenEXR.pm +0 -324
  969. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/PDF.pm +0 -1986
  970. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/PGF.pm +0 -143
  971. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/PICT.pm +0 -1260
  972. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/PNG.pm +0 -1100
  973. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/PPM.pm +0 -169
  974. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/PSP.pm +0 -305
  975. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Panasonic.pm +0 -1852
  976. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/PanasonicRaw.pm +0 -383
  977. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Pentax.pm +0 -5044
  978. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/PhotoCD.pm +0 -507
  979. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/PhotoMechanic.pm +0 -250
  980. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Photoshop.pm +0 -594
  981. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/PostScript.pm +0 -691
  982. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/PrintIM.pm +0 -125
  983. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Qualcomm.pm +0 -1344
  984. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/QuickTime.pm +0 -2920
  985. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/README +0 -922
  986. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/RIFF.pm +0 -1278
  987. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/RSRC.pm +0 -240
  988. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/RTF.pm +0 -383
  989. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Radiance.pm +0 -144
  990. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Rawzor.pm +0 -190
  991. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Real.pm +0 -736
  992. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Reconyx.pm +0 -190
  993. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Ricoh.pm +0 -714
  994. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Samsung.pm +0 -764
  995. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Sanyo.pm +0 -439
  996. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Shift.pl +0 -594
  997. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Shortcuts.pm +0 -289
  998. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Sigma.pm +0 -488
  999. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/SigmaRaw.pm +0 -676
  1000. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Sony.pm +0 -3844
  1001. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/SonyIDC.pm +0 -330
  1002. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Stim.pm +0 -196
  1003. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/TagInfoXML.pm +0 -763
  1004. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/TagLookup.pm +0 -7305
  1005. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/TagNames.pod +0 -24147
  1006. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Theora.pm +0 -145
  1007. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Unknown.pm +0 -66
  1008. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Vorbis.pm +0 -221
  1009. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/WriteCanonRaw.pl +0 -637
  1010. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/WriteExif.pl +0 -3513
  1011. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/WriteIPTC.pl +0 -700
  1012. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/WritePDF.pl +0 -757
  1013. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/WritePNG.pl +0 -329
  1014. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/WritePhotoshop.pl +0 -266
  1015. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/WritePostScript.pl +0 -776
  1016. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/WriteXMP.pl +0 -1296
  1017. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/Writer.pl +0 -5577
  1018. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/XMP.pm +0 -3589
  1019. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/XMP2.pl +0 -1315
  1020. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/XMPStruct.pl +0 -814
  1021. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/ZIP.pm +0 -623
  1022. data/vendor/Image-ExifTool-8.97/lib/Image/ExifTool/iWork.pm +0 -223
  1023. data/vendor/Image-ExifTool-8.97/perl-Image-ExifTool.spec +0 -103
@@ -0,0 +1,282 @@
1
+ #------------------------------------------------------------------------------
2
+ # File: BigTIFF.pm
3
+ #
4
+ # Description: Read Big TIFF meta information
5
+ #
6
+ # Revisions: 07/03/2007 - P. Harvey Created
7
+ #
8
+ # References: 1) http://www.awaresystems.be/imaging/tiff/bigtiff.html
9
+ #------------------------------------------------------------------------------
10
+
11
+ package Image::ExifTool::BigTIFF;
12
+
13
+ use strict;
14
+ use vars qw($VERSION);
15
+ use Image::ExifTool qw(:DataAccess :Utils);
16
+ use Image::ExifTool::Exif;
17
+
18
+ $VERSION = '1.05';
19
+
20
+ my $maxOffset = 0x7fffffff; # currently supported maximum data offset/size
21
+
22
+ #------------------------------------------------------------------------------
23
+ # Process Big IFD directory
24
+ # Inputs: 0) ExifTool object ref, 1) dirInfo ref, 2) tag table ref
25
+ # Returns: 1 on success, otherwise returns 0 and sets a Warning
26
+ sub ProcessBigIFD($$$)
27
+ {
28
+ my ($exifTool, $dirInfo, $tagTablePtr) = @_;
29
+ my $raf = $$dirInfo{RAF};
30
+ my $verbose = $exifTool->{OPTIONS}->{Verbose};
31
+ my $htmlDump = $exifTool->{HTML_DUMP};
32
+ my $dirName = $$dirInfo{DirName};
33
+ my $dirStart = $$dirInfo{DirStart};
34
+
35
+ $verbose = -1 if $htmlDump; # mix htmlDump into verbose so we can test for both at once
36
+
37
+ # loop through IFD chain
38
+ for (;;) {
39
+ if ($dirStart > $maxOffset and not $exifTool->Options('LargeFileSupport')) {
40
+ $exifTool->Warn('Huge offsets not supported (LargeFileSupport not set)');
41
+ last;
42
+ }
43
+ unless ($raf->Seek($dirStart, 0)) {
44
+ $exifTool->Warn("Bad $dirName offset");
45
+ return 0;
46
+ }
47
+ my ($dirBuff, $index);
48
+ unless ($raf->Read($dirBuff, 8) == 8) {
49
+ $exifTool->Warn("Truncated $dirName count");
50
+ return 0;
51
+ }
52
+ my $numEntries = Image::ExifTool::Get64u(\$dirBuff, 0);
53
+ $verbose > 0 and $exifTool->VerboseDir($dirName, $numEntries);
54
+ my $bsize = $numEntries * 20;
55
+ if ($bsize > $maxOffset) {
56
+ $exifTool->Warn('Huge directory counts not yet supported');
57
+ last;
58
+ }
59
+ my $bufPos = $raf->Tell();
60
+ unless ($raf->Read($dirBuff, $bsize) == $bsize) {
61
+ $exifTool->Warn("Truncated $dirName directory");
62
+ return 0;
63
+ }
64
+ my $nextIFD;
65
+ $raf->Read($nextIFD, 8) == 8 or undef $nextIFD; # try to read next IFD pointer
66
+ if ($htmlDump) {
67
+ $exifTool->HDump($bufPos-8, 8, "$dirName entries", "Entry count: $numEntries");
68
+ if (defined $nextIFD) {
69
+ my $tip = sprintf("Offset: 0x%.8x", Image::ExifTool::Get64u(\$nextIFD, 0));
70
+ $exifTool->HDump($bufPos + 20 * $numEntries, 8, "Next IFD", $tip, 0);
71
+ }
72
+ }
73
+ # loop through all entries in this BigTIFF IFD
74
+ for ($index=0; $index<$numEntries; ++$index) {
75
+ my $entry = 20 * $index;
76
+ my $tagID = Get16u(\$dirBuff, $entry);
77
+ my $format = Get16u(\$dirBuff, $entry+2);
78
+ my $count = Image::ExifTool::Get64u(\$dirBuff, $entry+4);
79
+ my $formatSize = $Image::ExifTool::Exif::formatSize[$format];
80
+ unless (defined $formatSize) {
81
+ $exifTool->HDump($bufPos+$entry,20,"[invalid IFD entry]",
82
+ "Bad format value: $format", 1);
83
+ # warn unless the IFD was just padded with zeros
84
+ $exifTool->Warn(sprintf("Unknown format ($format) for $dirName tag 0x%x",$tagID));
85
+ return 0; # assume corrupted IFD
86
+ }
87
+ my $formatStr = $Image::ExifTool::Exif::formatName[$format];
88
+ my $size = $count * $formatSize;
89
+ my $tagInfo = $exifTool->GetTagInfo($tagTablePtr, $tagID);
90
+ next unless defined $tagInfo or $verbose;
91
+ my $valuePtr = $entry + 12;
92
+ my ($valBuff, $valBase, $rational);
93
+ if ($size > 8) {
94
+ if ($size > $maxOffset) {
95
+ $exifTool->Warn("Can't handle $dirName entry $index (huge size)");
96
+ next;
97
+ }
98
+ $valuePtr = Image::ExifTool::Get64u(\$dirBuff, $valuePtr);
99
+ if ($valuePtr > $maxOffset and not $exifTool->Options('LargeFileSupport')) {
100
+ $exifTool->Warn("Can't handle $dirName entry $index (LargeFileSupport not set)");
101
+ next;
102
+ }
103
+ unless ($raf->Seek($valuePtr, 0) and $raf->Read($valBuff, $size) == $size) {
104
+ $exifTool->Warn("Error reading $dirName entry $index");
105
+ next;
106
+ }
107
+ $valBase = 0;
108
+ } else {
109
+ $valBuff = substr($dirBuff, $valuePtr, $size);
110
+ $valBase = $bufPos;
111
+ }
112
+ if (defined $tagInfo and not $tagInfo) {
113
+ # GetTagInfo() required the value for a Condition
114
+ $tagInfo = $exifTool->GetTagInfo($tagTablePtr, $tagID, \$valBuff);
115
+ }
116
+ my $val = ReadValue(\$valBuff, 0, $formatStr, $count, $size, \$rational);
117
+ if ($htmlDump) {
118
+ my $tval = $val;
119
+ # show numerator/denominator separately for rational numbers
120
+ $tval .= " ($rational)" if defined $rational;
121
+ my ($tagName, $colName);
122
+ if ($tagID == 0x927c and $dirName eq 'ExifIFD') {
123
+ $tagName = 'MakerNotes';
124
+ } elsif ($tagInfo) {
125
+ $tagName = $$tagInfo{Name};
126
+ } else {
127
+ $tagName = sprintf("Tag 0x%.4x",$tagID);
128
+ }
129
+ my $dname = sprintf("$dirName-%.2d", $index);
130
+ # build our tool tip
131
+ my $tip = sprintf("Tag ID: 0x%.4x\n", $tagID) .
132
+ "Format: $formatStr\[$count]\nSize: $size bytes\n";
133
+ if ($size > 8) {
134
+ $tip .= sprintf("Value offset: 0x%.8x\n", $valuePtr);
135
+ $colName = "<span class=H>$tagName</span>";
136
+ } else {
137
+ $colName = $tagName;
138
+ }
139
+ $tval = substr($tval,0,28) . '[...]' if length($tval) > 32;
140
+ if ($formatStr =~ /^(string|undef|binary)/) {
141
+ # translate non-printable characters
142
+ $tval =~ tr/\x00-\x1f\x7f-\xff/./;
143
+ } elsif ($tagInfo and Image::ExifTool::IsInt($tval)) {
144
+ if ($$tagInfo{IsOffset}) {
145
+ $tval = sprintf('0x%.4x', $tval);
146
+ } elsif ($$tagInfo{PrintHex}) {
147
+ $tval = sprintf('0x%x', $tval);
148
+ }
149
+ }
150
+ $tip .= "Value: $tval";
151
+ $exifTool->HDump($entry+$bufPos, 20, "$dname $colName", $tip, 1);
152
+ if ($size > 8) {
153
+ # add value data block
154
+ my $flg = ($tagInfo and $$tagInfo{SubDirectory} and $$tagInfo{MakerNotes}) ? 4 : 0;
155
+ $exifTool->HDump($valuePtr,$size,"$tagName value",'SAME', $flg);
156
+ }
157
+ }
158
+ if ($tagInfo and $$tagInfo{SubIFD}) {
159
+ # process all SubIFD's as BigTIFF
160
+ $verbose > 0 and $exifTool->VerboseInfo($tagID, $tagInfo,
161
+ Table => $tagTablePtr,
162
+ Index => $index,
163
+ Value => $val,
164
+ DataPt => \$valBuff,
165
+ DataPos => $valBase + $valuePtr,
166
+ Start => 0,
167
+ Size => $size,
168
+ Format => $formatStr,
169
+ Count => $count,
170
+ );
171
+ my @offsets = split ' ', $val;
172
+ my $i;
173
+ for ($i=0; $i<scalar(@offsets); ++$i) {
174
+ my $subdirName = $$tagInfo{Name};
175
+ $subdirName .= $i if $i;
176
+ my %subdirInfo = (
177
+ RAF => $raf,
178
+ DataPos => 0,
179
+ DirStart => $offsets[$i],
180
+ DirName => $subdirName,
181
+ Parent => $dirInfo,
182
+ );
183
+ $exifTool->ProcessDirectory(\%subdirInfo, $tagTablePtr, \&ProcessBigIFD);
184
+ }
185
+ } else {
186
+ my $tagKey = $exifTool->HandleTag($tagTablePtr, $tagID, $val,
187
+ Index => $index,
188
+ DataPt => \$valBuff,
189
+ DataPos => $valBase + $valuePtr,
190
+ Start => 0,
191
+ Size => $size,
192
+ Format => $formatStr,
193
+ TagInfo => $tagInfo,
194
+ RAF => $raf,
195
+ );
196
+ $tagKey and $exifTool->SetGroup($tagKey, $dirName);
197
+ }
198
+ }
199
+ last unless $dirName =~ /^(IFD|SubIFD)(\d*)$/;
200
+ $dirName = $1 . (($2 || 0) + 1);
201
+ defined $nextIFD or $exifTool->Warn("Bad $dirName pointer"), return 0;
202
+ $dirStart = Image::ExifTool::Get64u(\$nextIFD, 0);
203
+ $dirStart or last;
204
+ }
205
+ return 1;
206
+ }
207
+
208
+ #------------------------------------------------------------------------------
209
+ # Extract meta information from a BigTIFF image
210
+ # Inputs: 0) ExifTool object reference, 1) dirInfo reference
211
+ # Returns: 1 on success, 0 if this wasn't a valid BigTIFF image
212
+ sub ProcessBTF($$)
213
+ {
214
+ my ($exifTool, $dirInfo) = @_;
215
+ my $raf = $$dirInfo{RAF};
216
+ my $buff;
217
+
218
+ return 0 unless $raf->Read($buff, 16) == 16;
219
+ return 0 unless $buff =~ /^(MM\0\x2b\0\x08\0\0|II\x2b\0\x08\0\0\0)/;
220
+ if ($$dirInfo{OutFile}) {
221
+ $exifTool->Error('ExifTool does not support writing of BigTIFF images');
222
+ return 1;
223
+ }
224
+ $exifTool->SetFileType('BTF'); # set the FileType tag
225
+ SetByteOrder(substr($buff, 0, 2));
226
+ my $offset = Image::ExifTool::Get64u(\$buff, 8);
227
+ if ($exifTool->{HTML_DUMP}) {
228
+ my $o = (GetByteOrder() eq 'II') ? 'Little' : 'Big';
229
+ $exifTool->HDump(0, 8, "BigTIFF header", "Byte order: $o endian", 0);
230
+ $exifTool->HDump(8, 8, "IFD0 pointer", sprintf("Offset: 0x%.8x",$offset), 0);
231
+ }
232
+ my %dirInfo = (
233
+ RAF => $raf,
234
+ DataPos => 0,
235
+ DirStart => $offset,
236
+ DirName => 'IFD0',
237
+ Parent => 'BigTIFF',
238
+ );
239
+ my $tagTablePtr = GetTagTable('Image::ExifTool::Exif::Main');
240
+ $exifTool->ProcessDirectory(\%dirInfo, $tagTablePtr, \&ProcessBigIFD);
241
+ return 1;
242
+ }
243
+
244
+ 1; # end
245
+
246
+ __END__
247
+
248
+ =head1 NAME
249
+
250
+ Image::ExifTool::BigTIFF - Read Big TIFF meta information
251
+
252
+ =head1 SYNOPSIS
253
+
254
+ This module is used by Image::ExifTool
255
+
256
+ =head1 DESCRIPTION
257
+
258
+ This module contains routines required by Image::ExifTool to read meta
259
+ information in BigTIFF images.
260
+
261
+ =head1 AUTHOR
262
+
263
+ Copyright 2003-2013, Phil Harvey (phil at owl.phy.queensu.ca)
264
+
265
+ This library is free software; you can redistribute it and/or modify it
266
+ under the same terms as Perl itself.
267
+
268
+ =head1 REFERENCES
269
+
270
+ =over 4
271
+
272
+ =item L<http://www.awaresystems.be/imaging/tiff/bigtiff.html>
273
+
274
+ =back
275
+
276
+ =head1 SEE ALSO
277
+
278
+ L<Image::ExifTool::TagNames/EXIF Tags>,
279
+ L<Image::ExifTool(3pm)|Image::ExifTool>
280
+
281
+ =cut
282
+
@@ -0,0 +1,2391 @@
1
+ #------------------------------------------------------------------------------
2
+ # File: BuildTagLookup.pm
3
+ #
4
+ # Description: Utility to build tag lookup tables in Image::ExifTool::TagLookup.pm
5
+ #
6
+ # Revisions: 12/31/2004 - P. Harvey Created
7
+ # 02/15/2005 - PH Added ability to generate TagNames documentation
8
+ #
9
+ # Notes: Documentation for the tag tables may either be placed in the
10
+ # %docs hash below or in a NOTES entry in the table itself, and
11
+ # individual tags may have their own Notes entry.
12
+ #------------------------------------------------------------------------------
13
+
14
+ package Image::ExifTool::BuildTagLookup;
15
+
16
+ use strict;
17
+ require Exporter;
18
+
19
+ BEGIN {
20
+ # prevent ExifTool from loading the user config file
21
+ $Image::ExifTool::configFile = '';
22
+ $Image::ExifTool::debug = 1; # enabled debug messages
23
+ }
24
+
25
+ use vars qw($VERSION @ISA);
26
+ use Image::ExifTool qw(:Utils :Vars);
27
+ use Image::ExifTool::Exif;
28
+ use Image::ExifTool::Shortcuts;
29
+ use Image::ExifTool::HTML qw(EscapeHTML);
30
+ use Image::ExifTool::IPTC;
31
+ use Image::ExifTool::XMP;
32
+ use Image::ExifTool::Canon;
33
+ use Image::ExifTool::Nikon;
34
+
35
+ $VERSION = '2.60';
36
+ @ISA = qw(Exporter);
37
+
38
+ sub NumbersFirst;
39
+
40
+ my $numbersFirst = 1; # set to -1 to sort numbers last
41
+
42
+ # list of all tables in plug-in modules
43
+ my @pluginTables = ('Image::ExifTool::MWG::Composite');
44
+
45
+ # colors for html pages
46
+ my $noteFont = "<span class=n>";
47
+ my $noteFontSmall = "<span class='n s'>";
48
+
49
+ my $docType = q{<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
50
+ "http://www.w3.org/TR/html4/loose.dtd">
51
+ };
52
+
53
+ my $homePage = 'http://owl.phy.queensu.ca/~phil/exiftool';
54
+
55
+ # tweak the ordering of tables in the documentation
56
+ my %tweakOrder = (
57
+ # this => comes after this
58
+ # ------- -----------------
59
+ JPEG => '-', # JPEG comes first
60
+ IPTC => 'Exif', # put IPTC after EXIF,
61
+ GPS => 'XMP', # etc...
62
+ Composite => 'Extra',
63
+ GeoTiff => 'GPS',
64
+ CanonVRD=> 'CanonCustom',
65
+ FLIR => 'Casio',
66
+ FujiFilm => 'FLIR',
67
+ Kodak => 'JVC',
68
+ 'Kodak::IFD' => 'Kodak::Unknown',
69
+ 'Kodak::TextualInfo' => 'Kodak::IFD',
70
+ 'Kodak::Processing' => 'Kodak::TextualInfo',
71
+ Leaf => 'Kodak',
72
+ Minolta => 'Leaf',
73
+ Pentax => 'Panasonic',
74
+ SonyIDC => 'Sony',
75
+ Unknown => 'SonyIDC',
76
+ DNG => 'Unknown',
77
+ PrintIM => 'ICC_Profile',
78
+ Vorbis => 'Ogg',
79
+ ID3 => 'PostScript',
80
+ MinoltaRaw => 'KyoceraRaw',
81
+ KyoceraRaw => 'CanonRaw',
82
+ SigmaRaw => 'PanasonicRaw',
83
+ Olympus => 'NikonCapture',
84
+ PhotoMechanic => 'FotoStation',
85
+ Microsoft => 'PhotoMechanic',
86
+ 'Microsoft::MP'=> 'Microsoft::MP1',
87
+ GIMP => 'Microsoft',
88
+ 'Nikon::CameraSettingsD300' => 'Nikon::ShotInfoD300b',
89
+ 'Pentax::LensData' => 'Pentax::LensInfo2',
90
+ 'Sony::SRF2' => 'Sony::SRF',
91
+ 'Samsung::PictureWizard' => 'Samsung::Type2', # (necessary because Samsung doesn't have a main table)
92
+ 'Samsung::INFO' => 'Samsung::PictureWizard', # (ditto)
93
+ 'Samsung::MP4' => 'Samsung::INFO', # (ditto)
94
+ 'Samsung::Thumbnail' => 'Samsung::MP4', # (ditto)
95
+ DarwinCore => 'AFCP',
96
+ 'MWG::Regions' => 'MWG::Composite',
97
+ 'MWG::Keywords' => 'MWG::Regions',
98
+ 'MWG::Collections' => 'MWG::Keywords',
99
+ );
100
+
101
+ # list of all recognized Format strings
102
+ # (not a complete list, but this is all we use so far)
103
+ # (also, formats like "var_X[Y]" are allowed for any valid X)
104
+ my %formatOK = (
105
+ %Image::ExifTool::Exif::formatNumber,
106
+ 0 => 1,
107
+ 1 => 1,
108
+ real => 1,
109
+ integer => 1,
110
+ date => 1,
111
+ boolean => 1,
112
+ rational => 1,
113
+ 'lang-alt' => 1,
114
+ fixed16u => 1,
115
+ fixed16s => 1,
116
+ fixed32u => 1,
117
+ fixed32s => 1,
118
+ extended => 1,
119
+ resize => 1,
120
+ digits => 1,
121
+ int16uRev => 1,
122
+ rational32u => 1,
123
+ rational32s => 1,
124
+ pstring => 1,
125
+ var_string => 1,
126
+ var_int16u => 1,
127
+ var_pstr32 => 1,
128
+ # Matroska
129
+ signed => 1,
130
+ unsigned => 1,
131
+ utf8 => 1,
132
+ );
133
+
134
+ my $caseInsensitive; # flag to ignore case when sorting tag names
135
+
136
+ # Descriptions for the TagNames documentation
137
+ # (descriptions may also be defined in tag table NOTES)
138
+ # Note: POD headers in these descriptions start with '~' instead of '=' to keep
139
+ # from confusing POD parsers which apparently parse inside quoted strings.
140
+ my %docs = (
141
+ PodHeader => q{
142
+ ~head1 NAME
143
+
144
+ Image::ExifTool::TagNames - ExifTool tag name documentation
145
+
146
+ ~head1 DESCRIPTION
147
+
148
+ This document contains a complete list of ExifTool tag names, organized into
149
+ tables based on information type. Tag names are used to reference specific
150
+ meta information extracted from or written to a file.
151
+
152
+ ~head1 TAG TABLES
153
+ },
154
+ ExifTool => q{
155
+ The tables listed below give the names of all tags recognized by ExifTool.
156
+ },
157
+ ExifTool2 => q{
158
+ B<Tag ID>, B<Index#> or B<Sequence> is given in the first column of each
159
+ table. A B<Tag ID> is the computer-readable equivalent of a tag name, and
160
+ is the identifier that is actually stored in the file. B<Index#> refers to
161
+ the location of a value when found at a fixed position within a data block
162
+ (B<#> is the multiplier for calculating a byte offset: B<1>, B<2> or B<4>).
163
+ B<Sequence> gives the order of values for a serial data stream.
164
+
165
+ A B<Tag Name> is the handle by which the information is accessed in
166
+ ExifTool. In some instances, more than one name may correspond to a single
167
+ tag ID. In these cases, the actual name used depends on the context in
168
+ which the information is found. Case is not significant for tag names. A
169
+ question mark (C<?>) after a tag name indicates that the information is
170
+ either not understood, not verified, or not very useful -- these tags are
171
+ not extracted by ExifTool unless the Unknown (-u) option is enabled. Be
172
+ aware that some tag names are different than the descriptions printed out by
173
+ default when extracting information with exiftool. To see the tag names
174
+ instead of the descriptions, use C<exiftool -s>.
175
+
176
+ The B<Writable> column indicates whether the tag is writable by ExifTool.
177
+ Anything but an C<N> in this column means the tag is writable. A C<Y>
178
+ indicates writable information that is either unformatted or written using
179
+ the existing format. Other expressions give details about the information
180
+ format, and vary depending on the general type of information. The format
181
+ name may be followed by a number in square brackets to indicate the number
182
+ of values written, or the number of characters in a fixed-length string
183
+ (including a null terminator which is added if required).
184
+
185
+ A plus sign (C<+>) after an entry in the B<Writable> column indicates a
186
+ "list" tag which supports multiple values and allows individual values to be
187
+ added and deleted. A slash (C</>) indicates an "avoided" tag that is not
188
+ created when writing if another same-named tag may be created instead. To
189
+ write these tags, the group should be specified. A tilde (C<~>) indicates a
190
+ tag this is writable only when the print conversion is disabled (by setting
191
+ PrintConv to 0, using the -n option, or suffixing the tag name with a C<#>
192
+ character). An exclamation point (C<!>) indicates a tag that is considered
193
+ unsafe to write under normal circumstances. These "unsafe" tags are not set
194
+ when calling SetNewValuesFromFile() or copied with the exiftool
195
+ -tagsFromFile option unless specified explicitly, and care should be taken
196
+ when editing them manually since they may affect the way an image is
197
+ rendered. An asterisk (C<*>) indicates a "protected" tag which is not
198
+ writable directly, but is written automatically by ExifTool (often when a
199
+ corresponding Composite or Extra tag is written). A colon (C<:>) indicates
200
+ a mandatory tag which may be added automatically when writing.
201
+
202
+ The HTML version of these tables also lists possible B<Values> for
203
+ discrete-valued tags, as well as B<Notes> for some tags. The B<Values> are
204
+ listed as the computer-readable and human-readable values on the left and
205
+ right hand side of an equals sign (C<=>) respectively. The human-readable
206
+ values are used by default when reading and writing, but the
207
+ computer-readable values may be accessed by disabling the value conversion
208
+ with the -n option on the command line, by setting the ValueConv option to 0
209
+ in the API, or or on a per-tag basis by adding a hash (C<#>) after the tag
210
+ name.
211
+
212
+ B<Note>: If you are familiar with common meta-information tag names, you may
213
+ find that some ExifTool tag names are different than expected. The usual
214
+ reason for this is to make the tag names more consistent across different
215
+ types of meta information. To determine a tag name, either consult this
216
+ documentation or run C<exiftool -s> on a file containing the information in
217
+ question.
218
+ },
219
+ EXIF => q{
220
+ EXIF stands for "Exchangeable Image File Format". This type of information
221
+ is formatted according to the TIFF specification, and may be found in JPG,
222
+ TIFF, PNG, JP2, PGF, MIFF, HDP, PSP and XCF images, as well as many
223
+ TIFF-based RAW images, and even some AVI and MOV videos.
224
+
225
+ The EXIF meta information is organized into different Image File Directories
226
+ (IFD's) within an image. The names of these IFD's correspond to the
227
+ ExifTool family 1 group names. When writing EXIF information, the default
228
+ B<Group> listed below is used unless another group is specified.
229
+
230
+ The table below lists all EXIF tags. Also listed are TIFF, DNG, HDP and
231
+ other tags which are not part of the EXIF specification, but may co-exist
232
+ with EXIF tags in some images. Tags which are part of the EXIF 2.3
233
+ specification have an underlined B<Tag Name> in the HTML version of this
234
+ documentation. See
235
+ L<http://www.cipa.jp/english/hyoujunka/kikaku/pdf/DC-008-2012_E.pdf> for the
236
+ official EXIF 2.3 specification.
237
+ },
238
+ GPS => q{
239
+ These GPS tags are part of the EXIF standard, and are stored in a separate
240
+ IFD within the EXIF information.
241
+
242
+ ExifTool is very flexible about the input format when writing lat/long
243
+ coordinates, and will accept from 1 to 3 floating point numbers (for decimal
244
+ degrees, degrees and minutes, or degrees, minutes and seconds) separated by
245
+ just about anything, and will format them properly according to the EXIF
246
+ specification.
247
+
248
+ Some GPS tags have values which are fixed-length strings. For these, the
249
+ indicated string lengths include a null terminator which is added
250
+ automatically by ExifTool. Remember that the descriptive values are used
251
+ when writing (ie. 'Above Sea Level', not '0') unless the print conversion is
252
+ disabled (with '-n' on the command line or the PrintConv option in the API,
253
+ or by suffixing the tag name with a C<#> character).
254
+
255
+ When adding GPS information to an image, it is important to set all of the
256
+ following tags: GPSLatitude, GPSLatitudeRef, GPSLongitude, GPSLongitudeRef,
257
+ GPSAltitude and GPSAltitudeRef. ExifTool will write the required
258
+ GPSVersionID tag automatically if new a GPS IFD is added to an image.
259
+ },
260
+ XMP => q{
261
+ XMP stands for "Extensible Metadata Platform", an XML/RDF-based metadata
262
+ format which is being pushed by Adobe. Information in this format can be
263
+ embedded in many different image file types including JPG, JP2, TIFF, GIF,
264
+ EPS, PDF, PSD, IND, INX, PNG, DJVU, SVG, PGF, MIFF, XCF, CRW, DNG and a
265
+ variety of proprietary TIFF-based RAW images, as well as MOV, AVI, ASF, WMV,
266
+ FLV, SWF and MP4 videos, and WMA and audio formats supporting ID3v2
267
+ information.
268
+
269
+ The XMP B<Tag ID>'s aren't listed because in most cases they are identical
270
+ to the B<Tag Name> (aside from differences in case). Tags with different
271
+ ID's are mentioned in the B<Notes> column of the HTML version of this
272
+ document.
273
+
274
+ All XMP information is stored as character strings. The B<Writable> column
275
+ specifies the information format: C<string> is an unformatted string,
276
+ C<integer> is a string of digits (possibly beginning with a '+' or '-'),
277
+ C<real> is a floating point number, C<rational> is entered as a floating
278
+ point number but stored as two C<integer> strings separated by a '/'
279
+ character, C<date> is a date/time string entered in the format "YYYY:mm:dd
280
+ HH:MM:SS[.ss][+/-HH:MM]", C<boolean> is either "True" or "False", C<struct>
281
+ indicates a structured tag, and C<lang-alt> is a tag that supports alternate
282
+ languages.
283
+
284
+ When reading, C<struct> tags are extracted only if the Struct (-struct)
285
+ option is used. Otherwise the corresponding "flattened" tags, indicated by
286
+ an underline (C<_>) after the B<Writable> type, are extracted. When
287
+ copying, by default both structured and flattened tags are available, but
288
+ the flattened tags are considered "unsafe" so they they aren't copied unless
289
+ specified explicitly. The Struct option may be disabled by setting Struct
290
+ to 0 via the API or with --struct on the command line to copy only flattened
291
+ tags, or enabled by setting Struct to 1 via the API or with -struct on the
292
+ command line to copy only as structures. When writing, the Struct option
293
+ has no effect, and both structured and flattened tags may be written. See
294
+ L<http://owl.phy.queensu.ca/~phil/exiftool/struct.html> for more details.
295
+
296
+ Individual languages for C<lang-alt> tags are accessed by suffixing the tag
297
+ name with a '-', followed by an RFC 3066 language code (ie. "XMP:Title-fr",
298
+ or "Rights-en-US"). (See L<http://www.ietf.org/rfc/rfc3066.txt> for the RFC
299
+ 3066 specification.) A C<lang-alt> tag with no language code accesses the
300
+ "x-default" language, but causes other languages for this tag to be deleted
301
+ when writing. The "x-default" language code may be specified when writing
302
+ to preserve other existing languages (ie. "XMP-dc:Description-x-default").
303
+ When reading, "x-default" is not specified.
304
+
305
+ The XMP tags are organized according to schema B<Namespace> in the following
306
+ tables. Note that a few of the longer namespace prefixes given below have
307
+ been shortened for convenience (since the family 1 group names are derived
308
+ from these by adding a leading "XMP-"). In cases where a tag name exists in
309
+ more than one namespace, less common namespaces are avoided when writing.
310
+ However, any namespace may be written by specifying a family 1 group name
311
+ for the tag, ie) XMP-exif:Contrast or XMP-crs:Contrast. When deciding on
312
+ which tags to add to an image, using standard schemas such as
313
+ L<dc|/XMP dc Tags>, L<xmp|/XMP xmp Tags>, L<iptcCore|/XMP iptcCore Tags>
314
+ and L<iptcExt|/XMP iptcExt Tags> is recommended if possible.
315
+
316
+ For structures, the heading of the first column is B<Field Name>. Field
317
+ names are very similar to tag names, except they are used to identify fields
318
+ inside structures instead of stand-alone tags. See
319
+ L<the Field Name section of the Structured Information documentation|http://owl.phy.queensu.ca/~phil/exiftool/struct.html#Fields> for more
320
+ details.
321
+
322
+ ExifTool will extract XMP information even if it is not listed in these
323
+ tables, but other tags are not writable unless added as user-defined tags in
324
+ the L<ExifTool config file|../config.html>. For example, the C<pdfx> namespace doesn't have a
325
+ predefined set of tag names because it is used to store application-defined
326
+ PDF information, so although this information will be extracted, it is only
327
+ writable if the corresponding user-defined tags have been created.
328
+
329
+ The tables below list tags from the official XMP specification (with an
330
+ underlined B<Namespace> in the HTML version of this documentation), as well
331
+ as extensions from various other sources. See
332
+ L<http://www.adobe.com/devnet/xmp/> for the official XMP specification.
333
+ },
334
+ IPTC => q{
335
+ The tags listed below are part of the International Press Telecommunications
336
+ Council (IPTC) and the Newspaper Association of America (NAA) Information
337
+ Interchange Model (IIM). This is an older meta information format, slowly
338
+ being phased out in favor of XMP -- the newer IPTCCore specification uses
339
+ XMP format. IPTC information may be embedded in JPG, TIFF, PNG, MIFF, PS,
340
+ PDF, PSD, XCF and DNG images.
341
+
342
+ IPTC information is separated into different records, each of which has its
343
+ own set of tags. See
344
+ L<http://www.iptc.org/std/IIM/4.1/specification/IIMV4.1.pdf> for the
345
+ official IPTC IIM specification.
346
+
347
+ This specification dictates a length for ASCII (C<string> or C<digits>) and
348
+ binary (C<undef>) values. These lengths are given in square brackets after
349
+ the B<Writable> format name. For tags where a range of lengths is allowed,
350
+ the minimum and maximum lengths are separated by a comma within the
351
+ brackets. IPTC strings are not null terminated. When writing, ExifTool
352
+ issues a minor warning and truncates the value if it is longer than allowed
353
+ by the IPTC specification. Minor errors may be ignored with the
354
+ IgnoreMinorErrors (-m) option, allowing longer values to be written, but
355
+ beware that values like this may cause problems for some other IPTC readers.
356
+
357
+ Separate IPTC date and time tags may be written with a combined date/time
358
+ value and ExifTool automagically takes the appropriate part of the date/time
359
+ string depending on whether a date or time tag is being written. This is
360
+ very useful when copying date/time values to IPTC from other metadata
361
+ formats.
362
+
363
+ IPTC time values include a timezone offset. If written with a value which
364
+ doesn't include a timezone then the current local timezone offset is used
365
+ (unless written with a combined date/time, in which case the local timezone
366
+ offset at the specified date/time is used, which may be different due to
367
+ changes in daylight savings time).
368
+ },
369
+ Photoshop => q{
370
+ Photoshop tags are found in PSD and PSB files, as well as inside embedded
371
+ Photoshop information in many other file types (JPEG, TIFF, PDF, PNG to name
372
+ a few).
373
+
374
+ Many Photoshop tags are marked as Unknown (indicated by a question mark
375
+ after the tag name) because the information they provide is not very useful
376
+ under normal circumstances I<[and because Adobe denied my application for
377
+ their file format documentation -- apparently open source software is too
378
+ big a concept for them]>. These unknown tags are not extracted unless the
379
+ Unknown (-u) option is used.
380
+ },
381
+ PrintIM => q{
382
+ The format of the PrintIM information is known, however no PrintIM tags have
383
+ been decoded. Use the Unknown (-u) option to extract PrintIM information.
384
+ },
385
+ GeoTiff => q{
386
+ ExifTool extracts the following tags from GeoTIFF images. See
387
+ L<http://www.remotesensing.org/geotiff/spec/geotiffhome.html> for the
388
+ complete GeoTIFF specification.
389
+ },
390
+ JFIF => q{
391
+ The following information is extracted from the JPEG JFIF header. See
392
+ L<http://www.jpeg.org/public/jfif.pdf> for the JFIF 1.02 specification.
393
+ },
394
+ Kodak => q{
395
+ Many Kodak models don't store the maker notes in standard IFD format, and
396
+ these formats vary with different models. Some information has been
397
+ decoded, but much of the Kodak information remains unknown.
398
+ },
399
+ 'Kodak SpecialEffects' => q{
400
+ The Kodak SpecialEffects and Borders tags are found in sub-IFD's within the
401
+ Kodak JPEG APP3 "Meta" segment.
402
+ },
403
+ Minolta => q{
404
+ These tags are used by Minolta, Konica/Minolta as well as some Sony cameras.
405
+ Minolta doesn't make things easy for decoders because the meaning of some
406
+ tags and the location where some information is stored is different for
407
+ different camera models. (Take MinoltaQuality for example, which may be
408
+ located in 5 different places.)
409
+ },
410
+ Olympus => q{
411
+ Tags 0x0000 through 0x0103 are used by some older Olympus cameras, and are
412
+ the same as Konica/Minolta tags. These tags are also used for some models
413
+ from other brands such as Acer, BenQ, Epson, Hitachi, HP, Maginon, Minolta,
414
+ Pentax, Ricoh, Samsung, Sanyo, SeaLife, Sony, Supra and Vivitar.
415
+ },
416
+ Panasonic => q{
417
+ These tags are used in Panasonic/Leica cameras.
418
+ },
419
+ Pentax => q{
420
+ These tags are used in Pentax/Asahi cameras.
421
+ },
422
+ CanonRaw => q{
423
+ These tags apply to CRW-format Canon RAW files and information in the APP0
424
+ "CIFF" segment of JPEG images. When writing CanonRaw/CIFF information, the
425
+ length of the information is preserved (and the new information is truncated
426
+ or padded as required) unless B<Writable> is C<resize>. Currently, only
427
+ JpgFromRaw and ThumbnailImage are allowed to change size.
428
+
429
+ CRW images also support the addition of a CanonVRD trailer, which in turn
430
+ supports XMP. This trailer is created automatically if necessary when
431
+ ExifTool is used to write XMP to a CRW image.
432
+ },
433
+ Unknown => q{
434
+ The following tags are decoded in unsupported maker notes. Use the Unknown
435
+ (-u) option to display other unknown tags.
436
+ },
437
+ PDF => q{
438
+ The tags listed in the PDF tables below are those which are used by ExifTool
439
+ to extract meta information, but they are only a small fraction of the total
440
+ number of available PDF tags. See
441
+ L<http://www.adobe.com/devnet/pdf/pdf_reference.html> for the official PDF
442
+ specification.
443
+
444
+ ExifTool supports reading and writing PDF documents up to version 1.7
445
+ extension level 3, including support for RC4, AES-128 and AES-256
446
+ encryption. A Password option is provided to allow processing of
447
+ password-protected PDF files.
448
+
449
+ When writing PDF files, ExifTool uses an incremental update. This has the
450
+ advantages of being fast and reversible. The original PDF can be easily
451
+ recovered by deleting the C<PDF-update> pseudo-group (with
452
+ C<-PDF-update:all=> on the command line). But there are two main
453
+ disadvantages to this technique:
454
+
455
+ 1) A linearized PDF file is no longer linearized after the update, so it
456
+ must be subsequently re-linearized if this is required.
457
+
458
+ 2) All metadata edits are reversible. While this would normally be
459
+ considered an advantage, it is a potential security problem because old
460
+ information is never actually deleted from the file.
461
+ },
462
+ DNG => q{
463
+ The main DNG tags are found in the EXIF table. The tables below define only
464
+ information found within structures of these main DNG tag values. See
465
+ L<http://www.adobe.com/products/dng/> for the official DNG specification.
466
+ },
467
+ MPEG => q{
468
+ The MPEG format doesn't specify any file-level meta information. In lieu of
469
+ this, information is extracted from the first audio and video frame headers
470
+ in the file.
471
+ },
472
+ Real => q{
473
+ ExifTool recognizes three basic types of Real audio/video files: 1)
474
+ RealMedia (RM, RV and RMVB), 2) RealAudio (RA), and 3) Real Metafile (RAM
475
+ and RPM).
476
+ },
477
+ Extra => q{
478
+ The extra tags represent extra information extracted or generated by
479
+ ExifTool that is not directly associated with another tag group. The
480
+ B<Group> column lists the family 1 group name when reading. Tags with a "-"
481
+ in this column are write-only.
482
+
483
+ Tags in the family 1 "System" group are referred to as "pseudo" tags because
484
+ they don't represent real metadata in the file. Instead, this information
485
+ is stored in the directory structure of the filesystem. The four writable
486
+ "pseudo" tags (FileName, Directory, FileModifyDate and FileCreateDate) may
487
+ be written without modifying the file itself.
488
+ },
489
+ Composite => q{
490
+ The values of the composite tags are B<Derived From> the values of other
491
+ tags. These are convenience tags which are calculated after all other
492
+ information is extracted. User-defined Composite tags, useful for
493
+ custom-formatting of tag values, may created in the L<ExifTool configuration
494
+ file|../config.html>.
495
+ },
496
+ Shortcuts => q{
497
+ Shortcut tags are convenience tags that represent one or more other tag
498
+ names. They are used like regular tags to read and write the information
499
+ for a specified set of tags.
500
+
501
+ The shortcut tags below have been pre-defined, but user-defined shortcuts
502
+ may be added via the %Image::ExifTool::UserDefined::Shortcuts lookup in the
503
+ ~/.ExifTool_config file. See the Image::ExifTool::Shortcuts documentation
504
+ for more details.
505
+ },
506
+ MWG => q{
507
+ The Metadata Working Group (MWG) recommends techniques to allow certain
508
+ overlapping EXIF, IPTC and XMP tags to be reconciled when reading, and
509
+ synchronized when writing. The MWG Composite tags below are designed to aid
510
+ in the implementation of these recommendations. As well, the MWG defines
511
+ new XMP tags which are listed in the subsequent tables below. See
512
+ L<http://www.metadataworkinggroup.org/> for the official MWG specification.
513
+ },
514
+ PodTrailer => q{
515
+ ~head1 NOTES
516
+
517
+ This document generated automatically by
518
+ L<Image::ExifTool::BuildTagLookup|Image::ExifTool::BuildTagLookup>.
519
+
520
+ ~head1 AUTHOR
521
+
522
+ Copyright 2003-2013, Phil Harvey (phil at owl.phy.queensu.ca)
523
+
524
+ This library is free software; you can redistribute it and/or modify it
525
+ under the same terms as Perl itself.
526
+
527
+ ~head1 SEE ALSO
528
+
529
+ L<Image::ExifTool(3pm)|Image::ExifTool>
530
+
531
+ ~cut
532
+ },
533
+ );
534
+
535
+ # notes for Shortcuts tags
536
+ my %shortcutNotes = (
537
+ MakerNotes => q{
538
+ useful when copying tags between files to either copy the maker notes as a
539
+ block or prevent it from being copied
540
+ },
541
+ CommonIFD0 => q{
542
+ common metadata tags found in IFD0 of TIFF-format images. Used to simpify
543
+ deletion of all metadata from these images. See
544
+ L<FAQ number 7|../faq.html#Q7> for details
545
+ },
546
+ Unsafe => q{
547
+ "unsafe" tags in JPEG images which are normally not copied. Defined here
548
+ as a shortcut to use when rebuilding JPEG EXIF from scratch
549
+ },
550
+ );
551
+
552
+
553
+
554
+ # EXIF table tag ID's which are part of the EXIF 2.3 specification
555
+ # (used only to add underlines in HTML version of EXIF Tag Table)
556
+ my %exifSpec = (
557
+ 0x100 => 1, 0x212 => 1, 0x9204 => 1, 0xa217 => 1,
558
+ 0x101 => 1, 0x213 => 1, 0x9205 => 1, 0xa300 => 1,
559
+ 0x102 => 1, 0x214 => 1, 0x9206 => 1, 0xa301 => 1,
560
+ 0x103 => 1, 0x8298 => 1, 0x9207 => 1, 0xa302 => 1,
561
+ 0x106 => 1, 0x829a => 1, 0x9208 => 1, 0xa401 => 1,
562
+ 0x10e => 1, 0x829d => 1, 0x9209 => 1, 0xa402 => 1,
563
+ 0x10f => 1, 0x8769 => 1, 0x920a => 1, 0xa403 => 1,
564
+ 0x110 => 1, 0x8822 => 1, 0x9214 => 1, 0xa404 => 1,
565
+ 0x111 => 1, 0x8824 => 1, 0x927c => 1, 0xa405 => 1,
566
+ 0x112 => 1, 0x8825 => 1, 0x9286 => 1, 0xa406 => 1,
567
+ 0x115 => 1, 0x8827 => 1, 0x9290 => 1, 0xa407 => 1,
568
+ 0x116 => 1, 0x8828 => 1, 0x9291 => 1, 0xa408 => 1,
569
+ 0x117 => 1, 0x8830 => 1, 0x9292 => 1, 0xa409 => 1,
570
+ 0x11a => 1, 0x8831 => 1, 0xa000 => 1, 0xa40a => 1,
571
+ 0x11b => 1, 0x8832 => 1, 0xa001 => 1, 0xa40b => 1,
572
+ 0x11c => 1, 0x8833 => 1, 0xa002 => 1, 0xa40c => 1,
573
+ 0x128 => 1, 0x8834 => 1, 0xa003 => 1, 0xa420 => 1,
574
+ 0x12d => 1, 0x8835 => 1, 0xa004 => 1, 0xa430 => 1,
575
+ 0x131 => 1, 0x9000 => 1, 0xa005 => 1, 0xa431 => 1,
576
+ 0x132 => 1, 0x9003 => 1, 0xa20b => 1, 0xa432 => 1,
577
+ 0x13b => 1, 0x9004 => 1, 0xa20c => 1, 0xa433 => 1,
578
+ 0x13e => 1, 0x9101 => 1, 0xa20e => 1, 0xa434 => 1,
579
+ 0x13f => 1, 0x9102 => 1, 0xa20f => 1, 0xa435 => 1,
580
+ 0x201 => 1, 0x9201 => 1, 0xa210 => 1,
581
+ 0x202 => 1, 0x9202 => 1, 0xa214 => 1,
582
+ 0x211 => 1, 0x9203 => 1, 0xa215 => 1,
583
+ );
584
+ # same thing for RIFF INFO tags found in the EXIF spec
585
+ my %riffSpec = (
586
+ IARL => 1, ICRD => 1, IGNR => 1, IPLT => 1, ISRC => 1,
587
+ IART => 1, ICRP => 1, IKEY => 1, IPRD => 1, ISRF => 1,
588
+ ICMS => 1, IDIM => 1, ILGT => 1, ISBJ => 1, ITCH => 1,
589
+ ICMT => 1, IDPI => 1, IMED => 1, ISFT => 1,
590
+ ICOP => 1, IENG => 1, INAM => 1, ISHP => 1,
591
+ );
592
+ # same thing for XMP namespaces
593
+ my %xmpSpec = (
594
+ aux => 1, 'x' => 1,
595
+ crs => 1, xmp => 1,
596
+ dc => 1, xmpBJ => 1,
597
+ exif => 1, xmpDM => 1,
598
+ pdf => 1, xmpMM => 1,
599
+ pdfx => 1, xmpNote => 1,
600
+ photoshop => 1, xmpRights => 1,
601
+ tiff => 1, xmpTPg => 1,
602
+ );
603
+
604
+ #------------------------------------------------------------------------------
605
+ # New - create new BuildTagLookup object
606
+ # Inputs: 0) reference to BuildTagLookup object or BuildTagLookup class name
607
+ sub new
608
+ {
609
+ local $_;
610
+ my $that = shift;
611
+ my $class = ref($that) || $that || 'Image::ExifTool::BuildTagLookup';
612
+ my $self = bless {}, $class;
613
+ my (%subdirs, %isShortcut, %allStructs);
614
+ my %count = (
615
+ 'unique tag names' => 0,
616
+ 'total tags' => 0,
617
+ );
618
+ #
619
+ # loop through all tables, accumulating TagLookup and TagName information
620
+ #
621
+ my (%tagNameInfo, %id, %longID, %longName, %shortName, %tableNum,
622
+ %tagLookup, %tagExists, %tableWritable, %sepTable, %structs,
623
+ %compositeModules, %isPlugin, %flattened, %structLookup);
624
+ $self->{TAG_NAME_INFO} = \%tagNameInfo;
625
+ $self->{ID_LOOKUP} = \%id;
626
+ $self->{LONG_ID} = \%longID;
627
+ $self->{LONG_NAME} = \%longName;
628
+ $self->{SHORT_NAME} = \%shortName;
629
+ $self->{TABLE_NUM} = \%tableNum;
630
+ $self->{TAG_LOOKUP} = \%tagLookup;
631
+ $self->{TAG_EXISTS} = \%tagExists;
632
+ $self->{FLATTENED} = \%flattened;
633
+ $self->{TABLE_WRITABLE} = \%tableWritable;
634
+ $self->{SEPARATE_TABLE} = \%sepTable;
635
+ $self->{STRUCTURES} = \%structs;
636
+ $self->{STRUCT_LOOKUP} = \%structLookup; # lookup for Struct hash ref based on Struct name
637
+ $self->{COMPOSITE_MODULES} = \%compositeModules;
638
+ $self->{COUNT} = \%count;
639
+
640
+ Image::ExifTool::LoadAllTables();
641
+ my @tableNames = sort keys %allTables;
642
+ # add Shortcuts after other tables
643
+ push @tableNames, 'Image::ExifTool::Shortcuts::Main';
644
+ # add plug-in modules last
645
+ foreach (@pluginTables) {
646
+ push @tableNames, $_;
647
+ $isPlugin{$_} = 1;
648
+ }
649
+
650
+ my $tableNum = 0;
651
+ my $exifTool = new Image::ExifTool;
652
+ my ($tableName, $tag);
653
+ # create lookup for short table names
654
+ foreach $tableName (@tableNames) {
655
+ my $short = $tableName;
656
+ $short =~ s/^Image::ExifTool:://;
657
+ $short =~ s/::Main$//;
658
+ $short =~ s/::/ /;
659
+ $short =~ s/^(.+)Tags$/\u$1/ unless $short eq 'Nikon AVITags';
660
+ $short =~ s/^Exif\b/EXIF/;
661
+ # change underlines to dashes in XMP-mwg group names
662
+ # (we used underlines just because Perl variables can't contain dashes)
663
+ $short =~ s/^XMP mwg_/XMP mwg-/;
664
+ $shortName{$tableName} = $short; # remember short name
665
+ $tableNum{$tableName} = $tableNum++;
666
+ }
667
+ # validate DICOM UID values
668
+ foreach (values %Image::ExifTool::DICOM::uid) {
669
+ next unless /[\0-\x1f\x7f-\xff]/;
670
+ warn "Warning: Special characters in DICOM UID value ($_)\n";
671
+ }
672
+ # make lookup table to check for shortcut tags
673
+ foreach $tag (keys %Image::ExifTool::Shortcuts::Main) {
674
+ my $entry = $Image::ExifTool::Shortcuts::Main{$tag};
675
+ # ignore if shortcut tag name includes itself
676
+ next if ref $entry eq 'ARRAY' and grep /^$tag$/, @$entry;
677
+ $isShortcut{lc($tag)} = 1;
678
+ }
679
+ foreach $tableName (@tableNames) {
680
+ # create short table name
681
+ my $short = $shortName{$tableName};
682
+ my $info = $tagNameInfo{$tableName} = [ ];
683
+ my $isPlugin = $isPlugin{$tableName};
684
+ my ($table, $shortcut, %isOffset, %datamember, %hasSubdir);
685
+ if ($short eq 'Shortcuts') {
686
+ # can't use GetTagTable() for Shortcuts (not a normal table)
687
+ $table = \%Image::ExifTool::Shortcuts::Main;
688
+ $shortcut = 1;
689
+ } elsif ($isPlugin) {
690
+ $table = GetTagTable($tableName);
691
+ # don't add to allTables list because this messes our table order
692
+ delete $allTables{$tableName};
693
+ pop @tableOrder;
694
+ } else {
695
+ $table = GetTagTable($tableName);
696
+ }
697
+ my $tableNum = $tableNum{$tableName};
698
+ my $writeProc = $$table{WRITE_PROC};
699
+ my $vars = $$table{VARS} || { };
700
+ $longID{$tableName} = 0;
701
+ $longName{$tableName} = 0;
702
+ # save all tag names
703
+ my ($tagID, $binaryTable, $noID, $hexID, $isIPTC, $isXMP);
704
+ $isIPTC = 1 if $writeProc and $writeProc eq \&Image::ExifTool::IPTC::WriteIPTC;
705
+ # generate flattened tag names for structure fields if this is an XMP table
706
+ if ($$table{GROUPS} and $$table{GROUPS}{0} eq 'XMP') {
707
+ Image::ExifTool::XMP::AddFlattenedTags($table);
708
+ $isXMP = 1;
709
+ }
710
+ $noID = 1 if $isXMP or $short =~ /^(Shortcuts|ASF.*)$/ or $$vars{NO_ID};
711
+ $hexID = $$vars{HEX_ID};
712
+ my $processBinaryData = ($$table{PROCESS_PROC} and (
713
+ $$table{PROCESS_PROC} eq \&Image::ExifTool::ProcessBinaryData or
714
+ $$table{PROCESS_PROC} eq \&Image::ExifTool::Nikon::ProcessNikonEncrypted));
715
+ if ($$vars{ID_LABEL} or $processBinaryData) {
716
+ my $s = $$table{FORMAT} ? Image::ExifTool::FormatSize($$table{FORMAT}) || 1 : 1;
717
+ $binaryTable = 1;
718
+ $id{$tableName} = $$vars{ID_LABEL} || "Index$s";
719
+ } elsif ($isIPTC and $$table{PROCESS_PROC}) { #only the main IPTC table has a PROCESS_PROC
720
+ $id{$tableName} = 'Record';
721
+ } elsif (not $noID) {
722
+ $id{$tableName} = 'Tag ID';
723
+ }
724
+ $caseInsensitive = $isXMP;
725
+ $numbersFirst = -1 if $$table{VARS} and $$table{VARS}{ALPHA_FIRST};
726
+ my @keys = sort NumbersFirst TagTableKeys($table);
727
+ $numbersFirst = 1;
728
+ my $defFormat = $table->{FORMAT};
729
+ # use default format for binary data tables
730
+ $defFormat = 'int8u' if not $defFormat and $binaryTable;
731
+
732
+ TagID: foreach $tagID (@keys) {
733
+ my ($tagInfo, @tagNames, $subdir, @values);
734
+ my (@infoArray, @require, @writeGroup, @writable);
735
+ if ($shortcut) {
736
+ # must build a dummy tagInfo list since Shortcuts is not a normal table
737
+ $tagInfo = {
738
+ Name => $tagID,
739
+ Notes => $shortcutNotes{$tagID},
740
+ Writable => 1,
741
+ Require => { },
742
+ };
743
+ my $i;
744
+ for ($i=0; $i<@{$$table{$tagID}}; ++$i) {
745
+ $tagInfo->{Require}->{$i} = $table->{$tagID}->[$i];
746
+ }
747
+ @infoArray = ( $tagInfo );
748
+ } else {
749
+ @infoArray = GetTagInfoList($table,$tagID);
750
+ }
751
+ foreach $tagInfo (@infoArray) {
752
+ my $name = $$tagInfo{Name};
753
+ my $format = $$tagInfo{Format};
754
+ # validate Name (must not start with a digit or else XML output will not be valid)
755
+ if ($name !~ /^[-_A-Za-z][-\w]+$/ and
756
+ # single-character subdirectory names are allowed
757
+ (not $$tagInfo{SubDirectory} or $name !~ /^[-_A-Za-z]$/))
758
+ {
759
+ warn "Warning: Invalid tag name $short '$name'\n";
760
+ }
761
+ # accumulate information for consistency check of BinaryData tables
762
+ if ($processBinaryData and $$table{WRITABLE}) {
763
+ # can't currently write tag if Condition accesses $valPt
764
+ if ($$tagInfo{Condition} and not $$tagInfo{SubDirectory} and
765
+ $$tagInfo{Condition} =~ /\$valPt/ and
766
+ ($$tagInfo{Writable} or not defined $$tagInfo{Writable}))
767
+ {
768
+ warn "Warning: Tag not writable due to Condition - $short $name\n";
769
+ }
770
+ $isOffset{$tagID} = $name if $$tagInfo{IsOffset};
771
+ $hasSubdir{$tagID} = $name if $$tagInfo{SubDirectory};
772
+ # require DATAMEMBER for writable var-format tags, Hook and DataMember tags
773
+ if ($format and $format =~ /^var_/) {
774
+ $datamember{$tagID} = $name;
775
+ unless (defined $$tagInfo{Writable} and not $$tagInfo{Writable}) {
776
+ warn "Warning: Var-format tag is writable - $short $name\n"
777
+ }
778
+ # also need DATAMEMBER for tags used in length of var-sized value
779
+ while ($format =~ /\$val\{(.*?)\}/g) {
780
+ my $id = $1;
781
+ $id = hex($id) if $id =~ /^0x/; # convert from hex if necessary
782
+ $datamember{$id} = $$table{$id}{Name} if ref $$table{$id} eq 'HASH';
783
+ unless ($datamember{$id}) {
784
+ warn "Warning: Unknown ID ($id) used in Format - $short $name\n";
785
+ }
786
+ }
787
+ } elsif ($$tagInfo{Hook} or ($$tagInfo{RawConv} and
788
+ $$tagInfo{RawConv} =~ /\$self(->)?\{\w+\}\s*=(?!~)/))
789
+ {
790
+ $datamember{$tagID} = $name;
791
+ }
792
+ if ($format and $format =~ /\$val\{/ and
793
+ ($$tagInfo{Writable} or not defined $$tagInfo{Writable}))
794
+ {
795
+ warn "Warning: \$var{} used in Format of writable tag - $short $name\n"
796
+ }
797
+ }
798
+ if ($$tagInfo{Hidden}) {
799
+ if ($tagInfo == $infoArray[0]) {
800
+ next TagID; # hide all tags with this ID if first tag in list is hidden
801
+ } else {
802
+ next; # only hide this tag
803
+ }
804
+ }
805
+ my $writable;
806
+ if (defined $$tagInfo{Writable}) {
807
+ $writable = $$tagInfo{Writable};
808
+ # validate Writable
809
+ unless ($formatOK{$writable} or ($writable =~ /(.*)\[/ and $formatOK{$1})) {
810
+ warn "Warning: Unknown Writable ($writable) - $short $name\n",
811
+ }
812
+ } elsif (not $$tagInfo{SubDirectory}) {
813
+ $writable = $$table{WRITABLE};
814
+ }
815
+ # validate some characteristics of obvious date/time tags
816
+ if ($$tagInfo{PrintConv} and $$tagInfo{PrintConv} eq '$self->ConvertDateTime($val)') {
817
+ my @g = $exifTool->GetGroup($tagInfo);
818
+ warn "$short $name should be in 'Time' group!\n" unless $g[2] eq 'Time';
819
+ if ($writable and not $$tagInfo{Shift} and $g[0] ne 'Composite' and
820
+ $short ne 'PostScript')
821
+ {
822
+ warn "$short $name is not shiftable!\n";
823
+ }
824
+ if ($writable and (not $$tagInfo{PrintConvInv} or
825
+ $$tagInfo{PrintConvInv} !~ /InverseDateTime/))
826
+ {
827
+ warn "$short $name missing InverseDateTime PrintConvInv\n";
828
+ }
829
+ } elsif ($name =~ /DateTime(?!Stamp)/ and (not $$tagInfo{Groups}{2} or
830
+ $$tagInfo{Groups}{2} ne 'Time') and $short ne 'DICOM') {
831
+ warn "$short $name should be in 'Time' group!\n";
832
+ }
833
+ # validate Description (can't contain special characters)
834
+ if ($$tagInfo{Description} and
835
+ $$tagInfo{Description} ne EscapeHTML($$tagInfo{Description}))
836
+ {
837
+ # this is a problem because the Escape option currently only
838
+ # escapes descriptions if the default Lang option isn't default
839
+ warn "$name description contains special characters!\n";
840
+ }
841
+ # generate structure lookup
842
+ my $struct = $$tagInfo{Struct};
843
+ my $strTable;
844
+ if (ref $struct) {
845
+ $strTable = $struct;
846
+ $struct = $$strTable{STRUCT_NAME};
847
+ if ($struct) {
848
+ my $oldTable = $structLookup{$struct};
849
+ if ($oldTable and $oldTable ne $strTable) {
850
+ warn "Duplicate XMP structure with name $struct\n";
851
+ } else {
852
+ $structLookup{$struct} = $strTable;
853
+ }
854
+ } else {
855
+ warn "Missing STRUCT_NAME for structure in $$tagInfo{Name}\n";
856
+ undef $strTable;
857
+ }
858
+ } elsif ($struct) {
859
+ $strTable = $structLookup{$struct};
860
+ unless ($strTable) {
861
+ $struct = "XMP $struct" unless $struct =~ / /;
862
+ warn "Missing $struct structure!\n";
863
+ undef $struct;
864
+ }
865
+ }
866
+ # validate SubIFD flag
867
+ my $subdir = $$tagInfo{SubDirectory};
868
+ my $isSub = ($subdir and $$subdir{Start} and $$subdir{Start} =~ /\$val\b/);
869
+ if ($$tagInfo{SubIFD}) {
870
+ warn "Warning: Wrong SubDirectory Start for SubIFD tag - $short $name\n" unless $isSub;
871
+ } else {
872
+ warn "Warning: SubIFD flag not set for $short $name\n" if $isSub;
873
+ }
874
+ if ($$tagInfo{Notes}) {
875
+ my $note = $$tagInfo{Notes};
876
+ # remove leading/trailing blank lines
877
+ $note =~ s/^\s+//; $note =~ s/\s+$//;
878
+ # remove leading/trailing spaces on each line
879
+ $note =~ s/(^[ \t]+|[ \t]+$)//mg;
880
+ push @values, "($note)";
881
+ } elsif ($isXMP and lc $tagID ne lc $name) {
882
+ # add note about different XMP Tag ID
883
+ if ($$tagInfo{RootTagInfo}) {
884
+ push @values, "($tagID)";
885
+ } else {
886
+ push @values,"(called $tagID by the spec)";
887
+ }
888
+ }
889
+ my $writeGroup;
890
+ if ($short eq 'Extra') {
891
+ my @g = $exifTool->GetGroup($tagInfo);
892
+ $writeGroup = $$tagInfo{WriteOnly} ? '-' : $g[1];
893
+ } else {
894
+ $writeGroup = $$tagInfo{WriteGroup};
895
+ }
896
+ unless ($writeGroup) {
897
+ $writeGroup = $$table{WRITE_GROUP} if $writable;
898
+ $writeGroup = '-' unless $writeGroup;
899
+ }
900
+ if (defined $format) {
901
+ # validate Format
902
+ unless ($formatOK{$format} or $short eq 'PICT' or
903
+ ($format =~ /^(var_)?(.*)\[/ and $formatOK{$2}))
904
+ {
905
+ warn "Warning: Unknown Format ($format) for $short $name\n";
906
+ }
907
+ } else {
908
+ $format = $defFormat;
909
+ }
910
+ if ($subdir) {
911
+ my $subTable = $$subdir{TagTable} || $tableName;
912
+ push @values, $shortName{$subTable}
913
+ } elsif ($struct) {
914
+ push @values, $struct;
915
+ $structs{$struct} = 1;
916
+ }
917
+ my $type;
918
+ foreach $type ('Require','Desire') {
919
+ my $require = $$tagInfo{$type};
920
+ if (ref $require) {
921
+ foreach (sort { $a <=> $b } keys %$require) {
922
+ push @require, $$require{$_};
923
+ }
924
+ } elsif ($require) {
925
+ push @require, $require;
926
+ }
927
+ }
928
+ my $printConv = $$tagInfo{PrintConv};
929
+ if ($$tagInfo{Mask}) {
930
+ my $val = $$tagInfo{Mask};
931
+ push @values, sprintf('[Mask 0x%.2x]',$val);
932
+ $$tagInfo{PrintHex} = 1 unless defined $$tagInfo{PrintHex};
933
+ # verify that all values are within the mask
934
+ if (ref $printConv eq 'HASH') {
935
+ # convert mask if necessary
936
+ if ($$tagInfo{ValueConv}) {
937
+ my $v = eval $$tagInfo{ValueConv};
938
+ $val = $v if defined $v;
939
+ }
940
+ foreach (keys %$printConv) {
941
+ next if $_ !~ /^\d+$/ or ($_ & $val) == $_;
942
+ my $hex = sprintf '0x%.2x', $_;
943
+ warn "$short $name PrintConv value $hex is not in Mask!\n";
944
+ }
945
+ }
946
+ }
947
+ if (ref($printConv) =~ /^(HASH|ARRAY)$/) {
948
+ my (@printConvList, @indexList, $index);
949
+ if (ref $printConv eq 'ARRAY') {
950
+ for ($index=0; $index<@$printConv; ++$index) {
951
+ next if ref $$printConv[$index] ne 'HASH';
952
+ next unless %{$$printConv[$index]};
953
+ push @printConvList, $$printConv[$index];
954
+ push @indexList, $index;
955
+ # collapse values with identical PrintConv's
956
+ if (@printConvList >= 2 and $printConvList[-1] eq $printConvList[-2]) {
957
+ if (ref $indexList[-2]) {
958
+ push @{$indexList[-2]}, $indexList[-1];
959
+ } else {
960
+ $indexList[-2] = [ $indexList[-2], $indexList[-1] ];
961
+ }
962
+ pop @printConvList;
963
+ pop @indexList;
964
+ }
965
+ }
966
+ $printConv = shift @printConvList;
967
+ $index = shift @indexList;
968
+ }
969
+ while (defined $printConv) {
970
+ if (defined $index) {
971
+ # (print indices of original values if reorganized)
972
+ my $s = '';
973
+ my $idx = $$tagInfo{Relist} ? $tagInfo->{Relist}->[$index] : $index;
974
+ if (ref $idx) {
975
+ $s = 's' if @$idx > 1;
976
+ # collapse consecutive number ranges
977
+ my ($i, @i, $rngStart);
978
+ for ($i=0; $i<@$idx; ++$i) {
979
+ if ($i < @$idx - 1 and $$idx[$i+1] == $$idx[$i] + 1) {
980
+ $rngStart = $i unless defined $rngStart;
981
+ next;
982
+ }
983
+ push @i, defined($rngStart) ? "$rngStart-$i" : $i;
984
+ }
985
+ ($idx = join ', ', @i) =~ s/(.*),/$1 and/;
986
+ } elsif (not $$tagInfo{Relist}) {
987
+ while (@printConvList and $printConv eq $printConvList[0]) {
988
+ shift @printConvList;
989
+ $index = shift @indexList;
990
+ }
991
+ if ($idx != $index) {
992
+ $idx = "$idx-$index";
993
+ $s = 's';
994
+ }
995
+ }
996
+ push @values, "[Value$s $idx]";
997
+ }
998
+ if ($$tagInfo{SeparateTable}) {
999
+ $subdir = 1;
1000
+ my $s = $$tagInfo{SeparateTable};
1001
+ $s = $name if $s eq '1';
1002
+ # add module name if not specified
1003
+ $s =~ / / or ($short =~ /^(\w+)/ and $s = "$1 $s");
1004
+ push @values, $s;
1005
+ $sepTable{$s} = $printConv;
1006
+ # add PrintHex flag to PrintConv so we can check it later
1007
+ $$printConv{PrintHex} = 1 if $$tagInfo{PrintHex};
1008
+ $$printConv{PrintString} = 1 if $$tagInfo{PrintString};
1009
+ } else {
1010
+ $caseInsensitive = 0;
1011
+ my @pk = sort NumbersFirst keys %$printConv;
1012
+ my $n = scalar @values;
1013
+ my ($bits, $i);
1014
+ foreach (@pk) {
1015
+ next if $_ eq '';
1016
+ $_ eq 'BITMASK' and $bits = $$printConv{$_}, next;
1017
+ $_ eq 'OTHER' and next;
1018
+ my $index;
1019
+ if (($$tagInfo{PrintHex} or $$printConv{BITMASK}) and /^-?\d+$/) {
1020
+ if ($_ >= 0) {
1021
+ $index = sprintf('0x%x', $_);
1022
+ } elsif ($format and $format =~ /int(16|32)/) {
1023
+ # mask off unused bits of signed integer hex value
1024
+ my $mask = { 16 => 0xffff, 32 => 0xffffffff }->{$1};
1025
+ $index = sprintf('0x%x', $_ & $mask);
1026
+ } else {
1027
+ $index = $_;
1028
+ }
1029
+ } elsif (/^[+-]?(?=\d|\.\d)\d*(\.\d*)?$/ and not $$tagInfo{PrintString}) {
1030
+ $index = $_;
1031
+ } else {
1032
+ $index = $_;
1033
+ # translate unprintable values
1034
+ if ($index =~ s/([\x00-\x1f\x80-\xff])/sprintf("\\x%.2x",ord $1)/eg) {
1035
+ $index = qq{"$index"};
1036
+ } else {
1037
+ $index = qq{'$index'};
1038
+ }
1039
+ }
1040
+ push @values, "$index = " . $$printConv{$_};
1041
+ # validate all PrintConv values
1042
+ if ($$printConv{$_} =~ /[\0-\x1f\x7f-\xff]/) {
1043
+ warn "Warning: Special characters in $short $name PrintConv ($$printConv{$_})\n";
1044
+ }
1045
+ }
1046
+ if ($bits) {
1047
+ my @pk = sort NumbersFirst keys %$bits;
1048
+ foreach (@pk) {
1049
+ push @values, "Bit $_ = " . $$bits{$_};
1050
+ }
1051
+ }
1052
+ # organize values into columns if specified
1053
+ my $cols = $$tagInfo{PrintConvColumns};
1054
+ if (not $cols and scalar(@values) - $n >= 6) {
1055
+ # do columns if more than 6 short entries
1056
+ my $maxLen = 0;
1057
+ for ($i=$n; $i<@values; ++$i) {
1058
+ next unless $maxLen < length $values[$i];
1059
+ $maxLen = length $values[$i];
1060
+ }
1061
+ my $num = scalar(@values) - $n;
1062
+ $cols = int(50 / ($maxLen + 2)); # (50 chars max width)
1063
+ # have 3 rows minimum
1064
+ --$cols while $cols and $num / $cols < 3;
1065
+ }
1066
+ if ($cols) {
1067
+ my @new = splice @values, $n;
1068
+ my $v = '[!HTML]<table class=cols><tr>';
1069
+ my $rows = int((scalar(@new) + $cols - 1) / $cols);
1070
+ for ($n=0; $n<@new; $n+=$rows) {
1071
+ $v .= "\n <td>";
1072
+ for ($i=0; $i<$rows and $n+$i<@new; ++$i) {
1073
+ $v .= "\n <br>" if $i;
1074
+ $v .= EscapeHTML($new[$n+$i]);
1075
+ }
1076
+ $v .= '</td><td>&nbsp;&nbsp;</td>';
1077
+ }
1078
+ push @values, $v . "</tr></table>\n";
1079
+ }
1080
+ }
1081
+ last unless @printConvList;
1082
+ $printConv = shift @printConvList;
1083
+ $index = shift @indexList;
1084
+ }
1085
+ } elsif ($printConv and $printConv =~ /DecodeBits\(\$val,\s*(\{.*\})\s*\)/s) {
1086
+ $$self{Model} = ''; # needed for Nikon ShootingMode
1087
+ my $bits = eval $1;
1088
+ delete $$self{Model};
1089
+ if ($@) {
1090
+ warn $@;
1091
+ } else {
1092
+ my @pk = sort NumbersFirst keys %$bits;
1093
+ foreach (@pk) {
1094
+ push @values, "Bit $_ = " . $$bits{$_};
1095
+ }
1096
+ }
1097
+ }
1098
+ if ($subdir and not $$tagInfo{SeparateTable}) {
1099
+ # subdirectories are only writable if specified explicitly
1100
+ my $tw = $$tagInfo{Writable};
1101
+ $writable = 'Y' if $tw and $writable eq '1';
1102
+ $writable = '-' . ($tw ? $writable : '');
1103
+ $writable .= '!' if $tw and ($$tagInfo{Protected} || 0) & 0x01;
1104
+ $writable .= '+' if $$tagInfo{List};
1105
+ } else {
1106
+ # not writable if we can't do the inverse conversions
1107
+ my $noPrintConvInv;
1108
+ if ($writable) {
1109
+ foreach ('PrintConv','ValueConv') {
1110
+ next unless $$tagInfo{$_};
1111
+ next if $$tagInfo{$_ . 'Inv'};
1112
+ next if ref($$tagInfo{$_}) =~ /^(HASH|ARRAY)$/;
1113
+ next if $$tagInfo{WriteAlso};
1114
+ if ($_ eq 'ValueConv') {
1115
+ undef $writable;
1116
+ } else {
1117
+ $noPrintConvInv = 1;
1118
+ }
1119
+ }
1120
+ }
1121
+ if (not $writable) {
1122
+ $writable = 'N';
1123
+ } else {
1124
+ $writable eq '1' and $writable = $format ? $format : 'Y';
1125
+ my $count = $$tagInfo{Count} || 1;
1126
+ # adjust count to Writable size if different than Format
1127
+ if ($writable and $format and $writable ne $format and
1128
+ $Image::ExifTool::Exif::formatNumber{$writable} and
1129
+ $Image::ExifTool::Exif::formatNumber{$format})
1130
+ {
1131
+ my $n1 = $Image::ExifTool::Exif::formatNumber{$format};
1132
+ my $n2 = $Image::ExifTool::Exif::formatNumber{$writable};
1133
+ $count *= $Image::ExifTool::Exif::formatSize[$n1] /
1134
+ $Image::ExifTool::Exif::formatSize[$n2];
1135
+ }
1136
+ if ($count != 1) {
1137
+ $count = 'n' if $count < 0;
1138
+ $writable .= "[$count]";
1139
+ }
1140
+ $writable .= '~' if $noPrintConvInv;
1141
+ # add a '*' if this tag is protected or a '!' for unsafe tags
1142
+ if ($$tagInfo{Protected}) {
1143
+ $writable .= '*' if $$tagInfo{Protected} & 0x02;
1144
+ $writable .= '!' if $$tagInfo{Protected} & 0x01;
1145
+ }
1146
+ $writable .= '/' if $$tagInfo{Avoid};
1147
+ }
1148
+ $writable = "=struct" if $struct;
1149
+ $writable .= '_' if defined $$tagInfo{Flat};
1150
+ $writable .= '+' if $$tagInfo{List};
1151
+ $writable .= ':' if $$tagInfo{Mandatory};
1152
+ # separate tables link like subdirectories (flagged with leading '-')
1153
+ $writable = "-$writable" if $subdir;
1154
+ }
1155
+ # don't duplicate a tag name unless an entry is different
1156
+ my $lcName = lc($name);
1157
+ # check for conflicts with shortcut names
1158
+ if ($isShortcut{$lcName} and $short ne 'Shortcuts' and
1159
+ ($$tagInfo{Writable} or not $$tagInfo{SubDirectory}))
1160
+ {
1161
+ warn "WARNING: $short $name is a shortcut tag!\n";
1162
+ }
1163
+ $name .= '?' if $$tagInfo{Unknown};
1164
+ unless (@tagNames and $tagNames[-1] eq $name and
1165
+ $writeGroup[-1] eq $writeGroup and $writable[-1] eq $writable)
1166
+ {
1167
+ push @tagNames, $name;
1168
+ push @writeGroup, $writeGroup;
1169
+ push @writable, $writable;
1170
+ }
1171
+ #
1172
+ # add this tag to the tag lookup unless NO_LOOKUP is set or shortcut or plug-in tag
1173
+ #
1174
+ next if $shortcut or $isPlugin;
1175
+ next if $$vars{NO_LOOKUP};
1176
+ # count our tags
1177
+ if ($$tagInfo{SubDirectory}) {
1178
+ $subdirs{$lcName} or $subdirs{$lcName} = 0;
1179
+ ++$subdirs{$lcName};
1180
+ } else {
1181
+ ++$count{'total tags'};
1182
+ unless ($tagExists{$lcName} and (not $subdirs{$lcName} or $subdirs{$lcName} == $tagExists{$lcName})) {
1183
+ ++$count{'unique tag names'};
1184
+ }
1185
+ }
1186
+ $tagExists{$lcName} or $tagExists{$lcName} = 0;
1187
+ ++$tagExists{$lcName};
1188
+ # only add writable tags to lookup table (for speed)
1189
+ my $wflag = $$tagInfo{Writable};
1190
+ next unless $writeProc and ($wflag or ($$table{WRITABLE} and
1191
+ not defined $wflag and not $$tagInfo{SubDirectory}));
1192
+ $tagLookup{$lcName} or $tagLookup{$lcName} = { };
1193
+ # add to lookup for flattened tags if necessary
1194
+ if ($$tagInfo{RootTagInfo}) {
1195
+ $flattened{$lcName} or $flattened{$lcName} = { };
1196
+ $flattened{$lcName}{$tableNum} = $$tagInfo{RootTagInfo}{TagID};
1197
+ }
1198
+ # remember number for this table
1199
+ my $tagIDs = $tagLookup{$lcName}->{$tableNum};
1200
+ # must allow for duplicate tags with the same name in a single table!
1201
+ if ($tagIDs) {
1202
+ if (ref $tagIDs eq 'HASH') {
1203
+ $$tagIDs{$tagID} = 1;
1204
+ next;
1205
+ } elsif ($tagID eq $tagIDs) {
1206
+ next;
1207
+ } else {
1208
+ $tagIDs = { $tagIDs => 1, $tagID => 1 };
1209
+ }
1210
+ } else {
1211
+ $tagIDs = $tagID;
1212
+ }
1213
+ $tableWritable{$tableName} = 1;
1214
+ $tagLookup{$lcName}->{$tableNum} = $tagIDs;
1215
+ if ($short eq 'Composite' and $$tagInfo{Module}) {
1216
+ $compositeModules{$lcName} = $$tagInfo{Module};
1217
+ }
1218
+ }
1219
+ #
1220
+ # save TagName information
1221
+ #
1222
+ my $tagIDstr;
1223
+ if ($tagID =~ /^\d+(\.\d+)?$/) {
1224
+ if (defined $hexID) {
1225
+ $tagIDstr = $hexID ? sprintf('0x%.4x',$tagID) : $tagID;
1226
+ } elsif (not $1 and not $binaryTable and not $isIPTC and
1227
+ not ($short =~ /^CanonCustom/ and $tagID < 256))
1228
+ {
1229
+ $tagIDstr = sprintf('0x%.4x',$tagID);
1230
+ } elsif ($tagID < 0x10000) {
1231
+ $tagIDstr = $tagID;
1232
+ } else {
1233
+ $tagIDstr = sprintf('0x%.8x',$tagID);
1234
+ }
1235
+ } elsif ($short eq 'DICOM') {
1236
+ ($tagIDstr = $tagID) =~ s/_/,/;
1237
+ } else {
1238
+ # convert non-printable characters to hex escape sequences
1239
+ if ($tagID =~ s/([\x00-\x1f\x7f-\xff])/'\x'.unpack('H*',$1)/eg) {
1240
+ $tagID =~ s/\\x00/\\0/g;
1241
+ next if $tagID eq 'jP\x1a\x1a'; # ignore abnormal JP2 signature tag
1242
+ $tagIDstr = qq{"$tagID"};
1243
+ } else {
1244
+ $tagIDstr = "'$tagID'";
1245
+ }
1246
+ }
1247
+ my $len = length $tagIDstr;
1248
+ $longID{$tableName} = $len if $longID{$tableName} < $len;
1249
+ foreach (@tagNames) {
1250
+ $len = length $_;
1251
+ $longName{$tableName} = $len if $longName{$tableName} < $len;
1252
+ }
1253
+ push @$info, [ $tagIDstr, \@tagNames, \@writable, \@values, \@require, \@writeGroup ];
1254
+ }
1255
+ # do consistency check of writable BinaryData tables
1256
+ if ($processBinaryData and $$table{WRITABLE}) {
1257
+ my %lookup = (
1258
+ IS_OFFSET => \%isOffset,
1259
+ IS_SUBDIR => \%hasSubdir,
1260
+ DATAMEMBER => \%datamember,
1261
+ );
1262
+ my ($var, $tagID);
1263
+ foreach $var (sort keys %lookup) {
1264
+ my $hash = $lookup{$var};
1265
+ if ($$table{$var}) {
1266
+ foreach $tagID (@{$$table{$var}}) {
1267
+ $$hash{$tagID} and delete($$hash{$tagID}), next;
1268
+ warn "Warning: Extra $var for $short tag $tagID\n";
1269
+ }
1270
+ }
1271
+ foreach $tagID (sort keys %$hash) {
1272
+ warn "Warning: Missing $var for $short $$hash{$tagID}\n";
1273
+ }
1274
+ }
1275
+ }
1276
+ }
1277
+ # save information about structures
1278
+ my $strName;
1279
+ foreach $strName (keys %structs) {
1280
+ my $struct = $structLookup{$strName};
1281
+ my $fullName = ($strName =~ / / ? '' : 'XMP ') . "$strName Struct";
1282
+ my $info = $tagNameInfo{$fullName} = [ ];
1283
+ my $tag;
1284
+ foreach $tag (sort keys %$struct) {
1285
+ my $tagInfo = $$struct{$tag};
1286
+ next unless ref $tagInfo eq 'HASH';
1287
+ my $writable = $$tagInfo{Writable};
1288
+ my @vals;
1289
+ unless ($writable) {
1290
+ $writable = $$tagInfo{Struct};
1291
+ ref $writable and $writable = $$writable{STRUCT_NAME};
1292
+ if ($writable) {
1293
+ push @vals, $writable;
1294
+ $structs{$writable} = 1;
1295
+ $writable = "=$writable";
1296
+ } else {
1297
+ $writable = 'string';
1298
+ }
1299
+ }
1300
+ $writable .= '+' if $$tagInfo{List};
1301
+ push @$info, [
1302
+ $tag,
1303
+ [ $$tagInfo{Name} || ucfirst($tag) ],
1304
+ [ $writable ],
1305
+ \@vals,
1306
+ [], []
1307
+ ];
1308
+ }
1309
+ }
1310
+ return $self;
1311
+ }
1312
+
1313
+ #------------------------------------------------------------------------------
1314
+ # Rewrite this file to build the lookup tables
1315
+ # Inputs: 0) BuildTagLookup object reference
1316
+ # 1) output tag lookup module name (ie. 'lib/Image/ExifTool/TagLookup.pm')
1317
+ # Returns: true on success
1318
+ sub WriteTagLookup($$)
1319
+ {
1320
+ local ($_, *INFILE, *OUTFILE);
1321
+ my ($self, $file) = @_;
1322
+ my $tagLookup = $self->{TAG_LOOKUP};
1323
+ my $tagExists = $self->{TAG_EXISTS};
1324
+ my $flattened = $self->{FLATTENED};
1325
+ my $tableWritable = $self->{TABLE_WRITABLE};
1326
+ #
1327
+ # open/create necessary files and transfer file headers
1328
+ #
1329
+ my $tmpFile = "${file}_tmp";
1330
+ open(INFILE, $file) or warn("Can't open $file\n"), return 0;
1331
+ unless (open(OUTFILE, ">$tmpFile")) {
1332
+ warn "Can't create temporary file $tmpFile\n";
1333
+ close(INFILE);
1334
+ return 0;
1335
+ }
1336
+ my $success;
1337
+ while (<INFILE>) {
1338
+ print OUTFILE $_ or last;
1339
+ if (/^#\+{4} Begin/) {
1340
+ $success = 1;
1341
+ last;
1342
+ }
1343
+ }
1344
+ print OUTFILE "\n# list of tables containing writable tags\n";
1345
+ print OUTFILE "my \@tableList = (\n";
1346
+
1347
+ #
1348
+ # write table list
1349
+ #
1350
+ my @tableNames = sort keys %allTables;
1351
+ my $tableName;
1352
+ my %wrNum; # translate from allTables index to writable tables index
1353
+ my $count = 0;
1354
+ my $num = 0;
1355
+ foreach $tableName (@tableNames) {
1356
+ if ($$tableWritable{$tableName}) {
1357
+ print OUTFILE "\t'$tableName',\n";
1358
+ $wrNum{$count} = $num++;
1359
+ }
1360
+ $count++;
1361
+ }
1362
+ #
1363
+ # write the tag lookup table
1364
+ #
1365
+ my $tag;
1366
+ # verify that certain critical tag names aren't duplicated
1367
+ foreach $tag (qw{filename directory}) {
1368
+ next unless $$tagLookup{$tag};
1369
+ my $n = scalar keys %{$$tagLookup{$tag}};
1370
+ warn "Warning: $n writable '$tag' tags!\n" if $n > 1;
1371
+ }
1372
+ print OUTFILE ");\n\n# lookup for all writable tags\nmy \%tagLookup = (\n";
1373
+ foreach $tag (sort keys %$tagLookup) {
1374
+ print OUTFILE "\t'$tag' => { ";
1375
+ my @tableNums = sort { $a <=> $b } keys %{$$tagLookup{$tag}};
1376
+ my (@entries, $tableNum);
1377
+ foreach $tableNum (@tableNums) {
1378
+ my $tagID = $$tagLookup{$tag}{$tableNum};
1379
+ my $rootID = $$flattened{$tag}{$tableNum};
1380
+ my $entry;
1381
+ if (ref $tagID eq 'HASH' or $rootID) {
1382
+ $tagID = { $tagID => 1 } unless ref $tagID eq 'HASH';
1383
+ my @tagIDs = sort keys %$tagID;
1384
+ foreach (@tagIDs) {
1385
+ if (/^\d+$/) {
1386
+ $_ = sprintf('0x%x',$_);
1387
+ } else {
1388
+ my $quot = "'";
1389
+ # escape non-printable characters in tag ID if necessary
1390
+ $quot = '"' if s/[\x00-\x1f,\x7f-\xff]/sprintf('\\x%.2x',ord($&))/ge;
1391
+ $_ = $quot . $_ . $quot;
1392
+ }
1393
+ }
1394
+ # reference to root structure ID must come first in lookup
1395
+ # (so we can generate the flattened tags just before we need them)
1396
+ unshift @tagIDs, "\\'$rootID'" if $rootID;
1397
+ $entry = '[' . join(',', @tagIDs) . ']';
1398
+ } elsif ($tagID =~ /^\d+$/) {
1399
+ $entry = sprintf('0x%x',$tagID);
1400
+ } else {
1401
+ $entry = "'$tagID'";
1402
+ }
1403
+ my $wrNum = $wrNum{$tableNum};
1404
+ push @entries, "$wrNum => $entry";
1405
+ }
1406
+ print OUTFILE join(', ', @entries);
1407
+ print OUTFILE " },\n";
1408
+ }
1409
+ #
1410
+ # write tag exists lookup
1411
+ #
1412
+ print OUTFILE ");\n\n# lookup for non-writable tags to check if the name exists\n";
1413
+ print OUTFILE "my \%tagExists = (\n";
1414
+ foreach $tag (sort keys %$tagExists) {
1415
+ next if $$tagLookup{$tag};
1416
+ print OUTFILE "\t'$tag' => 1,\n";
1417
+ }
1418
+ #
1419
+ # write module lookup for writable composite tags
1420
+ #
1421
+ my $compositeModules = $self->{COMPOSITE_MODULES};
1422
+ print OUTFILE ");\n\n# module names for writable Composite tags\n";
1423
+ print OUTFILE "my \%compositeModules = (\n";
1424
+ foreach (sort keys %$compositeModules) {
1425
+ print OUTFILE "\t'$_' => '$$compositeModules{$_}',\n";
1426
+ }
1427
+ print OUTFILE ");\n\n";
1428
+ #
1429
+ # finish writing TagLookup.pm and clean up
1430
+ #
1431
+ if ($success) {
1432
+ $success = 0;
1433
+ while (<INFILE>) {
1434
+ $success or /^#\+{4} End/ or next;
1435
+ print OUTFILE $_;
1436
+ $success = 1;
1437
+ }
1438
+ }
1439
+ close(INFILE);
1440
+ close(OUTFILE) or $success = 0;
1441
+ #
1442
+ # return success code
1443
+ #
1444
+ if ($success) {
1445
+ local (*ORG, *TMP);
1446
+ # only rename the file if something changed
1447
+ open ORG, $file or return 0;
1448
+ open TMP, $tmpFile or return 0;
1449
+ my ($buff, $buf2, $changed);
1450
+ for (;;) {
1451
+ my $n1 = read ORG, $buff, 65536;
1452
+ my $n2 = read TMP, $buf2, 65536;
1453
+ $n1 eq $n2 or $changed = 1, last;
1454
+ last unless $n1;
1455
+ $buff eq $buf2 or $changed = 1, last;
1456
+ }
1457
+ close ORG;
1458
+ close TMP;
1459
+ if ($changed) {
1460
+ rename($tmpFile, $file) or warn("Error renaming $tmpFile\n"), $success = 0;
1461
+ } else {
1462
+ unlink($tmpFile);
1463
+ }
1464
+ } else {
1465
+ unlink($tmpFile);
1466
+ warn "Error rewriting file\n";
1467
+ }
1468
+ return $success;
1469
+ }
1470
+
1471
+ #------------------------------------------------------------------------------
1472
+ # sort numbers first numerically, then strings alphabetically (case insensitive)
1473
+ sub NumbersFirst
1474
+ {
1475
+ my $rtnVal;
1476
+ my ($bNum, $bDec);
1477
+ ($bNum, $bDec) = ($1, $3) if $b =~ /^(-?[0-9]+)(\.(\d*))?$/;
1478
+ if ($a =~ /^(-?[0-9]+)(\.(\d*))?$/) {
1479
+ if (defined $bNum) {
1480
+ # compare integer part as a number
1481
+ $rtnVal = $1 <=> $bNum;
1482
+ unless ($rtnVal) {
1483
+ my $aDec = $3 || 0;
1484
+ $bDec or $bDec = 0;
1485
+ # compare decimal part as an integer too
1486
+ # (so that "1.10" comes after "1.9")
1487
+ $rtnVal = $aDec <=> $bDec;
1488
+ }
1489
+ } else {
1490
+ $rtnVal = -$numbersFirst;
1491
+ }
1492
+ } elsif (defined $bNum) {
1493
+ $rtnVal = $numbersFirst;
1494
+ } else {
1495
+ my ($a2, $b2) = ($a, $b);
1496
+ # expand numbers to 3 digits (with restrictions to avoid messing up ascii-hex tags)
1497
+ $a2 =~ s/(\d+)/sprintf("%.3d",$1)/eg if $a2 =~ /^(APP)?[.0-9 ]*$/ and length($a2)<16;
1498
+ $b2 =~ s/(\d+)/sprintf("%.3d",$1)/eg if $b2 =~ /^(APP)?[.0-9 ]*$/ and length($b2)<16;
1499
+ $caseInsensitive and $rtnVal = (lc($a2) cmp lc($b2));
1500
+ $rtnVal or $rtnVal = ($a2 cmp $b2);
1501
+ }
1502
+ return $rtnVal;
1503
+ }
1504
+
1505
+ #------------------------------------------------------------------------------
1506
+ # Convert our pod-like documentation to pod
1507
+ # (funny, I know, but the pod headings must be hidden to prevent confusing
1508
+ # the pod parser)
1509
+ # Inputs: 0-N) documentation strings
1510
+ sub Doc2Pod($;@)
1511
+ {
1512
+ my $doc = shift;
1513
+ local $_;
1514
+ $doc .= shift while @_;
1515
+ $doc =~ s/\n~/\n=/g;
1516
+ $doc =~ s/L<[^>]+?\|(http[^>]+)>/L<$1>/g; # POD doesn't support text for http links
1517
+ $doc =~ s/L<([^>]+?)\|[^>]+\.html>/$1/g; # remove relative HTML links
1518
+ return $doc;
1519
+ }
1520
+
1521
+ #------------------------------------------------------------------------------
1522
+ # Convert our pod-like documentation to html
1523
+ # Inputs: 0) string
1524
+ sub Doc2Html($)
1525
+ {
1526
+ my $doc = EscapeHTML(shift);
1527
+ $doc =~ s/\n\n/<\/p>\n\n<p>/g;
1528
+ $doc =~ s/B&lt;(.*?)&gt;/<b>$1<\/b>/sg;
1529
+ $doc =~ s/C&lt;(.*?)&gt;/<code>$1<\/code>/sg;
1530
+ $doc =~ s/I&lt;(.*?)&gt;/<i>$1<\/i>/sg;
1531
+ # L<some text|http://owl.phy.queensu.ca/~phil/exiftool/struct.html#Fields> --> <a href="../struct.html#Fields">some text</a>
1532
+ $doc =~ s{L&lt;([^&]+?)\|\Q$homePage\E/(.*?)&gt;}{<a href="../$2">$1<\/a>}sg;
1533
+ # L<http://owl.phy.queensu.ca/~phil/exiftool/struct.html> --> <a href="http://owl.phy.queensu.ca/~phil/exiftool/struct.html">http://owl.phy.queensu.ca/~phil/exiftool/struct.html</a>
1534
+ $doc =~ s{L&lt;\Q$homePage\E/(.*?)&gt;}{<a href="../$1">$1<\/a>}sg;
1535
+ # L<XMP DICOM Tags|Image::ExifTool::TagNames/XMP DICOM Tags> --> <a href="XMP.html#DICOM">XMP DICOM Tags</a>
1536
+ # (specify "Image::ExifTool::TagNames" to link to another html file)
1537
+ $doc =~ s{L&lt;([^&]+?)\|Image::ExifTool::TagNames/(\w+) ([^/&|]+) Tags&gt;}{<a href="$2.html#$3">$1</a>}sg;
1538
+ # L<DICOM Tags|Image::ExifTool::TagNames/DICOM Tags> --> <a href="DICOM.html">DICOM Tags</a>
1539
+ $doc =~ s{L&lt;([^&]+?)\|Image::ExifTool::TagNames/(\w+) Tags&gt;}{<a href="$2.html">$1</a>}sg;
1540
+ # L<dc|/XMP dc Tags> --> <a href="#dc">dc</a>
1541
+ # (a relative POD link turns into a relative HTML link)
1542
+ $doc =~ s{L&lt;([^&]+?)\|/\w+ ([^/&|]+) Tags&gt;}{<a href="#$2">$1</a>}sg;
1543
+ # L<sample config file|../config.html> --> <a href="../config.html">sample config file</a>
1544
+ $doc =~ s/L&lt;([^&]+?)\|(.+?)&gt;/<a href="$2">$1<\/a>/sg;
1545
+ # L<http://some.web.site/> --> <a href="http://some.web.site">http://some.web.site</a>
1546
+ $doc =~ s/L&lt;(http.*?)&gt;/<a href="$1">$1<\/a>/sg;
1547
+ return $doc;
1548
+ }
1549
+
1550
+ #------------------------------------------------------------------------------
1551
+ # Tweak order of tables
1552
+ # Inputs: 0) table list ref, 1) reference to tweak hash
1553
+ sub TweakOrder($$)
1554
+ {
1555
+ my ($sortedTables, $tweakOrder) = @_;
1556
+ my @tweak = sort keys %$tweakOrder;
1557
+ while (@tweak) {
1558
+ my $table = shift @tweak;
1559
+ my $first = $$tweakOrder{$table};
1560
+ if ($$tweakOrder{$first}) {
1561
+ push @tweak, $table; # must defer this till later
1562
+ next;
1563
+ }
1564
+ delete $$tweakOrder{$table}; # because the table won't move again
1565
+ my @moving = grep /^Image::ExifTool::$table\b/, @$sortedTables;
1566
+ my @notMoving = grep !/^Image::ExifTool::$table\b/, @$sortedTables;
1567
+ my @after;
1568
+ while (@notMoving) {
1569
+ last if $notMoving[-1] =~ /^Image::ExifTool::$first\b/;
1570
+ unshift @after, pop @notMoving;
1571
+ }
1572
+ @$sortedTables = (@notMoving, @moving, @after);
1573
+ }
1574
+ }
1575
+
1576
+ #------------------------------------------------------------------------------
1577
+ # Get the order that we want to print the tables in the documentation
1578
+ # Inputs: 0-N) Extra tables to add at end
1579
+ # Returns: tables in the order we want
1580
+ sub GetTableOrder(@)
1581
+ {
1582
+ my %gotTable;
1583
+ my @tableNames = @tableOrder;
1584
+ my (@orderedTables, %mainTables, @outOfOrder);
1585
+ my $lastTable = '';
1586
+
1587
+ while (@tableNames) {
1588
+ my $tableName = shift @tableNames;
1589
+ next if $gotTable{$tableName};
1590
+ if ($tableName =~ /^Image::ExifTool::(\w+)::Main/) {
1591
+ $mainTables{$1} = 1;
1592
+ } elsif ($lastTable and not $tableName =~ /^${lastTable}::/) {
1593
+ push @outOfOrder, $tableName;
1594
+ }
1595
+ ($lastTable) = ($tableName =~ /^(Image::ExifTool::\w+)/);
1596
+ push @orderedTables, $tableName;
1597
+ $gotTable{$tableName} = 1;
1598
+ my $table = GetTagTable($tableName);
1599
+ # recursively scan through tables in subdirectories
1600
+ my @moreTables;
1601
+ $caseInsensitive = ($$table{GROUPS} and $$table{GROUPS}{0} eq 'XMP');
1602
+ $numbersFirst = -1 if $$table{VARS} and $$table{VARS}{ALPHA_FIRST};
1603
+ my @keys = sort NumbersFirst TagTableKeys($table);
1604
+ $numbersFirst = 1;
1605
+ foreach (@keys) {
1606
+ my @infoArray = GetTagInfoList($table,$_);
1607
+ my $tagInfo;
1608
+ foreach $tagInfo (@infoArray) {
1609
+ my $subdir = $$tagInfo{SubDirectory} or next;
1610
+ $tableName = $$subdir{TagTable} or next;
1611
+ next if $gotTable{$tableName}; # next if table already loaded
1612
+ push @moreTables, $tableName; # must scan this one too
1613
+ }
1614
+ }
1615
+ unshift @tableNames, @moreTables;
1616
+ }
1617
+ # clean up the order for tables which are out of order
1618
+ # (groups all Canon and Kodak tables together)
1619
+ my %fixOrder;
1620
+ foreach (@outOfOrder) {
1621
+ next unless /^Image::ExifTool::(\w+)/;
1622
+ # only re-order tables which have a corresponding main table
1623
+ next unless $mainTables{$1};
1624
+ $fixOrder{$1} = []; # fix the order of these tables
1625
+ }
1626
+ my (@sortedTables, %fixPos, $pos);
1627
+ foreach (@orderedTables) {
1628
+ if (/^Image::ExifTool::(\w+)/ and $fixOrder{$1}) {
1629
+ my $fix = $fixOrder{$1};
1630
+ unless (@$fix) {
1631
+ $pos = @sortedTables;
1632
+ $fixPos{$pos} or $fixPos{$pos} = [];
1633
+ push @{$fixPos{$pos}}, $1;
1634
+ }
1635
+ push @{$fix}, $_;
1636
+ } else {
1637
+ push @sortedTables, $_;
1638
+ }
1639
+ }
1640
+ # insert back in better order
1641
+ foreach $pos (sort { $b <=> $a } keys %fixPos) { # (reverse sort)
1642
+ my $fix = $fixPos{$pos};
1643
+ foreach (@$fix) {
1644
+ splice(@sortedTables, $pos, 0, @{$fixOrder{$_}});
1645
+ }
1646
+ }
1647
+ # add the extra tables
1648
+ push @sortedTables, @_;
1649
+ # tweak the table order
1650
+ TweakOrder(\@sortedTables, \%tweakOrder);
1651
+
1652
+ return @sortedTables;
1653
+ }
1654
+
1655
+ #------------------------------------------------------------------------------
1656
+ # Open HTMLFILE and print header and description
1657
+ # Inputs: 0) Filename, 1) optional category
1658
+ # Returns: True on success
1659
+ my %createdFiles;
1660
+ sub OpenHtmlFile($;$$)
1661
+ {
1662
+ my ($htmldir, $category, $sepTable) = @_;
1663
+ my ($htmlFile, $head, $title, $url, $class);
1664
+ my $top = '';
1665
+
1666
+ if ($category) {
1667
+ my @names = split ' ', $category;
1668
+ $class = shift @names;
1669
+ $htmlFile = "$htmldir/TagNames/$class.html";
1670
+ $head = $category;
1671
+ if ($head =~ /^\S+ .+ Struct$/) {
1672
+ pop @names;
1673
+ } else {
1674
+ $head .= ($sepTable ? ' Values' : ' Tags');
1675
+ }
1676
+ ($title = $head) =~ s/ .* / /;
1677
+ @names and $url = join '_', @names;
1678
+ } else {
1679
+ $htmlFile = "$htmldir/TagNames/index.html";
1680
+ $category = $class = 'ExifTool';
1681
+ $head = $title = 'ExifTool Tag Names';
1682
+ }
1683
+ if ($createdFiles{$htmlFile}) {
1684
+ open(HTMLFILE, ">>${htmlFile}_tmp") or return 0;
1685
+ } else {
1686
+ open(HTMLFILE, ">${htmlFile}_tmp") or return 0;
1687
+ print HTMLFILE "$docType<html>\n<head>\n<title>$title</title>\n";
1688
+ print HTMLFILE "<link rel=stylesheet type='text/css' href='style.css' title='Style'>\n";
1689
+ print HTMLFILE "</head>\n<body>\n";
1690
+ if ($category ne $class and $docs{$class}) {
1691
+ print HTMLFILE "<h2 class=top>$class Tags</h2>\n" or return 0;
1692
+ print HTMLFILE '<p>',Doc2Html($docs{$class}),"</p>\n" or return 0;
1693
+ } else {
1694
+ $top = " class=top";
1695
+ }
1696
+ }
1697
+ $head = "<a name='$url'>$head</a>" if $url;
1698
+ print HTMLFILE "<h2$top>$head</h2>\n" or return 0;
1699
+ print HTMLFILE '<p>',Doc2Html($docs{$category}),"</p>\n" if $docs{$category};
1700
+ $createdFiles{$htmlFile} = 1;
1701
+ return 1;
1702
+ }
1703
+
1704
+ #------------------------------------------------------------------------------
1705
+ # Close all html files and write trailers
1706
+ # Returns: true on success
1707
+ # Inputs: 0) BuildTagLookup object reference
1708
+ sub CloseHtmlFiles($)
1709
+ {
1710
+ my $self = shift;
1711
+ my $preserveDate = $$self{PRESERVE_DATE};
1712
+ my $success = 1;
1713
+ # get the date
1714
+ my ($sec,$min,$hr,$day,$mon,$yr) = localtime;
1715
+ my @month = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec);
1716
+ $yr += 1900;
1717
+ my $date = "$month[$mon] $day, $yr";
1718
+ my $htmlFile;
1719
+ my $countNewFiles = 0;
1720
+ my $countSameFiles = 0;
1721
+ foreach $htmlFile (keys %createdFiles) {
1722
+ my $tmpFile = $htmlFile . '_tmp';
1723
+ my $fileDate = $date;
1724
+ if ($preserveDate) {
1725
+ my @lines = `grep '<i>Last revised' $htmlFile`;
1726
+ $fileDate = $1 if @lines and $lines[-1] =~ m{<i>Last revised (.*)</i>};
1727
+ }
1728
+ open(HTMLFILE, ">>$tmpFile") or $success = 0, next;
1729
+ # write the trailers
1730
+ print HTMLFILE "<hr>\n";
1731
+ print HTMLFILE "(This document generated automatically by Image::ExifTool::BuildTagLookup)\n";
1732
+ print HTMLFILE "<br><i>Last revised $fileDate</i>\n";
1733
+ print HTMLFILE "<p class=lf><a href=";
1734
+ if ($htmlFile =~ /index\.html$/) {
1735
+ print HTMLFILE "'../index.html'>&lt;-- Back to ExifTool home page</a></p>\n";
1736
+ } else {
1737
+ print HTMLFILE "'index.html'>&lt;-- ExifTool Tag Names</a></p>\n"
1738
+ }
1739
+ print HTMLFILE "</body>\n</html>\n" or $success = 0;
1740
+ close HTMLFILE or $success = 0;
1741
+ # check for differences and only use new file if it was changed
1742
+ # (so the date only gets updated if changes were really made)
1743
+ my $useNewFile;
1744
+ if ($success) {
1745
+ open (TEMPFILE, $tmpFile) or $success = 0, last;
1746
+ if (open (HTMLFILE, $htmlFile)) {
1747
+ while (<HTMLFILE>) {
1748
+ my $newLine = <TEMPFILE>;
1749
+ if (defined $newLine) {
1750
+ next if /^<br><i>Last revised/;
1751
+ next if $_ eq $newLine;
1752
+ }
1753
+ # files are different -- use the new file
1754
+ $useNewFile = 1;
1755
+ last;
1756
+ }
1757
+ $useNewFile = 1 if <TEMPFILE>;
1758
+ close HTMLFILE;
1759
+ } else {
1760
+ $useNewFile = 1;
1761
+ }
1762
+ close TEMPFILE;
1763
+ if ($useNewFile) {
1764
+ ++$countNewFiles;
1765
+ rename $tmpFile, $htmlFile or warn("Error renaming temporary file\n"), $success = 0;
1766
+ } else {
1767
+ ++$countSameFiles;
1768
+ unlink $tmpFile; # erase new file and use existing file
1769
+ }
1770
+ }
1771
+ last unless $success;
1772
+ }
1773
+ # save number of files processed so we can check the results later
1774
+ $self->{COUNT}->{'HTML files changed'} = $countNewFiles;
1775
+ $self->{COUNT}->{'HTML files unchanged'} = $countSameFiles;
1776
+ return $success;
1777
+ }
1778
+
1779
+ #------------------------------------------------------------------------------
1780
+ # Write the TagName HTML and POD documentation
1781
+ # Inputs: 0) BuildTagLookup object reference
1782
+ # 1) output pod file (ie. 'lib/Image/ExifTool/TagNames.pod')
1783
+ # 2) output html directory (ie. 'html')
1784
+ # Returns: true on success
1785
+ # Notes: My apologies for the patchwork code, but this is only used to generate the docs.
1786
+ sub WriteTagNames($$)
1787
+ {
1788
+ my ($self, $podFile, $htmldir) = @_;
1789
+ my ($tableName, $short, $url, @sepTables, @structs);
1790
+ my $tagNameInfo = $self->{TAG_NAME_INFO} or return 0;
1791
+ my $idLabel = $self->{ID_LOOKUP};
1792
+ my $shortName = $self->{SHORT_NAME};
1793
+ my $sepTable = $self->{SEPARATE_TABLE};
1794
+ my $structs = $self->{STRUCTURES};
1795
+ my $structLookup = $self->{STRUCT_LOOKUP};
1796
+ my $success = 1;
1797
+ my $columns = 6; # number of columns in html index
1798
+ my $percent = int(100 / $columns);
1799
+
1800
+ # open the file and write the header
1801
+ open(PODFILE, ">$podFile") or return 0;
1802
+ print PODFILE Doc2Pod($docs{PodHeader}, $docs{ExifTool}, $docs{ExifTool2});
1803
+ mkdir "$htmldir/TagNames";
1804
+ OpenHtmlFile($htmldir) or return 0;
1805
+ print HTMLFILE "<blockquote>\n";
1806
+ print HTMLFILE "<table width='100%' class=frame><tr><td>\n";
1807
+ print HTMLFILE "<table width='100%' class=inner cellspacing=1><tr class=h>\n";
1808
+ print HTMLFILE "<th colspan=$columns><span class=l>Tag Table Index</span></th></tr>\n";
1809
+ print HTMLFILE "<tr class=b><td width='$percent%'>\n";
1810
+
1811
+ # get the full table list, adding shortcuts and plug-in tables to the end
1812
+ my @tableNames = GetTableOrder('Image::ExifTool::Shortcuts::Main', @pluginTables);
1813
+
1814
+ # get list of headings and add any missing ones
1815
+ my $heading = 'xxx';
1816
+ my (@tableIndexNames, @headings);
1817
+ foreach $tableName (@tableNames) {
1818
+ $short = $$shortName{$tableName};
1819
+ my @names = split ' ', $short;
1820
+ my $class = shift @names;
1821
+ if (@names) {
1822
+ # add heading for tables without a Main
1823
+ unless ($heading eq $class) {
1824
+ $heading = $class;
1825
+ push @tableIndexNames, $heading;
1826
+ push @headings, $heading;
1827
+ }
1828
+ } else {
1829
+ $heading = $short;
1830
+ push @headings, $heading;
1831
+ }
1832
+ push @tableIndexNames, $tableName;
1833
+ }
1834
+ @tableNames = @tableIndexNames;
1835
+ # print html index of headings only
1836
+ my $count = 0;
1837
+ my $lines = int((scalar(@headings) + $columns - 1) / $columns);
1838
+ foreach $tableName (@headings) {
1839
+ if ($count) {
1840
+ if ($count % $lines) {
1841
+ print HTMLFILE "<br>\n";
1842
+ } else {
1843
+ print HTMLFILE "</td><td width='$percent%'>\n";
1844
+ }
1845
+ }
1846
+ $short = $$shortName{$tableName};
1847
+ $short = $tableName unless $short;
1848
+ $url = "$short.html";
1849
+ print HTMLFILE "<a href='$url'>$short</a>";
1850
+ ++$count;
1851
+ }
1852
+ print HTMLFILE "\n</td></tr></table></td></tr></table></blockquote>\n";
1853
+ print HTMLFILE '<p>',Doc2Html($docs{ExifTool2}),"</p>\n";
1854
+
1855
+ # write all the tag tables
1856
+ while (@tableNames or @sepTables or @structs) {
1857
+ while (@sepTables) {
1858
+ $tableName = shift @sepTables;
1859
+ my $printConv = $$sepTable{$tableName};
1860
+ next unless ref $printConv eq 'HASH';
1861
+ $$sepTable{$tableName} = 1;
1862
+ my $notes = $$printConv{Notes};
1863
+ if ($notes) {
1864
+ # remove unnecessary whitespace
1865
+ $notes =~ s/^\s+//; $notes =~ s/\s+$//;
1866
+ $notes =~ s/(^[ \t]+|[ \t]+$)//mg;
1867
+ }
1868
+ my $head = $tableName;
1869
+ $head =~ s/.* //;
1870
+ close HTMLFILE;
1871
+ if (OpenHtmlFile($htmldir, $tableName, 1)) {
1872
+ print HTMLFILE '<p>', Doc2Html($notes), "</p>\n" if $notes;
1873
+ print HTMLFILE "<blockquote>\n";
1874
+ print HTMLFILE "<table class=frame><tr><td>\n";
1875
+ print HTMLFILE "<table class='inner sep' cellspacing=1>\n";
1876
+ my $align = ' class=r';
1877
+ my $wid = 0;
1878
+ my @keys;
1879
+ foreach (sort NumbersFirst keys %$printConv) {
1880
+ next if /^(Notes|PrintHex|PrintString|OTHER)$/;
1881
+ $align = '' if $align and /[^\d]/;
1882
+ my $w = length($_) + length($$printConv{$_});
1883
+ $wid = $w if $wid < $w;
1884
+ push @keys, $_;
1885
+ }
1886
+ $wid = length($tableName)+7 if $wid < length($tableName)+7;
1887
+ # print in multiple columns if there is room
1888
+ my $cols = int(110 / ($wid + 4));
1889
+ $cols = 1 if $cols < 1 or $cols > @keys or @keys < 4;
1890
+ my $rows = int((scalar(@keys) + $cols - 1) / $cols);
1891
+ my ($r, $c);
1892
+ print HTMLFILE '<tr class=h>';
1893
+ for ($c=0; $c<$cols; ++$c) {
1894
+ print HTMLFILE "<th>Value</th><th>$head</th>";
1895
+ }
1896
+ print HTMLFILE "</tr>\n";
1897
+ for ($r=0; $r<$rows; ++$r) {
1898
+ print HTMLFILE '<tr>';
1899
+ for ($c=0; $c<$cols; ++$c) {
1900
+ my $key = $keys[$r + $c*$rows];
1901
+ my ($index, $prt);
1902
+ if (defined $key) {
1903
+ $index = $key;
1904
+ $prt = '= ' . EscapeHTML($$printConv{$key});
1905
+ if ($$printConv{PrintHex}) {
1906
+ $index = sprintf('0x%x',$index);
1907
+ } elsif ($$printConv{PrintString} or
1908
+ $index !~ /^[+-]?(?=\d|\.\d)\d*(\.\d*)?$/)
1909
+ {
1910
+ $index = "'" . EscapeHTML($index) . "'";
1911
+ }
1912
+ } else {
1913
+ $index = $prt = '&nbsp;';
1914
+ }
1915
+ my ($ic, $pc);
1916
+ if ($c & 0x01) {
1917
+ $pc = ' class=b';
1918
+ $ic = $align ? " class='r b'" : $pc;
1919
+ } else {
1920
+ $ic = $align;
1921
+ $pc = '';
1922
+ }
1923
+ print HTMLFILE "<td$ic>$index</td><td$pc>$prt</td>\n";
1924
+ }
1925
+ print HTMLFILE '</tr>';
1926
+ }
1927
+ print HTMLFILE "</table></td></tr></table></blockquote>\n\n";
1928
+ }
1929
+ }
1930
+ last unless @tableNames or @structs;
1931
+ my $isStruct;
1932
+ if (@structs) {
1933
+ $tableName = shift @structs;
1934
+ next if $$structs{$tableName} == 2; # only list each structure once
1935
+ $$structs{$tableName} = 2;
1936
+ $isStruct = $$structLookup{$tableName};
1937
+ $isStruct or warn("Missing structure $tableName\n"), next;
1938
+ $tableName = "XMP $tableName" unless $tableName =~ / /;
1939
+ $short = $tableName = "$tableName Struct";
1940
+ my $maxLen = 0;
1941
+ $maxLen < length and $maxLen = length foreach keys %$isStruct;
1942
+ $$self{LONG_ID}{$tableName} = $maxLen;
1943
+ } else {
1944
+ $tableName = shift @tableNames;
1945
+ $short = $$shortName{$tableName};
1946
+ unless ($short) {
1947
+ # this is just an index heading
1948
+ print PODFILE "\n=head2 $tableName Tags\n";
1949
+ print PODFILE Doc2Pod($docs{$tableName}) if $docs{$tableName};
1950
+ next;
1951
+ }
1952
+ }
1953
+ my $isExif = ($tableName eq 'Image::ExifTool::Exif::Main');
1954
+ my $isRiff = ($tableName eq 'Image::ExifTool::RIFF::Info');
1955
+ my $isXmpMain = ($tableName eq 'Image::ExifTool::XMP::Main');
1956
+ my $info = $$tagNameInfo{$tableName};
1957
+ my $id = $$idLabel{$tableName};
1958
+ my ($hid, $showGrp);
1959
+ # widths of the different columns in the POD documentation
1960
+ my ($wID,$wTag,$wReq,$wGrp) = (8,36,24,10);
1961
+ my ($composite, $derived, $notes, $longTags, $wasLong, $prefix);
1962
+ if ($short eq 'Shortcuts') {
1963
+ $derived = '<th>Refers To</th>';
1964
+ $composite = 2;
1965
+ } elsif ($isStruct) {
1966
+ $derived = '';
1967
+ $notes = $$isStruct{NOTES};
1968
+ } else {
1969
+ my $table = GetTagTable($tableName);
1970
+ $notes = $$table{NOTES};
1971
+ $longTags = $$table{VARS}{LONG_TAGS} if $$table{VARS};
1972
+ if ($$table{GROUPS}{0} eq 'Composite') {
1973
+ $composite = 1;
1974
+ $derived = '<th>Derived From</th>';
1975
+ } else {
1976
+ $composite = 0;
1977
+ $derived = '';
1978
+ }
1979
+ }
1980
+ my $podIdLen = $self->{LONG_ID}->{$tableName};
1981
+ if ($notes) {
1982
+ # remove unnecessary whitespace
1983
+ $notes =~ s/^\s+//; $notes =~ s/\s+$//;
1984
+ $notes =~ s/(^[ \t]+|[ \t]+$)//mg;
1985
+ if ($notes =~ /leading '(.*?_)' which/) {
1986
+ $prefix = $1;
1987
+ $podIdLen -= length $prefix;
1988
+ }
1989
+ }
1990
+ if ($podIdLen <= $wID) {
1991
+ $podIdLen = $wID;
1992
+ } elsif ($short eq 'DICOM') {
1993
+ $podIdLen = 10;
1994
+ } else {
1995
+ # align tag names in secondary columns if possible
1996
+ my $col = ($podIdLen <= 10) ? 12 : 20;
1997
+ $podIdLen = $col if $podIdLen < $col;
1998
+ }
1999
+ if ($id) {
2000
+ ($hid = "<th>$id</th>") =~ s/ /&nbsp;/g;
2001
+ $wTag -= $podIdLen - $wID;
2002
+ $wID = $podIdLen;
2003
+ my $longTag = $self->{LONG_NAME}->{$tableName};
2004
+ if ($wTag < $longTag) {
2005
+ $wasLong = 1;
2006
+ if ($wID - $longTag + $wTag >= 6) { # don't let ID column get too narrow
2007
+ $wID -= $longTag - $wTag;
2008
+ $wTag = $longTag;
2009
+ }
2010
+ }
2011
+ } elsif ($composite) {
2012
+ $wTag += $wID - $wReq;
2013
+ $hid = '';
2014
+ } else {
2015
+ $wTag += 9;
2016
+ $hid = '';
2017
+ }
2018
+ if ($short eq 'EXIF' or $short eq 'Extra') {
2019
+ $derived = '<th>Group</th>';
2020
+ $showGrp = 1;
2021
+ $wGrp += 8 if $short eq 'Extra'; # tweak Group column width for "Extra" tags
2022
+ $wTag -= $wGrp + 1;
2023
+ }
2024
+ my $head = ($short =~ / /) ? 'head3' : 'head2';
2025
+ my $str = $isStruct ? '' : ' Tags';
2026
+ print PODFILE "\n=$head $short$str\n";
2027
+ print PODFILE Doc2Pod($docs{$short}) if $docs{$short};
2028
+ print PODFILE "\n", Doc2Pod($notes), "\n" if $notes;
2029
+ my $line = "\n";
2030
+ if ($id) {
2031
+ # shift over 'Index' heading by one character for a bit more balance
2032
+ $id = " $id" if $id eq 'Index';
2033
+ $line .= sprintf " %-${wID}s", $id;
2034
+ } else {
2035
+ $line .= ' ';
2036
+ }
2037
+ my $tagNameHeading = ($short eq 'XMP') ? 'Namespace' : ($isStruct?'Field':'Tag').' Name';
2038
+ $line .= sprintf " %-${wTag}s", $tagNameHeading;
2039
+ $line .= sprintf " %-${wReq}s", $composite == 2 ? 'Refers To' : 'Derived From' if $composite;
2040
+ $line .= sprintf " %-${wGrp}s", 'Group' if $showGrp;
2041
+ $line .= ' Writable';
2042
+ print PODFILE $line;
2043
+ $line =~ s/^(\s*\w.{6}\w) /$1\t/; # change space to tab after long ID label (ie. "Sequence")
2044
+ $line =~ s/\S/-/g;
2045
+ $line =~ s/- -/---/g;
2046
+ $line =~ tr/\t/ /; # change tab back to space
2047
+ print PODFILE $line,"\n";
2048
+ close HTMLFILE;
2049
+ OpenHtmlFile($htmldir, $short) or $success = 0;
2050
+ print HTMLFILE '<p>',Doc2Html($notes), "</p>\n" if $notes;
2051
+ print HTMLFILE "<blockquote>\n";
2052
+ print HTMLFILE "<table class=frame><tr><td>\n";
2053
+ print HTMLFILE "<table class=inner cellspacing=1>\n";
2054
+ print HTMLFILE "<tr class=h>$hid<th>$tagNameHeading</th>\n";
2055
+ print HTMLFILE "<th>Writable</th>$derived<th>Values / ${noteFont}Notes</span></th></tr>\n";
2056
+ my $rowClass = 1;
2057
+ my $infoCount = 0;
2058
+ my $infoList;
2059
+ foreach $infoList (@$info) {
2060
+ ++$infoCount;
2061
+ my ($tagIDstr, $tagNames, $writable, $values, $require, $writeGroup) = @$infoList;
2062
+ my ($align, $idStr, $w, $tip);
2063
+ my $wTag2 = $wTag;
2064
+ if (not $id) {
2065
+ $idStr = ' ';
2066
+ } elsif ($tagIDstr =~ /^\d+(\.\d+)?$/) {
2067
+ $w = $wID - 3;
2068
+ $idStr = sprintf " %${w}g ", $tagIDstr;
2069
+ $align = " class=r";
2070
+ } else {
2071
+ $tagIDstr =~ s/^'$prefix/'/ if $prefix;
2072
+ $w = $wID;
2073
+ my $over = length($tagIDstr) - $w;
2074
+ if ($over > 0) {
2075
+ # shift over tag name if there is room
2076
+ if ($over <= $wTag - length($$tagNames[0])) {
2077
+ $wTag2 -= $over;
2078
+ $w += $over;
2079
+ } else {
2080
+ # put tag name on next line if ID is too long
2081
+ $idStr = " $tagIDstr\n " . (' ' x $w);
2082
+ if ($longTags) {
2083
+ --$longTags;
2084
+ } else {
2085
+ warn "Notice: Split $$tagNames[0] line\n";
2086
+ }
2087
+ }
2088
+ }
2089
+ $idStr = sprintf " %-${w}s ", $tagIDstr unless defined $idStr;
2090
+ $align = '';
2091
+ }
2092
+ my @reqs;
2093
+ my @tags = @$tagNames;
2094
+ my @wGrp = @$writeGroup;
2095
+ my @vals = @$writable;
2096
+ my $wrStr = shift @vals;
2097
+ my $subdir;
2098
+ my @masks = grep /^\[Mask 0x[\da-f]+\]/, @$values;
2099
+ my $tag = shift @tags;
2100
+ # if this is a subdirectory or structure, print subdir name (from values) instead of writable
2101
+ if ($wrStr =~ /^[-=]/) {
2102
+ $subdir = 1;
2103
+ if (@masks) {
2104
+ # combine any mask into the format string
2105
+ $wrStr .= " & $1" if $masks[0] =~ /(0x[\da-f]+)/;
2106
+ shift @masks;
2107
+ @vals = grep !/^\[Mask 0x[\da-f]+\]/, @$values;
2108
+ } else {
2109
+ @vals = @$values;
2110
+ }
2111
+ # remove Notes if subdir has Notes as well
2112
+ shift @vals if $vals[0] =~ /^\(/ and @vals >= @$writable;
2113
+ foreach (@vals) { /^\(/ and $_ = '-' }
2114
+ my $i; # fill in any missing entries from non-directory tags
2115
+ for ($i=0; $i<@$writable; ++$i) {
2116
+ $vals[$i] = $$writable[$i] unless defined $vals[$i];
2117
+ if (@masks) {
2118
+ $vals[$i] .= " & $1" if $masks[0] =~ /(0x[\da-f]+)/;
2119
+ shift @masks;
2120
+ }
2121
+ }
2122
+ if ($$sepTable{$vals[0]}) {
2123
+ $wrStr =~ s/^[-=]//;
2124
+ $wrStr = 'N' unless $wrStr;
2125
+ } elsif ($$structs{$vals[0]}) {
2126
+ my $flags = $wrStr =~ /([+_]+)$/ ? $1 : '';
2127
+ $wrStr = "$vals[0] Struct$flags";
2128
+ } else {
2129
+ $wrStr = $vals[0];
2130
+ }
2131
+ shift @vals;
2132
+ } elsif ($wrStr and $wrStr ne 'N' and @masks) {
2133
+ # fill in missing entries if masks are different
2134
+ my $mask = shift @masks;
2135
+ while (@masks > @vals) {
2136
+ last if $masks[@vals] eq $mask;
2137
+ push @vals, $wrStr;
2138
+ push @tags, $tag if @tags < @vals;
2139
+ }
2140
+ # add Mask to Writable column in POD doc
2141
+ $wrStr .= " & $1" if $mask =~ /(0x[\da-f]+)/;
2142
+ }
2143
+ printf PODFILE "%s%-${wTag2}s", $idStr, $tag;
2144
+ warn "Warning: Pushed $tag\n" if $id and length($tag) > $wTag2;
2145
+ printf PODFILE " %-${wGrp}s", shift(@wGrp) || '-' if $showGrp;
2146
+ if ($composite) {
2147
+ @reqs = @$require;
2148
+ $w = $wReq; # Keep writable column in line
2149
+ length($tag) > $wTag2 and $w -= length($tag) - $wTag2;
2150
+ printf PODFILE " %-${w}s", shift(@reqs) || '';
2151
+ }
2152
+ printf PODFILE " $wrStr\n";
2153
+ my $numTags = scalar @$tagNames;
2154
+ my $n = 0;
2155
+ while (@tags or @reqs or @vals) {
2156
+ my $more = (@tags or @reqs);
2157
+ $line = ' ';
2158
+ $line .= ' 'x($wID+1) if $id;
2159
+ $line .= sprintf("%-${wTag2}s", shift(@tags) || '');
2160
+ $line .= sprintf(" %-${wReq}s", shift(@reqs) || '') if $composite;
2161
+ $line .= sprintf(" %-${wGrp}s", shift(@wGrp) || '-') if $showGrp;
2162
+ ++$n;
2163
+ if (@vals) {
2164
+ my $val = shift @vals;
2165
+ # use writable if this is a note
2166
+ my $wrStr = $$writable[$n];
2167
+ if ($subdir and ($val =~ /^\(/ or $val =~ /=/ or ($wrStr and $wrStr !~ /^[-=]/))) {
2168
+ $val = $wrStr;
2169
+ if (defined $val) {
2170
+ $val =~ s/^[-=]//;
2171
+ } else {
2172
+ # done with tag if nothing else to print
2173
+ last unless $more;
2174
+ }
2175
+ }
2176
+ if (defined $val) {
2177
+ $line .= " $val";
2178
+ if (@masks) {
2179
+ $line .= " & $1" if $masks[0] =~ /(0x[\da-f]+)/;
2180
+ shift @masks;
2181
+ }
2182
+ }
2183
+ }
2184
+ $line =~ s/\s+$//; # trim trailing white space
2185
+ print PODFILE "$line\n";
2186
+ }
2187
+ my @htmlTags;
2188
+ foreach (@$tagNames) {
2189
+ push @htmlTags, EscapeHTML($_);
2190
+ }
2191
+ if (($isExif and $exifSpec{hex $tagIDstr}) or
2192
+ ($isRiff and $tagIDstr=~/(\w+)/ and $riffSpec{$1}) or
2193
+ ($isXmpMain and $tagIDstr=~/([-\w]+)/ and $xmpSpec{$1}))
2194
+ {
2195
+ # underline "unknown" makernote tags only
2196
+ my $n = $tagIDstr eq '0x927c' ? -1 : 0;
2197
+ $htmlTags[$n] = "<u>$htmlTags[$n]</u>";
2198
+ }
2199
+ $rowClass = $rowClass ? '' : " class=b";
2200
+ my $isSubdir;
2201
+ if ($$writable[0] =~ /^[-=]/) {
2202
+ $isSubdir = 1;
2203
+ s/^[-=](.+)/$1/ foreach @$writable;
2204
+ }
2205
+ # add tooltip for hex conversion of Tag ID
2206
+ if ($tagIDstr =~ /^0x[0-9a-f]+$/i) {
2207
+ $tip = sprintf(" title='$tagIDstr = %u'",hex $tagIDstr);
2208
+ } elsif ($tagIDstr =~ /^(\d+)(\.\d*)?$/) {
2209
+ $tip = sprintf(" title='%u = 0x%x'", $1, $1);
2210
+ } else {
2211
+ $tip = '';
2212
+ # use copyright symbol in QuickTime UserData tags
2213
+ $tagIDstr =~ s/^"\\xa9/"&copy;/;
2214
+ }
2215
+ # add tooltip for special writable attributes
2216
+ my $wtip = '';
2217
+ my %wattr = (
2218
+ '_' => 'Flattened',
2219
+ '+' => 'List',
2220
+ '/' => 'Avoided',
2221
+ '~' => 'Writable only with -n',
2222
+ '!' => 'Unsafe',
2223
+ '*' => 'Protected',
2224
+ ':' => 'Mandatory',
2225
+ );
2226
+ my ($wstr, %hasAttr, @hasAttr);
2227
+ foreach $wstr (@$writable) {
2228
+ next unless $wstr =~ m{([+/~!*:_]+)$};
2229
+ my @a = split //, $1;
2230
+ foreach (@a) {
2231
+ next if $hasAttr{$_};
2232
+ push @hasAttr, $_;
2233
+ $hasAttr{$_} = 1;
2234
+ }
2235
+ }
2236
+ if (@hasAttr) {
2237
+ $wtip = " title='";
2238
+ my $n = 0;
2239
+ foreach (@hasAttr) {
2240
+ $wtip .= "\n" if $n;
2241
+ $wtip .= " $_ = $wattr{$_}";
2242
+ ++$n;
2243
+ }
2244
+ $wtip .= "'";
2245
+ }
2246
+ # print this row in the tag table
2247
+ print HTMLFILE "<tr$rowClass>\n";
2248
+ print HTMLFILE "<td$align$tip>$tagIDstr</td>\n" if $id;
2249
+ print HTMLFILE "<td>", join("\n <br>",@htmlTags), "</td>\n";
2250
+ print HTMLFILE "<td class=c$wtip>",join('<br>',@$writable),"</td>\n";
2251
+ print HTMLFILE '<td class=n>',join("\n <br>",@$require),"</td>\n" if $composite;
2252
+ print HTMLFILE "<td class=c>",join('<br>',@$writeGroup),"</td>\n" if $showGrp;
2253
+ print HTMLFILE "<td>";
2254
+ if (@$values) {
2255
+ if ($isSubdir) {
2256
+ my ($smallNote, @values);
2257
+ foreach (@$values) {
2258
+ if (/^\(/) {
2259
+ # set the note font
2260
+ $smallNote = 1 if $numTags < 2;
2261
+ push @values, ($smallNote ? $noteFontSmall : $noteFont) . "$_</span>";
2262
+ next;
2263
+ }
2264
+ # make text in square brackets small
2265
+ /^\[/ and push(@values, "<span class=s>$_</span>"), next;
2266
+ /=/ and push(@values, $_), next;
2267
+ my @names = split;
2268
+ my $suffix = ' Tags';
2269
+ if ($$sepTable{$_}) {
2270
+ push @sepTables, $_;
2271
+ $suffix = ' Values';
2272
+ }
2273
+ # handle structures specially
2274
+ if ($$structs{$_}) {
2275
+ # assume XMP module for this struct unless otherwise specified
2276
+ unshift @names, 'XMP' unless / /;
2277
+ push @structs, $_; # list this later
2278
+ $suffix = ' Struct';
2279
+ }
2280
+ $url = (shift @names) . '.html';
2281
+ @names and $url .= '#' . join '_', @names;
2282
+ push @values, "--&gt; <a href='$url'>$_$suffix</a>";
2283
+ }
2284
+ # put small note last
2285
+ $smallNote and push @values, shift @values;
2286
+ print HTMLFILE join("\n <br>",@values);
2287
+ } else {
2288
+ my ($close, $br) = ('', '');
2289
+ foreach (@$values) {
2290
+ if (s/^\[!HTML\]//) {
2291
+ print HTMLFILE $close if $close;
2292
+ print HTMLFILE $_;
2293
+ $close = $br = '';
2294
+ } else {
2295
+ if (/^\(/) {
2296
+ # notes can use POD syntax
2297
+ $_ = $noteFont . Doc2Html($_) . "</span>";
2298
+ } else {
2299
+ $_ = EscapeHTML($_);
2300
+ }
2301
+ $close or $_ = "<span class=s>$_", $close = '</span>';
2302
+ print HTMLFILE $br, $_;
2303
+ $br = "\n <br>";
2304
+ }
2305
+ }
2306
+ print HTMLFILE $close if $close;
2307
+ }
2308
+ } else {
2309
+ print HTMLFILE '&nbsp;';
2310
+ }
2311
+ print HTMLFILE "</td></tr>\n";
2312
+ }
2313
+ warn "$longTags unaccounted-for long tags in $tableName\n" if $longTags;
2314
+ if ($wasLong and not defined $longTags) {
2315
+ warn "Notice: Long tags in $tableName table\n";
2316
+ }
2317
+ unless ($infoCount) {
2318
+ printf PODFILE " [no tags known]\n";
2319
+ my $cols = 3;
2320
+ ++$cols if $hid;
2321
+ ++$cols if $derived;
2322
+ print HTMLFILE "<tr><td colspan=$cols class=c><i>[no tags known]</i></td></tr>\n";
2323
+ }
2324
+ print HTMLFILE "</table></td></tr></table></blockquote>\n\n";
2325
+ }
2326
+ close(HTMLFILE) or $success = 0;
2327
+ CloseHtmlFiles($self) or $success = 0;
2328
+ print PODFILE Doc2Pod($docs{PodTrailer}) or $success = 0;
2329
+ close(PODFILE) or $success = 0;
2330
+ return $success;
2331
+ }
2332
+
2333
+ 1; # end
2334
+
2335
+
2336
+ __END__
2337
+
2338
+ =head1 NAME
2339
+
2340
+ Image::ExifTool::BuildTagLookup - Build ExifTool tag lookup tables
2341
+
2342
+ =head1 DESCRIPTION
2343
+
2344
+ This module is used to generate the tag lookup tables in
2345
+ Image::ExifTool::TagLookup.pm and tag name documentation in
2346
+ Image::ExifTool::TagNames.pod, as well as HTML tag name documentation. It
2347
+ is used before each new ExifTool release to update the lookup tables and
2348
+ documentation, but it is not used otherwise.
2349
+
2350
+ =head1 SYNOPSIS
2351
+
2352
+ use Image::ExifTool::BuildTagLookup;
2353
+
2354
+ $builder = new Image::ExifTool::BuildTagLookup;
2355
+
2356
+ $ok = $builder->WriteTagLookup('lib/Image/ExifTool/TagLookup.pm');
2357
+
2358
+ $ok = $builder->WriteTagNames('lib/Image/ExifTool/TagNames.pod','html');
2359
+
2360
+ =head1 MEMBER VARIABLES
2361
+
2362
+ =over 4
2363
+
2364
+ =item PRESERVE_DATE
2365
+
2366
+ Flag to preserve "Last revised" date in HTML files. Set before calling
2367
+ WriteTagNames().
2368
+
2369
+ =item COUNT
2370
+
2371
+ Reference to hash containing counting statistics. Keys are the
2372
+ descriptions, and values are the numerical counts. Valid after
2373
+ BuildTagLookup object is created, but additional statistics are added by
2374
+ WriteTagNames().
2375
+
2376
+ =back
2377
+
2378
+ =head1 AUTHOR
2379
+
2380
+ Copyright 2003-2013, Phil Harvey (phil at owl.phy.queensu.ca)
2381
+
2382
+ This library is free software; you can redistribute it and/or modify it
2383
+ under the same terms as Perl itself.
2384
+
2385
+ =head1 SEE ALSO
2386
+
2387
+ L<Image::ExifTool(3pm)|Image::ExifTool>,
2388
+ L<Image::ExifTool::TagLookup(3pm)|Image::ExifTool::TagLookup>,
2389
+ L<Image::ExifTool::TagNames(3pm)|Image::ExifTool::TagNames>
2390
+
2391
+ =cut