exiftool_vendored 9.78.0 → 9.99.0

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

Potentially problematic release.


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

Files changed (1409) hide show
  1. checksums.yaml +4 -4
  2. data/bin/Image-ExifTool-9.99/Changes +7164 -0
  3. data/bin/Image-ExifTool-9.99/MANIFEST +937 -0
  4. data/bin/Image-ExifTool-9.99/META.yml +27 -0
  5. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/Makefile.PL +0 -0
  6. data/bin/Image-ExifTool-9.99/README +233 -0
  7. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/arg_files/exif2iptc.args +0 -0
  8. data/bin/Image-ExifTool-9.99/arg_files/exif2xmp.args +45 -0
  9. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/arg_files/gps2xmp.args +0 -0
  10. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/arg_files/iptc2exif.args +0 -0
  11. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/arg_files/iptc2xmp.args +0 -0
  12. data/bin/Image-ExifTool-9.99/arg_files/iptcCore.args +224 -0
  13. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/arg_files/pdf2xmp.args +0 -0
  14. data/bin/Image-ExifTool-9.99/arg_files/xmp2exif.args +46 -0
  15. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/arg_files/xmp2gps.args +0 -0
  16. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/arg_files/xmp2iptc.args +0 -0
  17. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/arg_files/xmp2pdf.args +0 -0
  18. data/bin/Image-ExifTool-9.99/config_files/convert_regions.config +81 -0
  19. data/bin/Image-ExifTool-9.99/config_files/example.config +343 -0
  20. data/bin/Image-ExifTool-9.99/config_files/photoshop_paths.config +54 -0
  21. data/bin/Image-ExifTool-9.99/config_files/picasa_faces.config +369 -0
  22. data/bin/Image-ExifTool-9.99/exiftool +6245 -0
  23. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/fmt_files/gpx.fmt +0 -0
  24. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/fmt_files/gpx_wpt.fmt +0 -0
  25. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/fmt_files/kml.fmt +0 -0
  26. data/bin/Image-ExifTool-9.99/html/ExifTool.html +2067 -0
  27. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/MIE1.1-20070121.pdf +0 -0
  28. data/bin/Image-ExifTool-9.99/html/Shift.html +173 -0
  29. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/AFCP.html +0 -0
  30. data/bin/Image-ExifTool-9.99/html/TagNames/AIFF.html +146 -0
  31. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/APE.html +0 -0
  32. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/APP12.html +0 -0
  33. data/bin/Image-ExifTool-9.99/html/TagNames/ASF.html +1066 -0
  34. data/bin/Image-ExifTool-9.99/html/TagNames/Apple.html +74 -0
  35. data/bin/Image-ExifTool-9.99/html/TagNames/Audible.html +177 -0
  36. data/bin/Image-ExifTool-9.99/html/TagNames/BMP.html +110 -0
  37. data/bin/Image-ExifTool-9.99/html/TagNames/Canon.html +9318 -0
  38. data/bin/Image-ExifTool-9.99/html/TagNames/CanonCustom.html +2081 -0
  39. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/CanonRaw.html +0 -0
  40. data/bin/Image-ExifTool-9.99/html/TagNames/CanonVRD.html +1958 -0
  41. data/bin/Image-ExifTool-9.99/html/TagNames/Casio.html +1606 -0
  42. data/bin/Image-ExifTool-9.99/html/TagNames/Composite.html +704 -0
  43. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/DICOM.html +0 -0
  44. data/bin/Image-ExifTool-9.99/html/TagNames/DNG.html +289 -0
  45. data/bin/Image-ExifTool-9.99/html/TagNames/DPX.html +224 -0
  46. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/DV.html +0 -0
  47. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/DarwinCore.html +0 -0
  48. data/bin/Image-ExifTool-9.99/html/TagNames/DjVu.html +313 -0
  49. data/bin/Image-ExifTool-9.99/html/TagNames/EXE.html +697 -0
  50. data/bin/Image-ExifTool-9.99/html/TagNames/EXIF.html +3381 -0
  51. data/bin/Image-ExifTool-9.99/html/TagNames/Extra.html +437 -0
  52. data/bin/Image-ExifTool-9.99/html/TagNames/FLAC.html +183 -0
  53. data/bin/Image-ExifTool-9.99/html/TagNames/FLIR.html +1340 -0
  54. data/bin/Image-ExifTool-9.99/html/TagNames/Flash.html +419 -0
  55. data/bin/Image-ExifTool-9.99/html/TagNames/FlashPix.html +1465 -0
  56. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/Font.html +0 -0
  57. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/FotoStation.html +0 -0
  58. data/bin/Image-ExifTool-9.99/html/TagNames/FujiFilm.html +813 -0
  59. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/GE.html +0 -0
  60. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/GIF.html +0 -0
  61. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/GIMP.html +0 -0
  62. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/GPS.html +0 -0
  63. data/bin/Image-ExifTool-9.99/html/TagNames/GeoTiff.html +2298 -0
  64. data/bin/Image-ExifTool-9.99/html/TagNames/H264.html +393 -0
  65. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/HP.html +0 -0
  66. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/HTML.html +0 -0
  67. data/bin/Image-ExifTool-9.99/html/TagNames/ICC_Profile.html +711 -0
  68. data/bin/Image-ExifTool-9.99/html/TagNames/ID3.html +1593 -0
  69. data/bin/Image-ExifTool-9.99/html/TagNames/IPTC.html +903 -0
  70. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/ITC.html +0 -0
  71. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/JFIF.html +0 -0
  72. data/bin/Image-ExifTool-9.99/html/TagNames/JPEG.html +602 -0
  73. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/JVC.html +0 -0
  74. data/bin/Image-ExifTool-9.99/html/TagNames/Jpeg2000.html +464 -0
  75. data/bin/Image-ExifTool-9.99/html/TagNames/Kodak.html +1891 -0
  76. data/bin/Image-ExifTool-9.99/html/TagNames/KyoceraRaw.html +92 -0
  77. data/bin/Image-ExifTool-9.99/html/TagNames/LNK.html +478 -0
  78. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/Leaf.html +0 -0
  79. data/bin/Image-ExifTool-9.99/html/TagNames/Lytro.html +122 -0
  80. data/bin/Image-ExifTool-9.99/html/TagNames/M2TS.html +133 -0
  81. data/bin/Image-ExifTool-9.99/html/TagNames/MIE.html +1026 -0
  82. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/MIFF.html +0 -0
  83. data/bin/Image-ExifTool-9.99/html/TagNames/MNG.html +847 -0
  84. data/bin/Image-ExifTool-9.99/html/TagNames/MOI.html +60 -0
  85. data/bin/Image-ExifTool-9.99/html/TagNames/MPC.html +97 -0
  86. data/bin/Image-ExifTool-9.99/html/TagNames/MPEG.html +249 -0
  87. data/bin/Image-ExifTool-9.99/html/TagNames/MPF.html +199 -0
  88. data/bin/Image-ExifTool-9.99/html/TagNames/MWG.html +577 -0
  89. data/bin/Image-ExifTool-9.99/html/TagNames/MXF.html +6673 -0
  90. data/bin/Image-ExifTool-9.99/html/TagNames/Matroska.html +1069 -0
  91. data/bin/Image-ExifTool-9.99/html/TagNames/Microsoft.html +2073 -0
  92. data/bin/Image-ExifTool-9.99/html/TagNames/Minolta.html +2612 -0
  93. data/bin/Image-ExifTool-9.99/html/TagNames/MinoltaRaw.html +326 -0
  94. data/bin/Image-ExifTool-9.99/html/TagNames/Nikon.html +4814 -0
  95. data/bin/Image-ExifTool-9.99/html/TagNames/NikonCapture.html +799 -0
  96. data/bin/Image-ExifTool-9.99/html/TagNames/NikonCustom.html +5633 -0
  97. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/Nintendo.html +0 -0
  98. data/bin/Image-ExifTool-9.99/html/TagNames/OOXML.html +280 -0
  99. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/Ogg.html +0 -0
  100. data/bin/Image-ExifTool-9.99/html/TagNames/Olympus.html +3531 -0
  101. data/bin/Image-ExifTool-9.99/html/TagNames/OpenEXR.html +222 -0
  102. data/bin/Image-ExifTool-9.99/html/TagNames/PDF.html +745 -0
  103. data/bin/Image-ExifTool-9.99/html/TagNames/PGF.html +80 -0
  104. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/PICT.html +0 -0
  105. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/PLIST.html +0 -0
  106. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/PNG.html +0 -0
  107. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/PSP.html +0 -0
  108. data/bin/Image-ExifTool-9.99/html/TagNames/Palm.html +388 -0
  109. data/bin/Image-ExifTool-9.99/html/TagNames/Panasonic.html +1690 -0
  110. data/bin/Image-ExifTool-9.99/html/TagNames/PanasonicRaw.html +451 -0
  111. data/bin/Image-ExifTool-9.99/html/TagNames/Pentax.html +4655 -0
  112. data/bin/Image-ExifTool-9.99/html/TagNames/PhaseOne.html +253 -0
  113. data/bin/Image-ExifTool-9.99/html/TagNames/PhotoCD.html +402 -0
  114. data/bin/Image-ExifTool-9.99/html/TagNames/PhotoMechanic.html +196 -0
  115. data/bin/Image-ExifTool-9.99/html/TagNames/Photoshop.html +570 -0
  116. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/PostScript.html +0 -0
  117. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/PrintIM.html +0 -0
  118. data/bin/Image-ExifTool-9.99/html/TagNames/Qualcomm.html +4778 -0
  119. data/bin/Image-ExifTool-9.99/html/TagNames/QuickTime.html +6036 -0
  120. data/bin/Image-ExifTool-9.99/html/TagNames/RIFF.html +1314 -0
  121. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/RSRC.html +0 -0
  122. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/RTF.html +0 -0
  123. data/bin/Image-ExifTool-9.99/html/TagNames/Radiance.html +87 -0
  124. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/Rawzor.html +0 -0
  125. data/bin/Image-ExifTool-9.99/html/TagNames/Real.html +780 -0
  126. data/bin/Image-ExifTool-9.99/html/TagNames/Reconyx.html +132 -0
  127. data/bin/Image-ExifTool-9.99/html/TagNames/Ricoh.html +800 -0
  128. data/bin/Image-ExifTool-9.99/html/TagNames/Samsung.html +604 -0
  129. data/bin/Image-ExifTool-9.99/html/TagNames/Sanyo.html +366 -0
  130. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/Scalado.html +0 -0
  131. data/bin/Image-ExifTool-9.99/html/TagNames/Shortcuts.html +276 -0
  132. data/bin/Image-ExifTool-9.99/html/TagNames/Sigma.html +469 -0
  133. data/bin/Image-ExifTool-9.99/html/TagNames/SigmaRaw.html +438 -0
  134. data/bin/Image-ExifTool-9.99/html/TagNames/Sony.html +8640 -0
  135. data/bin/Image-ExifTool-9.99/html/TagNames/SonyIDC.html +267 -0
  136. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/Stim.html +0 -0
  137. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/Theora.html +0 -0
  138. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/Torrent.html +0 -0
  139. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/Unknown.html +0 -0
  140. data/bin/Image-ExifTool-9.99/html/TagNames/VCard.html +433 -0
  141. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/Vorbis.html +0 -0
  142. data/bin/Image-ExifTool-9.99/html/TagNames/XMP.html +9175 -0
  143. data/bin/Image-ExifTool-9.99/html/TagNames/ZIP.html +205 -0
  144. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/iWork.html +0 -0
  145. data/bin/Image-ExifTool-9.99/html/TagNames/index.html +211 -0
  146. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/TagNames/style.css +0 -0
  147. data/bin/Image-ExifTool-9.99/html/ancient_history.html +7608 -0
  148. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/canon_raw.html +0 -0
  149. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/commentary.html +0 -0
  150. data/bin/Image-ExifTool-9.99/html/config.html +355 -0
  151. data/bin/Image-ExifTool-9.99/html/data_members.html +279 -0
  152. data/bin/Image-ExifTool-9.99/html/exiftool_pod.html +2503 -0
  153. data/bin/Image-ExifTool-9.99/html/faq.html +1530 -0
  154. data/bin/Image-ExifTool-9.99/html/filename.html +352 -0
  155. data/bin/Image-ExifTool-9.99/html/geotag.html +654 -0
  156. data/bin/Image-ExifTool-9.99/html/history.html +488 -0
  157. data/bin/Image-ExifTool-9.99/html/htmldump.html +738 -0
  158. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/idiosyncracies.html +0 -0
  159. data/bin/Image-ExifTool-9.99/html/index.html +1330 -0
  160. data/bin/Image-ExifTool-9.99/html/install.html +251 -0
  161. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/metafiles.html +0 -0
  162. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/overview.png +0 -0
  163. data/bin/Image-ExifTool-9.99/html/standards.html +286 -0
  164. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/struct.html +0 -0
  165. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/style.css +0 -0
  166. data/bin/Image-ExifTool-9.99/html/under.html +128 -0
  167. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/verbose.html +0 -0
  168. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/html/writing.html +0 -0
  169. data/bin/Image-ExifTool-9.99/lib/File/RandomAccess.pm +378 -0
  170. data/bin/Image-ExifTool-9.99/lib/File/RandomAccess.pod +231 -0
  171. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool.pm +7498 -0
  172. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool.pod +2494 -0
  173. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/AES.pm +501 -0
  174. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/AFCP.pm +286 -0
  175. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/AIFF.pm +289 -0
  176. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/APE.pm +264 -0
  177. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/APP12.pm +322 -0
  178. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/ASF.pm +885 -0
  179. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Apple.pm +126 -0
  180. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Audible.pm +317 -0
  181. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/BMP.pm +179 -0
  182. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/BZZ.pm +472 -0
  183. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/BigTIFF.pm +282 -0
  184. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/BuildTagLookup.pm +2508 -0
  185. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Canon.pm +8457 -0
  186. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/CanonCustom.pm +2582 -0
  187. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/CanonRaw.pm +910 -0
  188. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/CanonVRD.pm +2228 -0
  189. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/CaptureOne.pm +235 -0
  190. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Casio.pm +2058 -0
  191. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Charset.pm +396 -0
  192. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/Arabic.pm +0 -0
  193. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/Baltic.pm +0 -0
  194. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/Cyrillic.pm +0 -0
  195. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/Greek.pm +0 -0
  196. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/Hebrew.pm +0 -0
  197. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/JIS.pm +0 -0
  198. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/Latin.pm +0 -0
  199. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/Latin2.pm +0 -0
  200. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacArabic.pm +0 -0
  201. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacChineseCN.pm +0 -0
  202. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacChineseTW.pm +0 -0
  203. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacCroatian.pm +0 -0
  204. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacCyrillic.pm +0 -0
  205. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacGreek.pm +0 -0
  206. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacHebrew.pm +0 -0
  207. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacIceland.pm +0 -0
  208. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacJapanese.pm +0 -0
  209. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacKorean.pm +0 -0
  210. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacLatin2.pm +0 -0
  211. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacRSymbol.pm +0 -0
  212. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacRoman.pm +0 -0
  213. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacRomanian.pm +0 -0
  214. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacThai.pm +0 -0
  215. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/MacTurkish.pm +0 -0
  216. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/PDFDoc.pm +0 -0
  217. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/ShiftJIS.pm +0 -0
  218. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/Symbol.pm +0 -0
  219. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/Thai.pm +0 -0
  220. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/Turkish.pm +0 -0
  221. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/lib/Image/ExifTool/Charset/Vietnam.pm +0 -0
  222. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/DICOM.pm +3874 -0
  223. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/DNG.pm +835 -0
  224. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/DPX.pm +181 -0
  225. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/DV.pm +319 -0
  226. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/DarwinCore.pm +322 -0
  227. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/DjVu.pm +376 -0
  228. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/EXE.pm +1250 -0
  229. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Exif.pm +4672 -0
  230. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/FLAC.pm +297 -0
  231. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/FLIR.pm +1533 -0
  232. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Fixup.pm +354 -0
  233. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Flash.pm +755 -0
  234. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/FlashPix.pm +1935 -0
  235. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Font.pm +647 -0
  236. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/FotoStation.pm +261 -0
  237. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/FujiFilm.pm +1195 -0
  238. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/GE.pm +81 -0
  239. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/GIF.pm +542 -0
  240. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/GIMP.pm +258 -0
  241. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/GPS.pm +558 -0
  242. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/GeoTiff.pm +2263 -0
  243. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Geotag.pm +1219 -0
  244. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/H264.pm +1112 -0
  245. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/HP.pm +263 -0
  246. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/HTML.pm +576 -0
  247. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/HtmlDump.pm +895 -0
  248. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/ICC_Profile.pm +1000 -0
  249. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/ID3.pm +1569 -0
  250. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/IPTC.pm +1264 -0
  251. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/ITC.pm +215 -0
  252. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Import.pm +329 -0
  253. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/InDesign.pm +277 -0
  254. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/JPEG.pm +605 -0
  255. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/JPEGDigest.pm +2511 -0
  256. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/JVC.pm +130 -0
  257. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Jpeg2000.pm +873 -0
  258. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Kodak.pm +2096 -0
  259. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/KyoceraRaw.pm +173 -0
  260. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/LNK.pm +723 -0
  261. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/cs.pm +1588 -0
  262. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/de.pm +8692 -0
  263. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/en_ca.pm +848 -0
  264. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/en_gb.pm +863 -0
  265. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/es.pm +4019 -0
  266. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/fi.pm +2854 -0
  267. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/fr.pm +4758 -0
  268. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/it.pm +7918 -0
  269. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/ja.pm +5835 -0
  270. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/ko.pm +2330 -0
  271. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/nl.pm +3222 -0
  272. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/pl.pm +1276 -0
  273. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/ru.pm +768 -0
  274. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/sv.pm +638 -0
  275. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/tr.pm +544 -0
  276. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/zh_cn.pm +1330 -0
  277. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lang/zh_tw.pm +801 -0
  278. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Leaf.pm +516 -0
  279. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Lytro.pm +217 -0
  280. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/M2TS.pm +725 -0
  281. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/MIE.pm +2564 -0
  282. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/MIEUnits.pod +377 -0
  283. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/MIFF.pm +279 -0
  284. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/MNG.pm +684 -0
  285. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/MOI.pm +158 -0
  286. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/MPC.pm +156 -0
  287. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/MPEG.pm +736 -0
  288. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/MPF.pm +292 -0
  289. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/MWG.pm +753 -0
  290. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/MXF.pm +3032 -0
  291. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/MakerNotes.pm +1713 -0
  292. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Matroska.pm +892 -0
  293. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Microsoft.pm +893 -0
  294. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Minolta.pm +2950 -0
  295. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/MinoltaRaw.pm +534 -0
  296. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Nikon.pm +6728 -0
  297. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/NikonCapture.pm +940 -0
  298. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/NikonCustom.pm +6331 -0
  299. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Nintendo.pm +128 -0
  300. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/OOXML.pm +409 -0
  301. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Ogg.pm +237 -0
  302. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Olympus.pm +3796 -0
  303. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/OpenEXR.pm +324 -0
  304. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/PDF.pm +2328 -0
  305. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/PGF.pm +143 -0
  306. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/PICT.pm +1260 -0
  307. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/PLIST.pm +453 -0
  308. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/PNG.pm +1190 -0
  309. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/PPM.pm +169 -0
  310. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/PSP.pm +306 -0
  311. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Palm.pm +403 -0
  312. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Panasonic.pm +2366 -0
  313. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/PanasonicRaw.pm +639 -0
  314. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Pentax.pm +5941 -0
  315. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/PhaseOne.pm +551 -0
  316. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/PhotoCD.pm +507 -0
  317. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/PhotoMechanic.pm +256 -0
  318. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Photoshop.pm +650 -0
  319. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/PostScript.pm +696 -0
  320. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/PrintIM.pm +125 -0
  321. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Qualcomm.pm +1344 -0
  322. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/QuickTime.pm +6572 -0
  323. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/README +981 -0
  324. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/RIFF.pm +1478 -0
  325. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/RSRC.pm +241 -0
  326. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/RTF.pm +383 -0
  327. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Radiance.pm +144 -0
  328. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Rawzor.pm +189 -0
  329. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Real.pm +739 -0
  330. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Reconyx.pm +190 -0
  331. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Ricoh.pm +1121 -0
  332. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Samsung.pm +1168 -0
  333. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Sanyo.pm +440 -0
  334. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Scalado.pm +141 -0
  335. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Shift.pl +596 -0
  336. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Shortcuts.pm +335 -0
  337. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Sigma.pm +684 -0
  338. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/SigmaRaw.pm +668 -0
  339. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Sony.pm +9086 -0
  340. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/SonyIDC.pm +331 -0
  341. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Stim.pm +196 -0
  342. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/TagInfoXML.pm +826 -0
  343. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/TagLookup.pm +8931 -0
  344. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/TagNames.pod +29124 -0
  345. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Theora.pm +145 -0
  346. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Torrent.pm +317 -0
  347. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Unknown.pm +66 -0
  348. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/VCard.pm +405 -0
  349. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Vorbis.pm +238 -0
  350. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/WriteCanonRaw.pl +637 -0
  351. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/WriteExif.pl +3743 -0
  352. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/WriteIPTC.pl +702 -0
  353. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/WritePDF.pl +768 -0
  354. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/WritePNG.pl +390 -0
  355. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/WritePhotoshop.pl +266 -0
  356. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/WritePostScript.pl +772 -0
  357. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/WriteQuickTime.pl +358 -0
  358. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/WriteXMP.pl +1367 -0
  359. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/Writer.pl +6164 -0
  360. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/XMP.pm +4034 -0
  361. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/XMP2.pl +1579 -0
  362. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/XMPStruct.pl +826 -0
  363. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/ZIP.pm +667 -0
  364. data/bin/Image-ExifTool-9.99/lib/Image/ExifTool/iWork.pm +223 -0
  365. data/bin/Image-ExifTool-9.99/perl-Image-ExifTool.spec +112 -0
  366. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/AFCP.t +0 -0
  367. data/bin/Image-ExifTool-9.99/t/AFCP_2.out +39 -0
  368. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/AFCP_3.out +0 -0
  369. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/AIFF.t +0 -0
  370. data/bin/Image-ExifTool-9.99/t/AIFF_2.out +33 -0
  371. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/APE.t +0 -0
  372. data/bin/Image-ExifTool-9.99/t/APE_2.out +29 -0
  373. data/bin/Image-ExifTool-9.99/t/APE_3.out +58 -0
  374. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ASF.t +0 -0
  375. data/bin/Image-ExifTool-9.99/t/ASF_2.out +56 -0
  376. data/bin/Image-ExifTool-9.99/t/Audible.t +28 -0
  377. data/bin/Image-ExifTool-9.99/t/Audible_2.out +40 -0
  378. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/BMP.t +0 -0
  379. data/bin/Image-ExifTool-9.99/t/BMP_2.out +23 -0
  380. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/BigTIFF.t +0 -0
  381. data/bin/Image-ExifTool-9.99/t/BigTIFF_2.out +21 -0
  382. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Canon.t +0 -0
  383. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/CanonRaw.t +0 -0
  384. data/bin/Image-ExifTool-9.99/t/CanonRaw_2.out +169 -0
  385. data/bin/Image-ExifTool-9.99/t/CanonRaw_4.out +220 -0
  386. data/bin/Image-ExifTool-9.99/t/CanonRaw_5.out +209 -0
  387. data/bin/Image-ExifTool-9.99/t/CanonRaw_6.out +233 -0
  388. data/bin/Image-ExifTool-9.99/t/CanonRaw_7.out +250 -0
  389. data/bin/Image-ExifTool-9.99/t/CanonVRD.t +220 -0
  390. data/bin/Image-ExifTool-9.99/t/CanonVRD_11.out +121 -0
  391. data/bin/Image-ExifTool-9.99/t/CanonVRD_12.out +13 -0
  392. data/bin/Image-ExifTool-9.99/t/CanonVRD_13.out +102 -0
  393. data/bin/Image-ExifTool-9.99/t/CanonVRD_14.out +101 -0
  394. data/bin/Image-ExifTool-9.99/t/CanonVRD_15.out +5 -0
  395. data/bin/Image-ExifTool-9.99/t/CanonVRD_16.out +5 -0
  396. data/bin/Image-ExifTool-9.99/t/CanonVRD_17.out +5 -0
  397. data/bin/Image-ExifTool-9.99/t/CanonVRD_18.out +5 -0
  398. data/bin/Image-ExifTool-9.99/t/CanonVRD_19.out +5 -0
  399. data/bin/Image-ExifTool-9.99/t/CanonVRD_2.out +119 -0
  400. data/bin/Image-ExifTool-9.99/t/CanonVRD_20.out +5 -0
  401. data/bin/Image-ExifTool-9.99/t/CanonVRD_21.out +1 -0
  402. data/bin/Image-ExifTool-9.99/t/CanonVRD_3.out +119 -0
  403. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/CanonVRD_4.out +0 -0
  404. data/bin/Image-ExifTool-9.99/t/CanonVRD_5.out +2 -0
  405. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/CanonVRD_6.out +0 -0
  406. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/CanonVRD_7.out +0 -0
  407. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/CanonVRD_8.out +0 -0
  408. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/CanonVRD_9.out +0 -0
  409. data/bin/Image-ExifTool-9.99/t/Canon_2.out +356 -0
  410. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Canon_3.out +0 -0
  411. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Casio.t +0 -0
  412. data/bin/Image-ExifTool-9.99/t/Casio_2.out +72 -0
  413. data/bin/Image-ExifTool-9.99/t/Casio_3.out +102 -0
  414. data/bin/Image-ExifTool-9.99/t/Casio_4.out +28 -0
  415. data/bin/Image-ExifTool-9.99/t/Casio_5.out +80 -0
  416. data/bin/Image-ExifTool-9.99/t/Casio_6.out +117 -0
  417. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/DICOM.t +0 -0
  418. data/bin/Image-ExifTool-9.99/t/DICOM_2.out +109 -0
  419. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/DNG.t +0 -0
  420. data/bin/Image-ExifTool-9.99/t/DNG_2.out +328 -0
  421. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/DNG_3.out +0 -0
  422. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/DPX.t +0 -0
  423. data/bin/Image-ExifTool-9.99/t/DPX_2.out +39 -0
  424. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/DV.t +0 -0
  425. data/bin/Image-ExifTool-9.99/t/DV_2.out +26 -0
  426. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/DjVu.t +0 -0
  427. data/bin/Image-ExifTool-9.99/t/DjVu_2.out +46 -0
  428. data/bin/Image-ExifTool-9.99/t/EXE.t +31 -0
  429. data/bin/Image-ExifTool-9.99/t/EXE_2.out +41 -0
  430. data/bin/Image-ExifTool-9.99/t/EXE_3.out +16 -0
  431. data/bin/Image-ExifTool-9.99/t/EXE_4.out +15 -0
  432. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ExifTool.t +0 -0
  433. data/bin/Image-ExifTool-9.99/t/ExifTool_16.out +184 -0
  434. data/bin/Image-ExifTool-9.99/t/ExifTool_17.out +598 -0
  435. data/bin/Image-ExifTool-9.99/t/ExifTool_2.out +418 -0
  436. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ExifTool_20.out +0 -0
  437. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ExifTool_21.out +0 -0
  438. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ExifTool_22.out +0 -0
  439. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ExifTool_23.out +0 -0
  440. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ExifTool_24.out +0 -0
  441. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ExifTool_25.out +0 -0
  442. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ExifTool_26.out +0 -0
  443. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ExifTool_27.out +0 -0
  444. data/bin/Image-ExifTool-9.99/t/ExifTool_28.out +11 -0
  445. data/bin/Image-ExifTool-9.99/t/ExifTool_3.out +89 -0
  446. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ExifTool_4.out +0 -0
  447. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ExifTool_5.out +0 -0
  448. data/bin/Image-ExifTool-9.99/t/ExifTool_6.out +71 -0
  449. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ExifTool_7.out +0 -0
  450. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ExifTool_8.out +0 -0
  451. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ExifTool_9.out +0 -0
  452. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/FLAC.t +0 -0
  453. data/bin/Image-ExifTool-9.99/t/FLAC_2.out +26 -0
  454. data/bin/Image-ExifTool-9.99/t/FLAC_3.out +20 -0
  455. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/FLIR.t +0 -0
  456. data/bin/Image-ExifTool-9.99/t/FLIR_2.out +112 -0
  457. data/bin/Image-ExifTool-9.99/t/FLIR_3.out +49 -0
  458. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Flash.t +0 -0
  459. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/FlashPix.t +0 -0
  460. data/bin/Image-ExifTool-9.99/t/FlashPix_2.out +49 -0
  461. data/bin/Image-ExifTool-9.99/t/Flash_2.out +22 -0
  462. data/bin/Image-ExifTool-9.99/t/Flash_3.out +55 -0
  463. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Font.t +0 -0
  464. data/bin/Image-ExifTool-9.99/t/Font_2.out +24 -0
  465. data/bin/Image-ExifTool-9.99/t/Font_3.out +36 -0
  466. data/bin/Image-ExifTool-9.99/t/Font_4.out +27 -0
  467. data/bin/Image-ExifTool-9.99/t/Font_5.out +27 -0
  468. data/bin/Image-ExifTool-9.99/t/Font_6.out +37 -0
  469. data/bin/Image-ExifTool-9.99/t/Font_7.out +37 -0
  470. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/FotoStation.t +0 -0
  471. data/bin/Image-ExifTool-9.99/t/FotoStation_2.out +41 -0
  472. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/FotoStation_3.out +0 -0
  473. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/FujiFilm.t +0 -0
  474. data/bin/Image-ExifTool-9.99/t/FujiFilm_2.out +89 -0
  475. data/bin/Image-ExifTool-9.99/t/FujiFilm_3.out +90 -0
  476. data/bin/Image-ExifTool-9.99/t/FujiFilm_4.out +141 -0
  477. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/FujiFilm_5.out +0 -0
  478. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/GE.t +0 -0
  479. data/bin/Image-ExifTool-9.99/t/GE_2.out +86 -0
  480. data/bin/Image-ExifTool-9.99/t/GE_3.out +86 -0
  481. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/GIF.t +0 -0
  482. data/bin/Image-ExifTool-9.99/t/GIF_2.out +42 -0
  483. data/bin/Image-ExifTool-9.99/t/GIF_3.out +43 -0
  484. data/bin/Image-ExifTool-9.99/t/GIF_4.out +18 -0
  485. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/GIMP.t +0 -0
  486. data/bin/Image-ExifTool-9.99/t/GIMP_2.out +65 -0
  487. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/GPS.t +0 -0
  488. data/bin/Image-ExifTool-9.99/t/GPS_2.out +96 -0
  489. data/bin/Image-ExifTool-9.99/t/GPS_3.out +98 -0
  490. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/GeoTiff.t +0 -0
  491. data/bin/Image-ExifTool-9.99/t/GeoTiff_2.out +38 -0
  492. data/bin/Image-ExifTool-9.99/t/GeoTiff_3.out +38 -0
  493. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/GeoTiff_4.out +0 -0
  494. data/bin/Image-ExifTool-9.99/t/Geotag.t +172 -0
  495. data/bin/Image-ExifTool-9.99/t/Geotag_10.out +15 -0
  496. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Geotag_2.out +0 -0
  497. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Geotag_3.out +0 -0
  498. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Geotag_5.out +0 -0
  499. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Geotag_6.out +0 -0
  500. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Geotag_7.out +0 -0
  501. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Geotag_8.out +0 -0
  502. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Geotag_9.out +0 -0
  503. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/HTML.t +0 -0
  504. data/bin/Image-ExifTool-9.99/t/HTML_2.out +69 -0
  505. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/IPTC.t +0 -0
  506. data/bin/Image-ExifTool-9.99/t/IPTC_2.out +60 -0
  507. data/bin/Image-ExifTool-9.99/t/IPTC_4.out +58 -0
  508. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/IPTC_5.out +0 -0
  509. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/IPTC_6.out +0 -0
  510. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/IPTC_7.out +0 -0
  511. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/IPTC_8.out +0 -0
  512. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ITC.t +0 -0
  513. data/bin/Image-ExifTool-9.99/t/ITC_2.out +21 -0
  514. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/InDesign.t +0 -0
  515. data/bin/Image-ExifTool-9.99/t/InDesign_2.out +20 -0
  516. data/bin/Image-ExifTool-9.99/t/InDesign_3.out +22 -0
  517. data/bin/Image-ExifTool-9.99/t/InDesign_4.out +12 -0
  518. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/JVC.t +0 -0
  519. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/JVC_2.out +0 -0
  520. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/JVC_3.out +0 -0
  521. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Jpeg2000.t +0 -0
  522. data/bin/Image-ExifTool-9.99/t/Jpeg2000_2.out +65 -0
  523. data/bin/Image-ExifTool-9.99/t/Jpeg2000_3.out +53 -0
  524. data/bin/Image-ExifTool-9.99/t/Jpeg2000_4.out +17 -0
  525. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Kodak.t +0 -0
  526. data/bin/Image-ExifTool-9.99/t/Kodak_2.out +111 -0
  527. data/bin/Image-ExifTool-9.99/t/Kodak_3.out +121 -0
  528. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/KyoceraRaw.t +0 -0
  529. data/bin/Image-ExifTool-9.99/t/KyoceraRaw_2.out +28 -0
  530. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/LNK.t +0 -0
  531. data/bin/Image-ExifTool-9.99/t/LNK_2.out +46 -0
  532. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang.t +0 -0
  533. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_1.out +0 -0
  534. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_10.out +0 -0
  535. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_11.out +0 -0
  536. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_12.out +0 -0
  537. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_13.out +0 -0
  538. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_14.out +0 -0
  539. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_15.out +0 -0
  540. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_16.out +0 -0
  541. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_17.out +0 -0
  542. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_18.out +0 -0
  543. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_2.out +0 -0
  544. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_3.out +0 -0
  545. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_4.out +0 -0
  546. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_5.out +0 -0
  547. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_6.out +0 -0
  548. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_7.out +0 -0
  549. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_8.out +0 -0
  550. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lang_9.out +0 -0
  551. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Lytro.t +0 -0
  552. data/bin/Image-ExifTool-9.99/t/Lytro_2.out +109 -0
  553. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/M2TS.t +0 -0
  554. data/bin/Image-ExifTool-9.99/t/M2TS_2.out +29 -0
  555. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/MIE.t +0 -0
  556. data/bin/Image-ExifTool-9.99/t/MIE_2.out +69 -0
  557. data/bin/Image-ExifTool-9.99/t/MIE_3.out +136 -0
  558. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/MIE_5.out +0 -0
  559. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/MIE_6.out +0 -0
  560. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/MIFF.t +0 -0
  561. data/bin/Image-ExifTool-9.99/t/MIFF_2.out +110 -0
  562. data/bin/Image-ExifTool-9.99/t/MOI.t +27 -0
  563. data/bin/Image-ExifTool-9.99/t/MOI_2.out +11 -0
  564. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/MP3.t +0 -0
  565. data/bin/Image-ExifTool-9.99/t/MP3_2.out +46 -0
  566. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/MWG.t +0 -0
  567. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/MWG_2.out +0 -0
  568. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/MWG_3.out +0 -0
  569. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/MWG_4.out +0 -0
  570. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/MWG_5.out +0 -0
  571. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/MWG_6.out +0 -0
  572. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/MXF.t +0 -0
  573. data/bin/Image-ExifTool-9.99/t/MXF_2.out +79 -0
  574. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Matroska.t +0 -0
  575. data/bin/Image-ExifTool-9.99/t/Matroska_2.out +66 -0
  576. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Minolta.t +0 -0
  577. data/bin/Image-ExifTool-9.99/t/Minolta_2.out +135 -0
  578. data/bin/Image-ExifTool-9.99/t/Minolta_3.out +148 -0
  579. data/bin/Image-ExifTool-9.99/t/Minolta_4.out +150 -0
  580. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Nikon.t +0 -0
  581. data/bin/Image-ExifTool-9.99/t/Nikon_2.out +84 -0
  582. data/bin/Image-ExifTool-9.99/t/Nikon_3.out +100 -0
  583. data/bin/Image-ExifTool-9.99/t/Nikon_4.out +176 -0
  584. data/bin/Image-ExifTool-9.99/t/Nikon_5.out +169 -0
  585. data/bin/Image-ExifTool-9.99/t/Nikon_7.out +261 -0
  586. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Nikon_8.out +0 -0
  587. data/bin/Image-ExifTool-9.99/t/Olympus.t +94 -0
  588. data/bin/Image-ExifTool-9.99/t/Olympus_2.out +81 -0
  589. data/bin/Image-ExifTool-9.99/t/Olympus_3.out +83 -0
  590. data/bin/Image-ExifTool-9.99/t/Olympus_4.out +194 -0
  591. data/bin/Image-ExifTool-9.99/t/Olympus_5.out +266 -0
  592. data/bin/Image-ExifTool-9.99/t/Olympus_6.out +153 -0
  593. data/bin/Image-ExifTool-9.99/t/Olympus_7.out +483 -0
  594. data/bin/Image-ExifTool-9.99/t/Olympus_8.out +15 -0
  595. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/OpenEXR.t +0 -0
  596. data/bin/Image-ExifTool-9.99/t/OpenEXR_2.out +25 -0
  597. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF.t +0 -0
  598. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_10.out +0 -0
  599. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_11.out +0 -0
  600. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_12.out +0 -0
  601. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_14.out +0 -0
  602. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_15.out +0 -0
  603. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_16.out +0 -0
  604. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_17.out +0 -0
  605. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_18.out +0 -0
  606. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_19.out +0 -0
  607. data/bin/Image-ExifTool-9.99/t/PDF_2.out +118 -0
  608. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_20.out +0 -0
  609. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_22.out +0 -0
  610. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_4.out +0 -0
  611. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_5.out +0 -0
  612. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_6.out +0 -0
  613. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_7.out +0 -0
  614. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_8.out +0 -0
  615. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PDF_9.out +0 -0
  616. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PGF.t +0 -0
  617. data/bin/Image-ExifTool-9.99/t/PGF_2.out +34 -0
  618. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PICT.t +0 -0
  619. data/bin/Image-ExifTool-9.99/t/PICT_2.out +17 -0
  620. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PLIST.t +0 -0
  621. data/bin/Image-ExifTool-9.99/t/PLIST_2.out +21 -0
  622. data/bin/Image-ExifTool-9.99/t/PLIST_3.out +21 -0
  623. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PNG.t +0 -0
  624. data/bin/Image-ExifTool-9.99/t/PNG_2.out +24 -0
  625. data/bin/Image-ExifTool-9.99/t/PNG_3.out +123 -0
  626. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PNG_4.out +0 -0
  627. data/bin/Image-ExifTool-9.99/t/PNG_5.out +18 -0
  628. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PPM.t +0 -0
  629. data/bin/Image-ExifTool-9.99/t/PPM_2.out +17 -0
  630. data/bin/Image-ExifTool-9.99/t/PPM_3.out +11 -0
  631. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PSP.t +0 -0
  632. data/bin/Image-ExifTool-9.99/t/PSP_2.out +34 -0
  633. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Palm.t +0 -0
  634. data/bin/Image-ExifTool-9.99/t/Palm_2.out +32 -0
  635. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Panasonic.t +0 -0
  636. data/bin/Image-ExifTool-9.99/t/Panasonic_2.out +101 -0
  637. data/bin/Image-ExifTool-9.99/t/Panasonic_3.out +121 -0
  638. data/bin/Image-ExifTool-9.99/t/Panasonic_4.out +206 -0
  639. data/bin/Image-ExifTool-9.99/t/Panasonic_5.out +244 -0
  640. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Pentax.t +0 -0
  641. data/bin/Image-ExifTool-9.99/t/Pentax_2.out +225 -0
  642. data/bin/Image-ExifTool-9.99/t/Pentax_3.out +266 -0
  643. data/bin/Image-ExifTool-9.99/t/Pentax_4.out +131 -0
  644. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PhotoCD.t +0 -0
  645. data/bin/Image-ExifTool-9.99/t/PhotoCD_2.out +37 -0
  646. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PhotoMechanic.t +0 -0
  647. data/bin/Image-ExifTool-9.99/t/PhotoMechanic_2.out +83 -0
  648. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PhotoMechanic_3.out +0 -0
  649. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Photoshop.t +0 -0
  650. data/bin/Image-ExifTool-9.99/t/Photoshop_2.out +98 -0
  651. data/bin/Image-ExifTool-9.99/t/Photoshop_3.out +110 -0
  652. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/PostScript.t +0 -0
  653. data/bin/Image-ExifTool-9.99/t/PostScript_2.out +66 -0
  654. data/bin/Image-ExifTool-9.99/t/PostScript_3.out +134 -0
  655. data/bin/Image-ExifTool-9.99/t/QuickTime.t +54 -0
  656. data/bin/Image-ExifTool-9.99/t/QuickTime_2.out +133 -0
  657. data/bin/Image-ExifTool-9.99/t/QuickTime_3.out +73 -0
  658. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/QuickTime_4.out +0 -0
  659. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/QuickTime_5.out +0 -0
  660. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/RIFF.t +0 -0
  661. data/bin/Image-ExifTool-9.99/t/RIFF_2.out +25 -0
  662. data/bin/Image-ExifTool-9.99/t/RIFF_3.out +54 -0
  663. data/bin/Image-ExifTool-9.99/t/RIFF_4.out +18 -0
  664. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/RTF.t +0 -0
  665. data/bin/Image-ExifTool-9.99/t/RTF_2.out +21 -0
  666. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Radiance.t +0 -0
  667. data/bin/Image-ExifTool-9.99/t/Radiance_2.out +24 -0
  668. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Real.t +0 -0
  669. data/bin/Image-ExifTool-9.99/t/Real_2.out +69 -0
  670. data/bin/Image-ExifTool-9.99/t/Real_3.out +19 -0
  671. data/bin/Image-ExifTool-9.99/t/Real_4.out +12 -0
  672. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Ricoh.t +0 -0
  673. data/bin/Image-ExifTool-9.99/t/Ricoh_2.out +72 -0
  674. data/bin/Image-ExifTool-9.99/t/Ricoh_3.out +100 -0
  675. data/bin/Image-ExifTool-9.99/t/Ricoh_4.out +114 -0
  676. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Sanyo.t +0 -0
  677. data/bin/Image-ExifTool-9.99/t/Sanyo_2.out +103 -0
  678. data/bin/Image-ExifTool-9.99/t/Sanyo_3.out +113 -0
  679. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Sigma.t +0 -0
  680. data/bin/Image-ExifTool-9.99/t/Sigma_2.out +93 -0
  681. data/bin/Image-ExifTool-9.99/t/Sigma_3.out +96 -0
  682. data/bin/Image-ExifTool-9.99/t/Sigma_4.out +65 -0
  683. data/bin/Image-ExifTool-9.99/t/Sigma_5.out +194 -0
  684. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Sony.t +0 -0
  685. data/bin/Image-ExifTool-9.99/t/Sony_2.out +86 -0
  686. data/bin/Image-ExifTool-9.99/t/Sony_3.out +87 -0
  687. data/bin/Image-ExifTool-9.99/t/Sony_5.out +34 -0
  688. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/TestLib.pm +0 -0
  689. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Torrent.t +0 -0
  690. data/bin/Image-ExifTool-9.99/t/Torrent_2.out +32 -0
  691. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Unknown.t +0 -0
  692. data/bin/Image-ExifTool-9.99/t/Unknown_2.out +92 -0
  693. data/bin/Image-ExifTool-9.99/t/Unknown_3.out +92 -0
  694. data/bin/Image-ExifTool-9.99/t/VCard.t +31 -0
  695. data/bin/Image-ExifTool-9.99/t/VCard_2.out +54 -0
  696. data/bin/Image-ExifTool-9.99/t/VCard_3.out +88 -0
  697. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Vorbis.t +0 -0
  698. data/bin/Image-ExifTool-9.99/t/Vorbis_2.out +29 -0
  699. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer.t +0 -0
  700. data/bin/Image-ExifTool-9.99/t/Writer_10.out +246 -0
  701. data/bin/Image-ExifTool-9.99/t/Writer_11.out +39 -0
  702. data/bin/Image-ExifTool-9.99/t/Writer_13.out +165 -0
  703. data/bin/Image-ExifTool-9.99/t/Writer_14.out +69 -0
  704. data/bin/Image-ExifTool-9.99/t/Writer_15.out +175 -0
  705. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_16.out +0 -0
  706. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_17.out +0 -0
  707. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_18.out +0 -0
  708. data/bin/Image-ExifTool-9.99/t/Writer_19.out +36 -0
  709. data/bin/Image-ExifTool-9.99/t/Writer_2.out +172 -0
  710. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_22.out +0 -0
  711. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_24.out +0 -0
  712. data/bin/Image-ExifTool-9.99/t/Writer_25.out +40 -0
  713. data/bin/Image-ExifTool-9.99/t/Writer_26.out +34 -0
  714. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_27.out +0 -0
  715. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_28.out +0 -0
  716. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_29.out +0 -0
  717. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_30.out +0 -0
  718. data/bin/Image-ExifTool-9.99/t/Writer_31.out +99 -0
  719. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_32.out +0 -0
  720. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_33.out +0 -0
  721. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_34.out +0 -0
  722. data/bin/Image-ExifTool-9.99/t/Writer_35.out +188 -0
  723. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_36.out +0 -0
  724. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_37.out +0 -0
  725. data/bin/Image-ExifTool-9.99/t/Writer_38.out +63 -0
  726. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_39.out +0 -0
  727. data/bin/Image-ExifTool-9.99/t/Writer_4.out +87 -0
  728. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_40.out +0 -0
  729. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_41.out +0 -0
  730. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_42.out +0 -0
  731. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_43.out +0 -0
  732. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_44.out +0 -0
  733. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_45.out +0 -0
  734. data/bin/Image-ExifTool-9.99/t/Writer_46.out +105 -0
  735. data/bin/Image-ExifTool-9.99/t/Writer_47.out +57 -0
  736. data/bin/Image-ExifTool-9.99/t/Writer_48.out +31 -0
  737. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_50.out +0 -0
  738. data/bin/Image-ExifTool-9.99/t/Writer_51.out +405 -0
  739. data/bin/Image-ExifTool-9.99/t/Writer_52.out +23 -0
  740. data/bin/Image-ExifTool-9.99/t/Writer_53.out +35 -0
  741. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_54.out +0 -0
  742. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_55.out +0 -0
  743. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/Writer_56.out +0 -0
  744. data/bin/Image-ExifTool-9.99/t/Writer_6.out +186 -0
  745. data/bin/Image-ExifTool-9.99/t/Writer_7.out +151 -0
  746. data/bin/Image-ExifTool-9.99/t/Writer_9.out +242 -0
  747. data/bin/Image-ExifTool-9.99/t/XMP.t +557 -0
  748. data/bin/Image-ExifTool-9.99/t/XMP_10.out +37 -0
  749. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_11.out +0 -0
  750. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_12.out +0 -0
  751. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_13.out +0 -0
  752. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_14.out +0 -0
  753. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_15.out +0 -0
  754. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_16.out +0 -0
  755. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_17.out +0 -0
  756. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_18.out +0 -0
  757. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_19.out +0 -0
  758. data/bin/Image-ExifTool-9.99/t/XMP_2.out +140 -0
  759. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_20.out +0 -0
  760. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_21.out +0 -0
  761. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_22.out +0 -0
  762. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_23.out +0 -0
  763. data/bin/Image-ExifTool-9.99/t/XMP_24.out +32 -0
  764. data/bin/Image-ExifTool-9.99/t/XMP_25.out +28 -0
  765. data/bin/Image-ExifTool-9.99/t/XMP_26.out +51 -0
  766. data/bin/Image-ExifTool-9.99/t/XMP_27.out +95 -0
  767. data/bin/Image-ExifTool-9.99/t/XMP_28.out +46 -0
  768. data/bin/Image-ExifTool-9.99/t/XMP_29.out +26 -0
  769. data/bin/Image-ExifTool-9.99/t/XMP_3.out +138 -0
  770. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_30.out +0 -0
  771. data/bin/Image-ExifTool-9.99/t/XMP_31.out +20 -0
  772. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_32.out +0 -0
  773. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_34.out +0 -0
  774. data/bin/Image-ExifTool-9.99/t/XMP_36.out +19 -0
  775. data/bin/Image-ExifTool-9.99/t/XMP_37.out +36 -0
  776. data/bin/Image-ExifTool-9.99/t/XMP_39.out +45 -0
  777. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_40.out +0 -0
  778. data/bin/Image-ExifTool-9.99/t/XMP_41.out +181 -0
  779. data/bin/Image-ExifTool-9.99/t/XMP_42.out +8 -0
  780. data/bin/Image-ExifTool-9.99/t/XMP_43.out +6 -0
  781. data/bin/Image-ExifTool-9.99/t/XMP_44.out +35 -0
  782. data/bin/Image-ExifTool-9.99/t/XMP_5.out +30 -0
  783. data/bin/Image-ExifTool-9.99/t/XMP_6.out +89 -0
  784. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_7.out +0 -0
  785. data/bin/Image-ExifTool-9.99/t/XMP_8.out +19 -0
  786. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/XMP_9.out +0 -0
  787. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/ZIP.t +0 -0
  788. data/bin/Image-ExifTool-9.99/t/ZIP_2.out +19 -0
  789. data/bin/Image-ExifTool-9.99/t/ZIP_3.out +18 -0
  790. data/bin/Image-ExifTool-9.99/t/ZIP_4.out +214 -0
  791. data/bin/Image-ExifTool-9.99/t/ZIP_5.out +136 -0
  792. data/bin/Image-ExifTool-9.99/t/ZIP_6.out +50 -0
  793. data/bin/Image-ExifTool-9.99/t/ZIP_7.out +29 -0
  794. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/AFCP.jpg +0 -0
  795. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/AIFF.aif +0 -0
  796. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/APE.ape +0 -0
  797. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/APE.mpc +0 -0
  798. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/ASF.wmv +0 -0
  799. data/bin/Image-ExifTool-9.99/t/images/Audible.aa +0 -0
  800. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/BMP.bmp +0 -0
  801. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/BigTIFF.btf +0 -0
  802. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Canon.jpg +0 -0
  803. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Canon1DmkIII.jpg +0 -0
  804. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/CanonRaw.cr2 +0 -0
  805. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/CanonRaw.crw +0 -0
  806. data/bin/Image-ExifTool-9.99/t/images/CanonVRD.dr4 +0 -0
  807. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/CanonVRD.vrd +0 -0
  808. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/CaptureOne.eip +0 -0
  809. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Casio.jpg +0 -0
  810. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Casio2.jpg +0 -0
  811. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/CasioQVCI.jpg +0 -0
  812. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/DICOM.dcm +0 -0
  813. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/DNG.dng +0 -0
  814. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/DPX.dpx +0 -0
  815. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/DV.dv +0 -0
  816. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/DjVu.djvu +0 -0
  817. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/EXE.elf +0 -0
  818. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/EXE.exe +0 -0
  819. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/EXE.macho +0 -0
  820. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/ExifTool.jpg +0 -0
  821. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/ExifTool.tif +0 -0
  822. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/ExtendedXMP.jpg +0 -0
  823. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/FLAC.flac +0 -0
  824. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/FLAC.ogg +0 -0
  825. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/FLIR.fpf +0 -0
  826. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/FLIR.jpg +0 -0
  827. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Flash.flv +0 -0
  828. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Flash.swf +0 -0
  829. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/FlashPix.ppt +0 -0
  830. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Font.afm +0 -0
  831. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Font.dfont +0 -0
  832. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Font.pfa +0 -0
  833. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Font.pfb +0 -0
  834. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Font.pfm +0 -0
  835. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Font.ttf +0 -0
  836. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/FotoStation.jpg +0 -0
  837. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/FujiFilm.jpg +0 -0
  838. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/FujiFilm.raf +0 -0
  839. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/GE.jpg +0 -0
  840. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/GIF.gif +0 -0
  841. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/GIMP.xcf +0 -0
  842. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/GPS.jpg +0 -0
  843. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/GeoTiff.tif +0 -0
  844. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Geotag.gpx +0 -0
  845. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Geotag.igc +0 -0
  846. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Geotag.kml +0 -0
  847. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Geotag.log +0 -0
  848. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Geotag.xml +0 -0
  849. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Geotag2.log +0 -0
  850. data/bin/Image-ExifTool-9.99/t/images/Geotag3.log +7 -0
  851. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/HTML.html +0 -0
  852. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/IPTC.jpg +0 -0
  853. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/ITC.itc +0 -0
  854. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/InDesign.indd +0 -0
  855. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/JVC.jpg +0 -0
  856. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/JVC2.jpg +0 -0
  857. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Jpeg2000.j2c +0 -0
  858. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Jpeg2000.jp2 +0 -0
  859. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Kodak.jpg +0 -0
  860. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/KyoceraRaw.raw +0 -0
  861. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/LNK.lnk +0 -0
  862. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Lytro.lfp +0 -0
  863. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/M2TS.mts +0 -0
  864. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/MIE.mie +0 -0
  865. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/MIFF.miff +0 -0
  866. data/bin/Image-ExifTool-9.99/t/images/MOI.moi +0 -0
  867. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/MP3.mp3 +0 -0
  868. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/MWG.jpg +0 -0
  869. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/MXF.mxf +0 -0
  870. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Matroska.mkv +0 -0
  871. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Minolta.jpg +0 -0
  872. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Minolta.mrw +0 -0
  873. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Nikon.jpg +0 -0
  874. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Nikon.nef +0 -0
  875. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/NikonD2Hs.jpg +0 -0
  876. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/NikonD70.jpg +0 -0
  877. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/OOXML.docx +0 -0
  878. data/bin/Image-ExifTool-9.99/t/images/Olympus.dss +0 -0
  879. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Olympus.jpg +0 -0
  880. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Olympus2.jpg +0 -0
  881. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/OlympusE1.jpg +0 -0
  882. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/OpenDoc.ods +0 -0
  883. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/OpenEXR.exr +0 -0
  884. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/PDF.pdf +0 -0
  885. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/PDF2.pdf +0 -0
  886. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/PGF.pgf +0 -0
  887. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/PICT.pict +0 -0
  888. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/PLIST-bin.plist +0 -0
  889. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/PLIST-xml.plist +0 -0
  890. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/PNG.png +0 -0
  891. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/PPM.ppm +0 -0
  892. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/PSP.psp +0 -0
  893. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Palm.mobi +0 -0
  894. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Panasonic.jpg +0 -0
  895. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Panasonic.rw2 +0 -0
  896. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Pentax.avi +0 -0
  897. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Pentax.jpg +0 -0
  898. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/PhotoCD.pcd +0 -0
  899. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/PhotoMechanic.jpg +0 -0
  900. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Photoshop.psd +0 -0
  901. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/PostScript.eps +0 -0
  902. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/QuickTime.m4a +0 -0
  903. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/QuickTime.mov +0 -0
  904. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/RIFF.avi +0 -0
  905. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/RIFF.wav +0 -0
  906. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/RIFF.webp +0 -0
  907. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/RTF.rtf +0 -0
  908. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Radiance.hdr +0 -0
  909. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Real.ra +0 -0
  910. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Real.ram +0 -0
  911. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Real.rm +0 -0
  912. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Ricoh.jpg +0 -0
  913. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Ricoh2.jpg +0 -0
  914. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Sanyo.jpg +0 -0
  915. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Sigma.jpg +0 -0
  916. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Sigma.x3f +0 -0
  917. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/SigmaDP2.x3f +0 -0
  918. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Sony.jpg +0 -0
  919. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Sony.pmp +0 -0
  920. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Torrent.torrent +0 -0
  921. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Unknown.jpg +0 -0
  922. data/bin/Image-ExifTool-9.99/t/images/VCard.ics +94 -0
  923. data/bin/Image-ExifTool-9.99/t/images/VCard.vcf +45 -0
  924. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Vorbis.ogg +0 -0
  925. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/Writer.jpg +0 -0
  926. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/XMP.inx +0 -0
  927. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/XMP.jpg +0 -0
  928. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/XMP.svg +0 -0
  929. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/XMP.xml +0 -0
  930. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/XMP.xmp +0 -0
  931. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/XMP2.xmp +0 -0
  932. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/XMP3.xmp +0 -0
  933. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/XMP4.xmp +0 -0
  934. data/bin/Image-ExifTool-9.99/t/images/XMP5.xmp +157 -0
  935. data/bin/Image-ExifTool-9.99/t/images/XMP6.xmp +48 -0
  936. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/ZIP.gz +0 -0
  937. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/ZIP.zip +0 -0
  938. data/bin/{Image-ExifTool-9.78 → Image-ExifTool-9.99}/t/images/iWork.numbers +0 -0
  939. data/lib/exiftool_vendored/version.rb +1 -1
  940. metadata +941 -904
  941. data/bin/Image-ExifTool-9.78/Changes +0 -6884
  942. data/bin/Image-ExifTool-9.78/MANIFEST +0 -900
  943. data/bin/Image-ExifTool-9.78/META.yml +0 -27
  944. data/bin/Image-ExifTool-9.78/README +0 -227
  945. data/bin/Image-ExifTool-9.78/arg_files/exif2xmp.args +0 -42
  946. data/bin/Image-ExifTool-9.78/arg_files/iptcCore.args +0 -172
  947. data/bin/Image-ExifTool-9.78/arg_files/xmp2exif.args +0 -43
  948. data/bin/Image-ExifTool-9.78/config_files/ExifTool_config +0 -341
  949. data/bin/Image-ExifTool-9.78/config_files/convert_regions.config +0 -81
  950. data/bin/Image-ExifTool-9.78/exiftool +0 -5969
  951. data/bin/Image-ExifTool-9.78/html/ExifTool.html +0 -2018
  952. data/bin/Image-ExifTool-9.78/html/Shift.html +0 -173
  953. data/bin/Image-ExifTool-9.78/html/TagNames/AIFF.html +0 -146
  954. data/bin/Image-ExifTool-9.78/html/TagNames/ASF.html +0 -1066
  955. data/bin/Image-ExifTool-9.78/html/TagNames/Apple.html +0 -69
  956. data/bin/Image-ExifTool-9.78/html/TagNames/BMP.html +0 -110
  957. data/bin/Image-ExifTool-9.78/html/TagNames/Canon.html +0 -8414
  958. data/bin/Image-ExifTool-9.78/html/TagNames/CanonCustom.html +0 -2081
  959. data/bin/Image-ExifTool-9.78/html/TagNames/CanonVRD.html +0 -1222
  960. data/bin/Image-ExifTool-9.78/html/TagNames/Casio.html +0 -1606
  961. data/bin/Image-ExifTool-9.78/html/TagNames/Composite.html +0 -696
  962. data/bin/Image-ExifTool-9.78/html/TagNames/DNG.html +0 -285
  963. data/bin/Image-ExifTool-9.78/html/TagNames/DPX.html +0 -190
  964. data/bin/Image-ExifTool-9.78/html/TagNames/DjVu.html +0 -313
  965. data/bin/Image-ExifTool-9.78/html/TagNames/EXE.html +0 -697
  966. data/bin/Image-ExifTool-9.78/html/TagNames/EXIF.html +0 -3365
  967. data/bin/Image-ExifTool-9.78/html/TagNames/Extra.html +0 -341
  968. data/bin/Image-ExifTool-9.78/html/TagNames/FLAC.html +0 -183
  969. data/bin/Image-ExifTool-9.78/html/TagNames/FLIR.html +0 -1340
  970. data/bin/Image-ExifTool-9.78/html/TagNames/Flash.html +0 -419
  971. data/bin/Image-ExifTool-9.78/html/TagNames/FlashPix.html +0 -1465
  972. data/bin/Image-ExifTool-9.78/html/TagNames/FujiFilm.html +0 -789
  973. data/bin/Image-ExifTool-9.78/html/TagNames/GeoTiff.html +0 -2184
  974. data/bin/Image-ExifTool-9.78/html/TagNames/H264.html +0 -393
  975. data/bin/Image-ExifTool-9.78/html/TagNames/ICC_Profile.html +0 -711
  976. data/bin/Image-ExifTool-9.78/html/TagNames/ID3.html +0 -1471
  977. data/bin/Image-ExifTool-9.78/html/TagNames/IPTC.html +0 -902
  978. data/bin/Image-ExifTool-9.78/html/TagNames/JPEG.html +0 -602
  979. data/bin/Image-ExifTool-9.78/html/TagNames/Jpeg2000.html +0 -464
  980. data/bin/Image-ExifTool-9.78/html/TagNames/Kodak.html +0 -1881
  981. data/bin/Image-ExifTool-9.78/html/TagNames/KyoceraRaw.html +0 -92
  982. data/bin/Image-ExifTool-9.78/html/TagNames/LNK.html +0 -478
  983. data/bin/Image-ExifTool-9.78/html/TagNames/Lytro.html +0 -122
  984. data/bin/Image-ExifTool-9.78/html/TagNames/M2TS.html +0 -133
  985. data/bin/Image-ExifTool-9.78/html/TagNames/MIE.html +0 -1026
  986. data/bin/Image-ExifTool-9.78/html/TagNames/MNG.html +0 -847
  987. data/bin/Image-ExifTool-9.78/html/TagNames/MPC.html +0 -97
  988. data/bin/Image-ExifTool-9.78/html/TagNames/MPEG.html +0 -249
  989. data/bin/Image-ExifTool-9.78/html/TagNames/MPF.html +0 -199
  990. data/bin/Image-ExifTool-9.78/html/TagNames/MWG.html +0 -567
  991. data/bin/Image-ExifTool-9.78/html/TagNames/MXF.html +0 -6673
  992. data/bin/Image-ExifTool-9.78/html/TagNames/Matroska.html +0 -1069
  993. data/bin/Image-ExifTool-9.78/html/TagNames/Microsoft.html +0 -2069
  994. data/bin/Image-ExifTool-9.78/html/TagNames/Minolta.html +0 -2585
  995. data/bin/Image-ExifTool-9.78/html/TagNames/MinoltaRaw.html +0 -326
  996. data/bin/Image-ExifTool-9.78/html/TagNames/Nikon.html +0 -4734
  997. data/bin/Image-ExifTool-9.78/html/TagNames/NikonCapture.html +0 -799
  998. data/bin/Image-ExifTool-9.78/html/TagNames/NikonCustom.html +0 -4794
  999. data/bin/Image-ExifTool-9.78/html/TagNames/OOXML.html +0 -280
  1000. data/bin/Image-ExifTool-9.78/html/TagNames/Olympus.html +0 -3447
  1001. data/bin/Image-ExifTool-9.78/html/TagNames/OpenEXR.html +0 -222
  1002. data/bin/Image-ExifTool-9.78/html/TagNames/PDF.html +0 -745
  1003. data/bin/Image-ExifTool-9.78/html/TagNames/PGF.html +0 -80
  1004. data/bin/Image-ExifTool-9.78/html/TagNames/Palm.html +0 -388
  1005. data/bin/Image-ExifTool-9.78/html/TagNames/Panasonic.html +0 -1686
  1006. data/bin/Image-ExifTool-9.78/html/TagNames/PanasonicRaw.html +0 -451
  1007. data/bin/Image-ExifTool-9.78/html/TagNames/Pentax.html +0 -4601
  1008. data/bin/Image-ExifTool-9.78/html/TagNames/PhaseOne.html +0 -258
  1009. data/bin/Image-ExifTool-9.78/html/TagNames/PhotoCD.html +0 -402
  1010. data/bin/Image-ExifTool-9.78/html/TagNames/PhotoMechanic.html +0 -196
  1011. data/bin/Image-ExifTool-9.78/html/TagNames/Photoshop.html +0 -570
  1012. data/bin/Image-ExifTool-9.78/html/TagNames/Qualcomm.html +0 -4778
  1013. data/bin/Image-ExifTool-9.78/html/TagNames/QuickTime.html +0 -5729
  1014. data/bin/Image-ExifTool-9.78/html/TagNames/RIFF.html +0 -1314
  1015. data/bin/Image-ExifTool-9.78/html/TagNames/Radiance.html +0 -87
  1016. data/bin/Image-ExifTool-9.78/html/TagNames/Real.html +0 -780
  1017. data/bin/Image-ExifTool-9.78/html/TagNames/Reconyx.html +0 -132
  1018. data/bin/Image-ExifTool-9.78/html/TagNames/Ricoh.html +0 -794
  1019. data/bin/Image-ExifTool-9.78/html/TagNames/Samsung.html +0 -603
  1020. data/bin/Image-ExifTool-9.78/html/TagNames/Sanyo.html +0 -366
  1021. data/bin/Image-ExifTool-9.78/html/TagNames/Shortcuts.html +0 -274
  1022. data/bin/Image-ExifTool-9.78/html/TagNames/Sigma.html +0 -377
  1023. data/bin/Image-ExifTool-9.78/html/TagNames/SigmaRaw.html +0 -438
  1024. data/bin/Image-ExifTool-9.78/html/TagNames/Sony.html +0 -7481
  1025. data/bin/Image-ExifTool-9.78/html/TagNames/SonyIDC.html +0 -267
  1026. data/bin/Image-ExifTool-9.78/html/TagNames/XMP.html +0 -7971
  1027. data/bin/Image-ExifTool-9.78/html/TagNames/ZIP.html +0 -205
  1028. data/bin/Image-ExifTool-9.78/html/TagNames/index.html +0 -207
  1029. data/bin/Image-ExifTool-9.78/html/ancient_history.html +0 -7356
  1030. data/bin/Image-ExifTool-9.78/html/config.html +0 -354
  1031. data/bin/Image-ExifTool-9.78/html/data_members.html +0 -277
  1032. data/bin/Image-ExifTool-9.78/html/exiftool_pod.html +0 -2414
  1033. data/bin/Image-ExifTool-9.78/html/faq.html +0 -1499
  1034. data/bin/Image-ExifTool-9.78/html/filename.html +0 -331
  1035. data/bin/Image-ExifTool-9.78/html/geotag.html +0 -652
  1036. data/bin/Image-ExifTool-9.78/html/history.html +0 -431
  1037. data/bin/Image-ExifTool-9.78/html/htmldump.html +0 -734
  1038. data/bin/Image-ExifTool-9.78/html/index.html +0 -1298
  1039. data/bin/Image-ExifTool-9.78/html/install.html +0 -251
  1040. data/bin/Image-ExifTool-9.78/html/standards.html +0 -286
  1041. data/bin/Image-ExifTool-9.78/html/under.html +0 -127
  1042. data/bin/Image-ExifTool-9.78/lib/File/RandomAccess.pm +0 -378
  1043. data/bin/Image-ExifTool-9.78/lib/File/RandomAccess.pod +0 -231
  1044. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool.pm +0 -7070
  1045. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool.pod +0 -2437
  1046. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/AES.pm +0 -501
  1047. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/AFCP.pm +0 -284
  1048. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/AIFF.pm +0 -286
  1049. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/APE.pm +0 -262
  1050. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/APP12.pm +0 -322
  1051. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/ASF.pm +0 -884
  1052. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Apple.pm +0 -115
  1053. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/BMP.pm +0 -179
  1054. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/BZZ.pm +0 -472
  1055. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/BigTIFF.pm +0 -282
  1056. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/BuildTagLookup.pm +0 -2445
  1057. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Canon.pm +0 -8184
  1058. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/CanonCustom.pm +0 -2582
  1059. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/CanonRaw.pm +0 -908
  1060. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/CanonVRD.pm +0 -1519
  1061. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/CaptureOne.pm +0 -235
  1062. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Casio.pm +0 -2057
  1063. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Charset.pm +0 -396
  1064. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/DICOM.pm +0 -3874
  1065. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/DNG.pm +0 -835
  1066. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/DPX.pm +0 -151
  1067. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/DV.pm +0 -319
  1068. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/DarwinCore.pm +0 -322
  1069. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/DjVu.pm +0 -376
  1070. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/EXE.pm +0 -1228
  1071. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Exif.pm +0 -4652
  1072. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/FLAC.pm +0 -296
  1073. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/FLIR.pm +0 -1531
  1074. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Fixup.pm +0 -354
  1075. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Flash.pm +0 -755
  1076. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/FlashPix.pm +0 -1929
  1077. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Font.pm +0 -643
  1078. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/FotoStation.pm +0 -259
  1079. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/FujiFilm.pm +0 -1162
  1080. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/GE.pm +0 -81
  1081. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/GIF.pm +0 -542
  1082. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/GIMP.pm +0 -258
  1083. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/GPS.pm +0 -546
  1084. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/GeoTiff.pm +0 -2202
  1085. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Geotag.pm +0 -1201
  1086. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/H264.pm +0 -1112
  1087. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/HP.pm +0 -262
  1088. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/HTML.pm +0 -576
  1089. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/HtmlDump.pm +0 -895
  1090. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/ICC_Profile.pm +0 -1000
  1091. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/ID3.pm +0 -1532
  1092. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/IPTC.pm +0 -1264
  1093. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/ITC.pm +0 -215
  1094. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Import.pm +0 -313
  1095. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/InDesign.pm +0 -277
  1096. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/JPEG.pm +0 -601
  1097. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/JPEGDigest.pm +0 -2511
  1098. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/JVC.pm +0 -130
  1099. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Jpeg2000.pm +0 -873
  1100. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Kodak.pm +0 -2080
  1101. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/KyoceraRaw.pm +0 -173
  1102. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/LNK.pm +0 -723
  1103. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/cs.pm +0 -1588
  1104. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/de.pm +0 -8683
  1105. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/en_ca.pm +0 -848
  1106. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/en_gb.pm +0 -863
  1107. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/es.pm +0 -4020
  1108. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/fi.pm +0 -2854
  1109. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/fr.pm +0 -4748
  1110. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/it.pm +0 -7920
  1111. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/ja.pm +0 -5827
  1112. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/ko.pm +0 -2331
  1113. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/nl.pm +0 -3222
  1114. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/pl.pm +0 -1168
  1115. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/ru.pm +0 -768
  1116. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/sv.pm +0 -638
  1117. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/tr.pm +0 -544
  1118. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/zh_cn.pm +0 -1330
  1119. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lang/zh_tw.pm +0 -801
  1120. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Leaf.pm +0 -515
  1121. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Lytro.pm +0 -217
  1122. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/M2TS.pm +0 -725
  1123. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/MIE.pm +0 -2561
  1124. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/MIEUnits.pod +0 -377
  1125. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/MIFF.pm +0 -279
  1126. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/MNG.pm +0 -684
  1127. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/MPC.pm +0 -156
  1128. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/MPEG.pm +0 -736
  1129. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/MPF.pm +0 -292
  1130. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/MWG.pm +0 -748
  1131. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/MXF.pm +0 -3032
  1132. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/MakerNotes.pm +0 -1686
  1133. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Matroska.pm +0 -891
  1134. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Microsoft.pm +0 -884
  1135. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Minolta.pm +0 -2901
  1136. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/MinoltaRaw.pm +0 -534
  1137. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Nikon.pm +0 -6578
  1138. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/NikonCapture.pm +0 -940
  1139. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/NikonCustom.pm +0 -5445
  1140. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Nintendo.pm +0 -128
  1141. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/OOXML.pm +0 -409
  1142. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Ogg.pm +0 -237
  1143. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Olympus.pm +0 -3696
  1144. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/OpenEXR.pm +0 -324
  1145. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/PDF.pm +0 -2327
  1146. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/PGF.pm +0 -143
  1147. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/PICT.pm +0 -1260
  1148. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/PLIST.pm +0 -453
  1149. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/PNG.pm +0 -1190
  1150. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/PPM.pm +0 -169
  1151. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/PSP.pm +0 -305
  1152. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Palm.pm +0 -403
  1153. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Panasonic.pm +0 -2355
  1154. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/PanasonicRaw.pm +0 -638
  1155. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Pentax.pm +0 -5877
  1156. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/PhaseOne.pm +0 -557
  1157. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/PhotoCD.pm +0 -507
  1158. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/PhotoMechanic.pm +0 -256
  1159. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Photoshop.pm +0 -648
  1160. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/PostScript.pm +0 -694
  1161. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/PrintIM.pm +0 -125
  1162. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Qualcomm.pm +0 -1344
  1163. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/QuickTime.pm +0 -6305
  1164. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/README +0 -967
  1165. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/RIFF.pm +0 -1478
  1166. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/RSRC.pm +0 -241
  1167. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/RTF.pm +0 -383
  1168. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Radiance.pm +0 -144
  1169. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Rawzor.pm +0 -190
  1170. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Real.pm +0 -736
  1171. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Reconyx.pm +0 -190
  1172. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Ricoh.pm +0 -1114
  1173. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Samsung.pm +0 -1158
  1174. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Sanyo.pm +0 -439
  1175. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Scalado.pm +0 -141
  1176. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Shift.pl +0 -596
  1177. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Shortcuts.pm +0 -333
  1178. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Sigma.pm +0 -589
  1179. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/SigmaRaw.pm +0 -665
  1180. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Sony.pm +0 -8366
  1181. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/SonyIDC.pm +0 -330
  1182. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Stim.pm +0 -196
  1183. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/TagInfoXML.pm +0 -806
  1184. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/TagLookup.pm +0 -8745
  1185. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/TagNames.pod +0 -27987
  1186. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Theora.pm +0 -145
  1187. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Torrent.pm +0 -317
  1188. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Unknown.pm +0 -66
  1189. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Vorbis.pm +0 -237
  1190. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/WriteCanonRaw.pl +0 -637
  1191. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/WriteExif.pl +0 -3743
  1192. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/WriteIPTC.pl +0 -702
  1193. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/WritePDF.pl +0 -768
  1194. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/WritePNG.pl +0 -390
  1195. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/WritePhotoshop.pl +0 -266
  1196. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/WritePostScript.pl +0 -777
  1197. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/WriteQuickTime.pl +0 -358
  1198. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/WriteXMP.pl +0 -1358
  1199. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/Writer.pl +0 -5972
  1200. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/XMP.pm +0 -3840
  1201. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/XMP2.pl +0 -1305
  1202. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/XMPStruct.pl +0 -826
  1203. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/ZIP.pm +0 -667
  1204. data/bin/Image-ExifTool-9.78/lib/Image/ExifTool/iWork.pm +0 -223
  1205. data/bin/Image-ExifTool-9.78/perl-Image-ExifTool.spec +0 -110
  1206. data/bin/Image-ExifTool-9.78/t/AFCP_2.out +0 -37
  1207. data/bin/Image-ExifTool-9.78/t/AIFF_2.out +0 -32
  1208. data/bin/Image-ExifTool-9.78/t/APE_2.out +0 -28
  1209. data/bin/Image-ExifTool-9.78/t/APE_3.out +0 -57
  1210. data/bin/Image-ExifTool-9.78/t/ASF_2.out +0 -54
  1211. data/bin/Image-ExifTool-9.78/t/BMP_2.out +0 -21
  1212. data/bin/Image-ExifTool-9.78/t/BigTIFF_2.out +0 -19
  1213. data/bin/Image-ExifTool-9.78/t/CanonRaw_2.out +0 -166
  1214. data/bin/Image-ExifTool-9.78/t/CanonRaw_4.out +0 -216
  1215. data/bin/Image-ExifTool-9.78/t/CanonRaw_5.out +0 -208
  1216. data/bin/Image-ExifTool-9.78/t/CanonRaw_6.out +0 -231
  1217. data/bin/Image-ExifTool-9.78/t/CanonRaw_7.out +0 -247
  1218. data/bin/Image-ExifTool-9.78/t/CanonVRD.t +0 -129
  1219. data/bin/Image-ExifTool-9.78/t/CanonVRD_11.out +0 -118
  1220. data/bin/Image-ExifTool-9.78/t/CanonVRD_12.out +0 -12
  1221. data/bin/Image-ExifTool-9.78/t/CanonVRD_2.out +0 -116
  1222. data/bin/Image-ExifTool-9.78/t/CanonVRD_3.out +0 -116
  1223. data/bin/Image-ExifTool-9.78/t/CanonVRD_5.out +0 -3
  1224. data/bin/Image-ExifTool-9.78/t/Canon_2.out +0 -353
  1225. data/bin/Image-ExifTool-9.78/t/Casio_2.out +0 -70
  1226. data/bin/Image-ExifTool-9.78/t/Casio_3.out +0 -100
  1227. data/bin/Image-ExifTool-9.78/t/Casio_4.out +0 -26
  1228. data/bin/Image-ExifTool-9.78/t/Casio_5.out +0 -78
  1229. data/bin/Image-ExifTool-9.78/t/Casio_6.out +0 -115
  1230. data/bin/Image-ExifTool-9.78/t/DICOM_2.out +0 -108
  1231. data/bin/Image-ExifTool-9.78/t/DNG_2.out +0 -326
  1232. data/bin/Image-ExifTool-9.78/t/DPX_2.out +0 -35
  1233. data/bin/Image-ExifTool-9.78/t/DV_2.out +0 -24
  1234. data/bin/Image-ExifTool-9.78/t/DjVu_2.out +0 -44
  1235. data/bin/Image-ExifTool-9.78/t/EXE.t +0 -31
  1236. data/bin/Image-ExifTool-9.78/t/EXE_2.out +0 -40
  1237. data/bin/Image-ExifTool-9.78/t/EXE_3.out +0 -15
  1238. data/bin/Image-ExifTool-9.78/t/EXE_4.out +0 -14
  1239. data/bin/Image-ExifTool-9.78/t/ExifTool_16.out +0 -181
  1240. data/bin/Image-ExifTool-9.78/t/ExifTool_17.out +0 -597
  1241. data/bin/Image-ExifTool-9.78/t/ExifTool_2.out +0 -416
  1242. data/bin/Image-ExifTool-9.78/t/ExifTool_28.out +0 -10
  1243. data/bin/Image-ExifTool-9.78/t/ExifTool_3.out +0 -87
  1244. data/bin/Image-ExifTool-9.78/t/ExifTool_6.out +0 -68
  1245. data/bin/Image-ExifTool-9.78/t/FLAC_2.out +0 -25
  1246. data/bin/Image-ExifTool-9.78/t/FLAC_3.out +0 -19
  1247. data/bin/Image-ExifTool-9.78/t/FLIR_2.out +0 -110
  1248. data/bin/Image-ExifTool-9.78/t/FLIR_3.out +0 -47
  1249. data/bin/Image-ExifTool-9.78/t/FlashPix_2.out +0 -48
  1250. data/bin/Image-ExifTool-9.78/t/Flash_2.out +0 -20
  1251. data/bin/Image-ExifTool-9.78/t/Flash_3.out +0 -53
  1252. data/bin/Image-ExifTool-9.78/t/Font_2.out +0 -23
  1253. data/bin/Image-ExifTool-9.78/t/Font_3.out +0 -35
  1254. data/bin/Image-ExifTool-9.78/t/Font_4.out +0 -26
  1255. data/bin/Image-ExifTool-9.78/t/Font_5.out +0 -26
  1256. data/bin/Image-ExifTool-9.78/t/Font_6.out +0 -36
  1257. data/bin/Image-ExifTool-9.78/t/Font_7.out +0 -36
  1258. data/bin/Image-ExifTool-9.78/t/FotoStation_2.out +0 -39
  1259. data/bin/Image-ExifTool-9.78/t/FujiFilm_2.out +0 -87
  1260. data/bin/Image-ExifTool-9.78/t/FujiFilm_3.out +0 -88
  1261. data/bin/Image-ExifTool-9.78/t/FujiFilm_4.out +0 -137
  1262. data/bin/Image-ExifTool-9.78/t/GE_2.out +0 -84
  1263. data/bin/Image-ExifTool-9.78/t/GE_3.out +0 -84
  1264. data/bin/Image-ExifTool-9.78/t/GIF_2.out +0 -40
  1265. data/bin/Image-ExifTool-9.78/t/GIF_3.out +0 -41
  1266. data/bin/Image-ExifTool-9.78/t/GIF_4.out +0 -16
  1267. data/bin/Image-ExifTool-9.78/t/GIMP_2.out +0 -63
  1268. data/bin/Image-ExifTool-9.78/t/GPS_2.out +0 -94
  1269. data/bin/Image-ExifTool-9.78/t/GPS_3.out +0 -96
  1270. data/bin/Image-ExifTool-9.78/t/GeoTiff_2.out +0 -36
  1271. data/bin/Image-ExifTool-9.78/t/GeoTiff_3.out +0 -36
  1272. data/bin/Image-ExifTool-9.78/t/Geotag.t +0 -181
  1273. data/bin/Image-ExifTool-9.78/t/HTML_2.out +0 -68
  1274. data/bin/Image-ExifTool-9.78/t/IPTC_2.out +0 -58
  1275. data/bin/Image-ExifTool-9.78/t/IPTC_4.out +0 -56
  1276. data/bin/Image-ExifTool-9.78/t/ITC_2.out +0 -19
  1277. data/bin/Image-ExifTool-9.78/t/InDesign_2.out +0 -19
  1278. data/bin/Image-ExifTool-9.78/t/InDesign_3.out +0 -21
  1279. data/bin/Image-ExifTool-9.78/t/InDesign_4.out +0 -11
  1280. data/bin/Image-ExifTool-9.78/t/Jpeg2000_2.out +0 -63
  1281. data/bin/Image-ExifTool-9.78/t/Jpeg2000_3.out +0 -51
  1282. data/bin/Image-ExifTool-9.78/t/Jpeg2000_4.out +0 -15
  1283. data/bin/Image-ExifTool-9.78/t/Kodak_2.out +0 -109
  1284. data/bin/Image-ExifTool-9.78/t/Kodak_3.out +0 -119
  1285. data/bin/Image-ExifTool-9.78/t/KyoceraRaw_2.out +0 -27
  1286. data/bin/Image-ExifTool-9.78/t/LNK_2.out +0 -45
  1287. data/bin/Image-ExifTool-9.78/t/Lytro_2.out +0 -107
  1288. data/bin/Image-ExifTool-9.78/t/M2TS_2.out +0 -27
  1289. data/bin/Image-ExifTool-9.78/t/MIE_2.out +0 -67
  1290. data/bin/Image-ExifTool-9.78/t/MIE_3.out +0 -134
  1291. data/bin/Image-ExifTool-9.78/t/MIFF_2.out +0 -108
  1292. data/bin/Image-ExifTool-9.78/t/MP3_2.out +0 -45
  1293. data/bin/Image-ExifTool-9.78/t/MXF_2.out +0 -78
  1294. data/bin/Image-ExifTool-9.78/t/Matroska_2.out +0 -64
  1295. data/bin/Image-ExifTool-9.78/t/Minolta_2.out +0 -133
  1296. data/bin/Image-ExifTool-9.78/t/Minolta_3.out +0 -146
  1297. data/bin/Image-ExifTool-9.78/t/Minolta_4.out +0 -148
  1298. data/bin/Image-ExifTool-9.78/t/Nikon_2.out +0 -82
  1299. data/bin/Image-ExifTool-9.78/t/Nikon_3.out +0 -98
  1300. data/bin/Image-ExifTool-9.78/t/Nikon_4.out +0 -174
  1301. data/bin/Image-ExifTool-9.78/t/Nikon_5.out +0 -167
  1302. data/bin/Image-ExifTool-9.78/t/Nikon_7.out +0 -259
  1303. data/bin/Image-ExifTool-9.78/t/Olympus.t +0 -85
  1304. data/bin/Image-ExifTool-9.78/t/Olympus_2.out +0 -79
  1305. data/bin/Image-ExifTool-9.78/t/Olympus_3.out +0 -81
  1306. data/bin/Image-ExifTool-9.78/t/Olympus_4.out +0 -192
  1307. data/bin/Image-ExifTool-9.78/t/Olympus_5.out +0 -264
  1308. data/bin/Image-ExifTool-9.78/t/Olympus_6.out +0 -151
  1309. data/bin/Image-ExifTool-9.78/t/Olympus_7.out +0 -482
  1310. data/bin/Image-ExifTool-9.78/t/OpenEXR_2.out +0 -23
  1311. data/bin/Image-ExifTool-9.78/t/PDF_2.out +0 -117
  1312. data/bin/Image-ExifTool-9.78/t/PGF_2.out +0 -32
  1313. data/bin/Image-ExifTool-9.78/t/PICT_2.out +0 -15
  1314. data/bin/Image-ExifTool-9.78/t/PLIST_2.out +0 -20
  1315. data/bin/Image-ExifTool-9.78/t/PLIST_3.out +0 -20
  1316. data/bin/Image-ExifTool-9.78/t/PNG_2.out +0 -22
  1317. data/bin/Image-ExifTool-9.78/t/PNG_3.out +0 -121
  1318. data/bin/Image-ExifTool-9.78/t/PNG_5.out +0 -17
  1319. data/bin/Image-ExifTool-9.78/t/PPM_2.out +0 -15
  1320. data/bin/Image-ExifTool-9.78/t/PPM_3.out +0 -9
  1321. data/bin/Image-ExifTool-9.78/t/PSP_2.out +0 -32
  1322. data/bin/Image-ExifTool-9.78/t/Palm_2.out +0 -31
  1323. data/bin/Image-ExifTool-9.78/t/Panasonic_2.out +0 -99
  1324. data/bin/Image-ExifTool-9.78/t/Panasonic_3.out +0 -119
  1325. data/bin/Image-ExifTool-9.78/t/Panasonic_4.out +0 -204
  1326. data/bin/Image-ExifTool-9.78/t/Panasonic_5.out +0 -242
  1327. data/bin/Image-ExifTool-9.78/t/Pentax_2.out +0 -221
  1328. data/bin/Image-ExifTool-9.78/t/Pentax_3.out +0 -263
  1329. data/bin/Image-ExifTool-9.78/t/Pentax_4.out +0 -127
  1330. data/bin/Image-ExifTool-9.78/t/PhotoCD_2.out +0 -35
  1331. data/bin/Image-ExifTool-9.78/t/PhotoMechanic_2.out +0 -81
  1332. data/bin/Image-ExifTool-9.78/t/Photoshop_2.out +0 -96
  1333. data/bin/Image-ExifTool-9.78/t/Photoshop_3.out +0 -108
  1334. data/bin/Image-ExifTool-9.78/t/PostScript_2.out +0 -64
  1335. data/bin/Image-ExifTool-9.78/t/PostScript_3.out +0 -132
  1336. data/bin/Image-ExifTool-9.78/t/QuickTime.t +0 -54
  1337. data/bin/Image-ExifTool-9.78/t/QuickTime_2.out +0 -131
  1338. data/bin/Image-ExifTool-9.78/t/QuickTime_3.out +0 -72
  1339. data/bin/Image-ExifTool-9.78/t/RIFF_2.out +0 -24
  1340. data/bin/Image-ExifTool-9.78/t/RIFF_3.out +0 -52
  1341. data/bin/Image-ExifTool-9.78/t/RIFF_4.out +0 -16
  1342. data/bin/Image-ExifTool-9.78/t/RTF_2.out +0 -20
  1343. data/bin/Image-ExifTool-9.78/t/Radiance_2.out +0 -22
  1344. data/bin/Image-ExifTool-9.78/t/Real_2.out +0 -68
  1345. data/bin/Image-ExifTool-9.78/t/Real_3.out +0 -18
  1346. data/bin/Image-ExifTool-9.78/t/Real_4.out +0 -11
  1347. data/bin/Image-ExifTool-9.78/t/Ricoh_2.out +0 -70
  1348. data/bin/Image-ExifTool-9.78/t/Ricoh_3.out +0 -98
  1349. data/bin/Image-ExifTool-9.78/t/Ricoh_4.out +0 -112
  1350. data/bin/Image-ExifTool-9.78/t/Sanyo_2.out +0 -101
  1351. data/bin/Image-ExifTool-9.78/t/Sanyo_3.out +0 -111
  1352. data/bin/Image-ExifTool-9.78/t/Sigma_2.out +0 -91
  1353. data/bin/Image-ExifTool-9.78/t/Sigma_3.out +0 -94
  1354. data/bin/Image-ExifTool-9.78/t/Sigma_4.out +0 -63
  1355. data/bin/Image-ExifTool-9.78/t/Sigma_5.out +0 -192
  1356. data/bin/Image-ExifTool-9.78/t/Sony_2.out +0 -84
  1357. data/bin/Image-ExifTool-9.78/t/Sony_3.out +0 -85
  1358. data/bin/Image-ExifTool-9.78/t/Sony_5.out +0 -32
  1359. data/bin/Image-ExifTool-9.78/t/Torrent_2.out +0 -31
  1360. data/bin/Image-ExifTool-9.78/t/Unknown_2.out +0 -90
  1361. data/bin/Image-ExifTool-9.78/t/Unknown_3.out +0 -90
  1362. data/bin/Image-ExifTool-9.78/t/Vorbis_2.out +0 -28
  1363. data/bin/Image-ExifTool-9.78/t/Writer_10.out +0 -242
  1364. data/bin/Image-ExifTool-9.78/t/Writer_11.out +0 -37
  1365. data/bin/Image-ExifTool-9.78/t/Writer_13.out +0 -161
  1366. data/bin/Image-ExifTool-9.78/t/Writer_14.out +0 -67
  1367. data/bin/Image-ExifTool-9.78/t/Writer_15.out +0 -172
  1368. data/bin/Image-ExifTool-9.78/t/Writer_19.out +0 -34
  1369. data/bin/Image-ExifTool-9.78/t/Writer_2.out +0 -169
  1370. data/bin/Image-ExifTool-9.78/t/Writer_25.out +0 -38
  1371. data/bin/Image-ExifTool-9.78/t/Writer_26.out +0 -32
  1372. data/bin/Image-ExifTool-9.78/t/Writer_31.out +0 -97
  1373. data/bin/Image-ExifTool-9.78/t/Writer_35.out +0 -187
  1374. data/bin/Image-ExifTool-9.78/t/Writer_38.out +0 -62
  1375. data/bin/Image-ExifTool-9.78/t/Writer_4.out +0 -85
  1376. data/bin/Image-ExifTool-9.78/t/Writer_46.out +0 -79
  1377. data/bin/Image-ExifTool-9.78/t/Writer_47.out +0 -56
  1378. data/bin/Image-ExifTool-9.78/t/Writer_48.out +0 -29
  1379. data/bin/Image-ExifTool-9.78/t/Writer_51.out +0 -403
  1380. data/bin/Image-ExifTool-9.78/t/Writer_52.out +0 -22
  1381. data/bin/Image-ExifTool-9.78/t/Writer_53.out +0 -33
  1382. data/bin/Image-ExifTool-9.78/t/Writer_6.out +0 -183
  1383. data/bin/Image-ExifTool-9.78/t/Writer_7.out +0 -150
  1384. data/bin/Image-ExifTool-9.78/t/Writer_9.out +0 -238
  1385. data/bin/Image-ExifTool-9.78/t/XMP.t +0 -525
  1386. data/bin/Image-ExifTool-9.78/t/XMP_10.out +0 -36
  1387. data/bin/Image-ExifTool-9.78/t/XMP_2.out +0 -138
  1388. data/bin/Image-ExifTool-9.78/t/XMP_24.out +0 -31
  1389. data/bin/Image-ExifTool-9.78/t/XMP_25.out +0 -28
  1390. data/bin/Image-ExifTool-9.78/t/XMP_26.out +0 -52
  1391. data/bin/Image-ExifTool-9.78/t/XMP_27.out +0 -93
  1392. data/bin/Image-ExifTool-9.78/t/XMP_28.out +0 -44
  1393. data/bin/Image-ExifTool-9.78/t/XMP_29.out +0 -24
  1394. data/bin/Image-ExifTool-9.78/t/XMP_3.out +0 -136
  1395. data/bin/Image-ExifTool-9.78/t/XMP_31.out +0 -19
  1396. data/bin/Image-ExifTool-9.78/t/XMP_36.out +0 -18
  1397. data/bin/Image-ExifTool-9.78/t/XMP_37.out +0 -35
  1398. data/bin/Image-ExifTool-9.78/t/XMP_39.out +0 -44
  1399. data/bin/Image-ExifTool-9.78/t/XMP_41.out +0 -180
  1400. data/bin/Image-ExifTool-9.78/t/XMP_5.out +0 -29
  1401. data/bin/Image-ExifTool-9.78/t/XMP_6.out +0 -87
  1402. data/bin/Image-ExifTool-9.78/t/XMP_8.out +0 -17
  1403. data/bin/Image-ExifTool-9.78/t/ZIP_2.out +0 -18
  1404. data/bin/Image-ExifTool-9.78/t/ZIP_3.out +0 -17
  1405. data/bin/Image-ExifTool-9.78/t/ZIP_4.out +0 -213
  1406. data/bin/Image-ExifTool-9.78/t/ZIP_5.out +0 -134
  1407. data/bin/Image-ExifTool-9.78/t/ZIP_6.out +0 -49
  1408. data/bin/Image-ExifTool-9.78/t/ZIP_7.out +0 -28
  1409. data/bin/Image-ExifTool-9.78/t/images/XMP5.xmp +0 -158
@@ -0,0 +1,3743 @@
1
+ #------------------------------------------------------------------------------
2
+ # File: WriteExif.pl
3
+ #
4
+ # Description: Write EXIF meta information
5
+ #
6
+ # Revisions: 12/13/2004 - P. Harvey Created
7
+ #------------------------------------------------------------------------------
8
+
9
+ package Image::ExifTool::Exif;
10
+
11
+ use strict;
12
+ use vars qw($VERSION $AUTOLOAD @formatSize @formatName %formatNumber
13
+ %compression %photometricInterpretation %orientation);
14
+
15
+ use Image::ExifTool::Fixup;
16
+
17
+ sub InsertWritableProperties($$;$);
18
+
19
+ # some information may be stored in different IFD's with the same meaning.
20
+ # Use this lookup to decide when we should delete information that is stored
21
+ # in another IFD when we write it to the preferred IFD.
22
+ my %crossDelete = (
23
+ ExifIFD => 'IFD0',
24
+ IFD0 => 'ExifIFD',
25
+ );
26
+
27
+ # mandatory tag default values
28
+ my %mandatory = (
29
+ IFD0 => {
30
+ 0x011a => 72, # XResolution
31
+ 0x011b => 72, # YResolution
32
+ 0x0128 => 2, # ResolutionUnit (inches)
33
+ 0x0213 => 1, # YCbCrPositioning (centered)
34
+ # 0x8769 => ????, # ExifOffset
35
+ },
36
+ IFD1 => {
37
+ 0x0103 => 6, # Compression (JPEG)
38
+ 0x011a => 72, # XResolution
39
+ 0x011b => 72, # YResolution
40
+ 0x0128 => 2, # ResolutionUnit (inches)
41
+ },
42
+ ExifIFD => {
43
+ 0x9000 => '0230', # ExifVersion
44
+ 0x9101 => "1 2 3 0",# ComponentsConfiguration
45
+ 0xa000 => '0100', # FlashpixVersion
46
+ 0xa001 => 0xffff, # ColorSpace (uncalibrated)
47
+ # 0xa002 => ????, # ExifImageWidth
48
+ # 0xa003 => ????, # ExifImageHeight
49
+ },
50
+ GPS => {
51
+ 0x0000 => '2 3 0 0',# GPSVersionID
52
+ },
53
+ InteropIFD => {
54
+ 0x0002 => '0100', # InteropVersion
55
+ },
56
+ );
57
+
58
+ # The main EXIF table is unique because the tags from this table may appear
59
+ # in many different directories. For this reason, we introduce a
60
+ # "WriteGroup" member to the tagInfo that tells us the preferred location
61
+ # for writing each tag. Here is the lookup for Writable flag (format)
62
+ # and WriteGroup for all writable tags
63
+ # - WriteGroup is ExifIFD unless otherwise specified
64
+ # - Protected is 1 if the tag shouldn't be copied with SetNewValuesFromFile()
65
+ my %writeTable = (
66
+ 0x0001 => { # InteropIndex
67
+ Protected => 1,
68
+ Writable => 'string',
69
+ WriteGroup => 'InteropIFD',
70
+ },
71
+ 0x0002 => { # InteropVersion
72
+ Protected => 1,
73
+ Writable => 'undef',
74
+ Mandatory => 1,
75
+ WriteGroup => 'InteropIFD',
76
+ },
77
+ 0x000b => { # ProcessingSoftware
78
+ Writable => 'string',
79
+ WriteGroup => 'IFD0',
80
+ },
81
+ 0x00fe => { # SubfileType
82
+ Protected => 1,
83
+ Writable => 'int32u',
84
+ WriteGroup => 'IFD0',
85
+ },
86
+ 0x00ff => { # OldSubfileType
87
+ Protected => 1,
88
+ Writable => 'int16u',
89
+ WriteGroup => 'IFD0',
90
+ },
91
+ 0x0100 => { # ImageWidth
92
+ Protected => 1,
93
+ Writable => 'int32u',
94
+ WriteGroup => 'IFD0',
95
+ },
96
+ 0x0101 => { # ImageHeight
97
+ Protected => 1,
98
+ Writable => 'int32u',
99
+ WriteGroup => 'IFD0',
100
+ },
101
+ 0x0102 => { # BitsPerSample
102
+ Protected => 1,
103
+ Writable => 'int16u',
104
+ WriteGroup => 'IFD0',
105
+ Count => -1, # can be 1 or 3: -1 means 'variable'
106
+ },
107
+ 0x0103 => { # Compression
108
+ Protected => 1,
109
+ Writable => 'int16u',
110
+ WriteGroup => 'IFD0',
111
+ Mandatory => 1,
112
+ },
113
+ 0x0106 => { # PhotometricInterpretation
114
+ Protected => 1,
115
+ Writable => 'int16u',
116
+ WriteGroup => 'IFD0',
117
+ },
118
+ 0x0107 => { # Thresholding
119
+ Protected => 1,
120
+ Writable => 'int16u',
121
+ WriteGroup => 'IFD0',
122
+ },
123
+ 0x0108 => { # CellWidth
124
+ Protected => 1,
125
+ Writable => 'int16u',
126
+ WriteGroup => 'IFD0',
127
+ },
128
+ 0x0109 => { # CellLength
129
+ Protected => 1,
130
+ Writable => 'int16u',
131
+ WriteGroup => 'IFD0',
132
+ },
133
+ 0x010a => { # FillOrder
134
+ Protected => 1,
135
+ Writable => 'int16u',
136
+ WriteGroup => 'IFD0',
137
+ },
138
+ 0x010d => { # DocumentName
139
+ Writable => 'string',
140
+ WriteGroup => 'IFD0',
141
+ },
142
+ 0x010e => { # ImageDescription
143
+ Writable => 'string',
144
+ WriteGroup => 'IFD0',
145
+ },
146
+ 0x010f => { # Make
147
+ Writable => 'string',
148
+ WriteGroup => 'IFD0',
149
+ },
150
+ 0x0110 => { # Model
151
+ Writable => 'string',
152
+ WriteGroup => 'IFD0',
153
+ },
154
+ 0x0112 => { # Orientation
155
+ Writable => 'int16u',
156
+ WriteGroup => 'IFD0',
157
+ },
158
+ 0x0115 => { # SamplesPerPixel
159
+ Protected => 1,
160
+ Writable => 'int16u',
161
+ WriteGroup => 'IFD0',
162
+ },
163
+ 0x0116 => { # RowsPerStrip
164
+ Protected => 1,
165
+ Writable => 'int32u',
166
+ WriteGroup => 'IFD0',
167
+ },
168
+ 0x0118 => { # MinSampleValue
169
+ Writable => 'int16u',
170
+ WriteGroup => 'IFD0',
171
+ },
172
+ 0x0119 => { # MaxSampleValue
173
+ Writable => 'int16u',
174
+ WriteGroup => 'IFD0',
175
+ },
176
+ 0x011a => { # XResolution
177
+ Writable => 'rational64u',
178
+ WriteGroup => 'IFD0',
179
+ Mandatory => 1,
180
+ },
181
+ 0x011b => { # YResolution
182
+ Writable => 'rational64u',
183
+ WriteGroup => 'IFD0',
184
+ Mandatory => 1,
185
+ },
186
+ 0x011c => { # PlanarConfiguration
187
+ Protected => 1,
188
+ Writable => 'int16u',
189
+ WriteGroup => 'IFD0',
190
+ },
191
+ 0x011d => { # PageName
192
+ Writable => 'string',
193
+ WriteGroup => 'IFD0',
194
+ },
195
+ 0x011e => { # XPosition
196
+ Writable => 'rational64u',
197
+ WriteGroup => 'IFD0',
198
+ },
199
+ 0x011f => { # YPosition
200
+ Writable => 'rational64u',
201
+ WriteGroup => 'IFD0',
202
+ },
203
+ 0x0122 => { # GrayResponseUnit
204
+ Writable => 'int16u',
205
+ WriteGroup => 'IFD0',
206
+ },
207
+ 0x0128 => { # ResolutionUnit
208
+ Writable => 'int16u',
209
+ WriteGroup => 'IFD0',
210
+ Mandatory => 1,
211
+ },
212
+ 0x0129 => { # PageNumber
213
+ Writable => 'int16u',
214
+ WriteGroup => 'IFD0',
215
+ Count => 2,
216
+ },
217
+ 0x012d => { # TransferFunction
218
+ Protected => 1,
219
+ Writable => 'int16u',
220
+ WriteGroup => 'IFD0',
221
+ Count => 768,
222
+ },
223
+ 0x0131 => { # Software
224
+ Writable => 'string',
225
+ WriteGroup => 'IFD0',
226
+ },
227
+ 0x0132 => { # ModifyDate
228
+ Writable => 'string',
229
+ Shift => 'Time',
230
+ WriteGroup => 'IFD0',
231
+ PrintConvInv => '$self->InverseDateTime($val,0)',
232
+ },
233
+ 0x013b => { # Artist
234
+ Writable => 'string',
235
+ WriteGroup => 'IFD0',
236
+ },
237
+ 0x013c => { # HostComputer
238
+ Writable => 'string',
239
+ WriteGroup => 'IFD0',
240
+ },
241
+ 0x013d => { # Predictor
242
+ Protected => 1,
243
+ Writable => 'int16u',
244
+ WriteGroup => 'IFD0',
245
+ },
246
+ 0x013e => { # WhitePoint
247
+ Writable => 'rational64u',
248
+ WriteGroup => 'IFD0',
249
+ Count => 2,
250
+ },
251
+ 0x013f => { # PrimaryChromaticities
252
+ Writable => 'rational64u',
253
+ WriteGroup => 'IFD0',
254
+ Count => 6,
255
+ },
256
+ 0x0141 => { # HalftoneHints
257
+ Writable => 'int16u',
258
+ WriteGroup => 'IFD0',
259
+ Count => 2,
260
+ },
261
+ 0x0142 => { # TileWidth
262
+ Protected => 1,
263
+ Writable => 'int32u',
264
+ WriteGroup => 'IFD0',
265
+ },
266
+ 0x0143 => { # TileLength
267
+ Protected => 1,
268
+ Writable => 'int32u',
269
+ WriteGroup => 'IFD0',
270
+ },
271
+ 0x014c => { # InkSet
272
+ Writable => 'int16u',
273
+ WriteGroup => 'IFD0',
274
+ },
275
+ 0x0150 => { # TargetPrinter
276
+ Writable => 'string',
277
+ WriteGroup => 'IFD0',
278
+ },
279
+ 0x013c => { # HostComputer
280
+ Writable => 'string',
281
+ WriteGroup => 'IFD0',
282
+ },
283
+ 0x0211 => { # YCbCrCoefficients
284
+ Protected => 1,
285
+ Writable => 'rational64u',
286
+ WriteGroup => 'IFD0',
287
+ Count => 3,
288
+ },
289
+ 0x0212 => { # YCbCrSubSampling
290
+ Protected => 1,
291
+ Writable => 'int16u',
292
+ WriteGroup => 'IFD0',
293
+ Count => 2,
294
+ },
295
+ 0x0213 => { # YCbCrPositioning
296
+ Protected => 1,
297
+ Writable => 'int16u',
298
+ WriteGroup => 'IFD0',
299
+ Mandatory => 1,
300
+ },
301
+ 0x0214 => { # ReferenceBlackWhite
302
+ Writable => 'rational64u',
303
+ WriteGroup => 'IFD0',
304
+ Count => 6,
305
+ },
306
+ 0x1000 => { # RelatedImageFileFormat
307
+ Protected => 1,
308
+ Writable => 'string',
309
+ WriteGroup => 'InteropIFD',
310
+ },
311
+ 0x1001 => { # RelatedImageWidth
312
+ Protected => 1,
313
+ Writable => 'int16u',
314
+ WriteGroup => 'InteropIFD',
315
+ },
316
+ 0x1002 => { # RelatedImageHeight (more commonly RelatedImageLength)
317
+ Protected => 1,
318
+ Writable => 'int16u',
319
+ WriteGroup => 'InteropIFD',
320
+ },
321
+ 0x4746 => { # Rating (MicrosoftPhoto)
322
+ Writable => 'int16u',
323
+ WriteGroup => 'IFD0',
324
+ Avoid => 1,
325
+ },
326
+ 0x4749 => { # RatingPercent (MicrosoftPhoto)
327
+ Writable => 'int16u',
328
+ WriteGroup => 'IFD0',
329
+ Avoid => 1,
330
+ },
331
+ 0x828d => { # CFARepeatPatternDim
332
+ Protected => 1,
333
+ Writable => 'int16u',
334
+ WriteGroup => 'SubIFD',
335
+ Count => 2,
336
+ },
337
+ 0x828e => { # CFAPattern2
338
+ Protected => 1,
339
+ Writable => 'int8u',
340
+ WriteGroup => 'SubIFD',
341
+ Count => -1,
342
+ },
343
+ 0x8298 => { # Copyright
344
+ Writable => 'string',
345
+ WriteGroup => 'IFD0',
346
+ RawConvInv => '$val . "\0"',
347
+ PrintConvInv => sub {
348
+ my ($val, $self) = @_;
349
+ # encode if necessary
350
+ my $enc = $self->Options('CharsetEXIF');
351
+ $val = $self->Encode($val,$enc) if $enc and $val !~ /\0/;
352
+ if ($val =~ /(.*?)\s*[\n\r]+\s*(.*)/s) {
353
+ return $1 unless length $2;
354
+ # photographer copyright set to ' ' if it doesn't exist, according to spec.
355
+ return((length($1) ? $1 : ' ') . "\0" . $2);
356
+ }
357
+ return $val;
358
+ },
359
+ },
360
+ #
361
+ # Most of the tags below this belong in the ExifIFD...
362
+ #
363
+ 0x829a => { # ExposureTime
364
+ Writable => 'rational64u',
365
+ PrintConvInv => 'Image::ExifTool::Exif::ConvertFraction($val)',
366
+ },
367
+ 0x829d => { # FNumber
368
+ Writable => 'rational64u',
369
+ PrintConvInv => '$val',
370
+ },
371
+ 0x8546 => { # SEMInfo
372
+ Writable => 'string',
373
+ WriteGroup => 'IFD0',
374
+ },
375
+ 0x87af => { # GeoTiffDirectory
376
+ Writable => 'undef',
377
+ WriteGroup => 'IFD0',
378
+ # swap byte order if necessary
379
+ RawConvInv => q{
380
+ return $val if length $val < 2;
381
+ my $order = substr($val, -2);
382
+ return $val unless $order eq 'II' or $order eq 'MM';
383
+ $val = substr($val, 0, -2);
384
+ return $val if $order eq GetByteOrder();
385
+ return pack('v*',unpack('n*',$val));
386
+ },
387
+ },
388
+ 0x87b0 => { # GeoTiffDoubleParams
389
+ Writable => 'undef',
390
+ WriteGroup => 'IFD0',
391
+ # swap byte order if necessary
392
+ RawConvInv => q{
393
+ return $val if length $val < 2;
394
+ my $order = substr($val, -2);
395
+ return $val unless $order eq 'II' or $order eq 'MM';
396
+ $val = substr($val, 0, -2);
397
+ return $val if $order eq GetByteOrder();
398
+ $val =~ s/(.{4})(.{4})/$2$1/sg; # swap words
399
+ return pack('V*',unpack('N*',$val));
400
+ },
401
+ },
402
+ 0x87b1 => { # GeoTiffAsciiParams
403
+ Writable => 'string',
404
+ WriteGroup => 'IFD0',
405
+ },
406
+ 0x8822 => 'int16u', # ExposureProgram
407
+ 0x8824 => 'string', # SpectralSensitivity
408
+ 0x8827 => { # ISO
409
+ Writable => 'int16u',
410
+ Count => -1,
411
+ PrintConvInv => '$val=~tr/,//d; $val',
412
+ },
413
+ 0x882a => { # TimeZoneOffset
414
+ Writable => 'int16s',
415
+ Count => -1, # can be 1 or 2
416
+ Notes => q{
417
+ 1 or 2 values: 1. The time zone offset of DateTimeOriginal from GMT in
418
+ hours, 2. If present, the time zone offset of ModifyDate
419
+ },
420
+ },
421
+ 0x882b => 'int16u', # SelfTimerMode
422
+ 0x8830 => 'int16u', # SensitivityType
423
+ 0x8831 => 'int32u', # StandardOutputSensitivity
424
+ 0x8832 => 'int32u', # RecommendedExposureIndex
425
+ 0x8833 => 'int32u', # ISOSpeed
426
+ 0x8834 => 'int32u', # ISOSpeedLatitudeyyy
427
+ 0x8835 => 'int32u', # ISOSpeedLatitudezzz
428
+ 0x9000 => { # ExifVersion
429
+ Writable => 'undef',
430
+ Mandatory => 1,
431
+ PrintConvInv => '$val=~tr/.//d; $val=~/^\d{4}$/ ? $val : undef',
432
+ },
433
+ 0x9003 => { # DateTimeOriginal
434
+ Writable => 'string',
435
+ Shift => 'Time',
436
+ PrintConvInv => '$self->InverseDateTime($val,0)',
437
+ },
438
+ 0x9004 => { # CreateDate
439
+ Writable => 'string',
440
+ Shift => 'Time',
441
+ PrintConvInv => '$self->InverseDateTime($val,0)',
442
+ },
443
+ 0x9009 => 'undef', # GooglePlusUploadCode
444
+ 0x9101 => { # ComponentsConfiguration
445
+ Protected => 1,
446
+ Writable => 'undef',
447
+ Count => 4,
448
+ Mandatory => 1,
449
+ ValueConvInv => '$val=~tr/,//d; $val', # (so we can copy from XMP with -n)
450
+ },
451
+ 0x9102 => { # CompressedBitsPerPixel
452
+ Protected => 1,
453
+ Writable => 'rational64u',
454
+ },
455
+ 0x9201 => { # ShutterSpeedValue
456
+ Writable => 'rational64s',
457
+ ValueConvInv => '$val>0 ? -log($val)/log(2) : -100',
458
+ # do eval to convert things like '1/100'
459
+ PrintConvInv => 'Image::ExifTool::Exif::ConvertFraction($val)',
460
+ },
461
+ 0x9202 => { # ApertureValue
462
+ Writable => 'rational64u',
463
+ ValueConvInv => '$val>0 ? 2*log($val)/log(2) : 0',
464
+ PrintConvInv => '$val',
465
+ },
466
+ 0x9203 => 'rational64s',# BrightnessValue
467
+ 0x9204 => { # ExposureCompensation
468
+ Writable => 'rational64s',
469
+ # do eval to convert things like '+2/3'
470
+ PrintConvInv => 'Image::ExifTool::Exif::ConvertFraction($val)',
471
+ },
472
+ 0x9205 => { # MaxApertureValue
473
+ Writable => 'rational64u',
474
+ ValueConvInv => '$val>0 ? 2*log($val)/log(2) : 0',
475
+ PrintConvInv => '$val',
476
+ },
477
+ 0x9206 => { # SubjectDistance
478
+ Writable => 'rational64u',
479
+ PrintConvInv => '$val=~s/\s*m$//;$val',
480
+ },
481
+ 0x9207 => 'int16u', # MeteringMode
482
+ 0x9208 => 'int16u', # LightSource
483
+ 0x9209 => 'int16u', # Flash
484
+ 0x920a => { # FocalLength
485
+ Writable => 'rational64u',
486
+ PrintConvInv => '$val=~s/\s*mm$//;$val',
487
+ },
488
+ 0x9211 => 'int32u', # ImageNumber
489
+ 0x9212 => 'string', # SecurityClassification
490
+ 0x9213 => 'string', # ImageHistory
491
+ 0x9214 => { # SubjectArea
492
+ Writable => 'int16u',
493
+ Count => -1, # 2, 3 or 4 values
494
+ },
495
+ # 0x927c => 'undef', # MakerNotes
496
+ 0x9286 => { # UserComment
497
+ Writable => 'undef',
498
+ # (starts with "ASCII\0\0\0", "UNICODE\0", "JIS\0\0\0\0\0" or "\0\0\0\0\0\0\0\0")
499
+ RawConvInv => 'Image::ExifTool::Exif::EncodeExifText($self,$val)',
500
+ # SHOULD ADD SPECIAL LOGIC TO ALLOW CONDITIONAL OVERWRITE OF
501
+ # "UNKNOWN" VALUES FILLED WITH SPACES
502
+ },
503
+ 0x9290 => { # SubSecTime
504
+ Writable => 'string',
505
+ # extract fractional seconds from a full date/time value
506
+ ValueConvInv => '$val=~/^(\d+)\s*$/ ? $1 : ($val=~/\.(\d+)/ ? $1 : undef)',
507
+ },
508
+ 0x9291 => { # SubSecTimeOriginal
509
+ Writable => 'string',
510
+ ValueConvInv => '$val=~/^(\d+)\s*$/ ? $1 : ($val=~/\.(\d+)/ ? $1 : undef)',
511
+ },
512
+ 0x9292 => { # SubSecTimeDigitized
513
+ Writable => 'string',
514
+ ValueConvInv => '$val=~/^(\d+)\s*$/ ? $1 : ($val=~/\.(\d+)/ ? $1 : undef)',
515
+ },
516
+ 0x935c => { # ImageSourceData
517
+ Writable => 'undef',
518
+ WriteGroup => 'IFD0',
519
+ Protected => 1,
520
+ },
521
+ # 0x9928 => 'undef', # Opto-ElectricConversionFactor
522
+ 0x9c9b => { # XPTitle
523
+ Writable => 'int8u',
524
+ WriteGroup => 'IFD0',
525
+ Notes => q{
526
+ tags 0x9c9b-0x9c9f are used by Windows Explorer; special characters
527
+ in these values are converted to UTF-8 by default, or Windows Latin1
528
+ with the -L option. XPTitle is ignored by Windows Explorer if
529
+ ImageDescription exists
530
+ },
531
+ ValueConvInv => '$self->Encode($val,"UCS2","II") . "\0\0"',
532
+ },
533
+ 0x9c9c => { # XPComment
534
+ Writable => 'int8u',
535
+ WriteGroup => 'IFD0',
536
+ ValueConvInv => '$self->Encode($val,"UCS2","II") . "\0\0"',
537
+ },
538
+ 0x9c9d => { # XPAuthor
539
+ Writable => 'int8u',
540
+ WriteGroup => 'IFD0',
541
+ Notes => 'ignored by Windows Explorer if Artist exists',
542
+ ValueConvInv => '$self->Encode($val,"UCS2","II") . "\0\0"',
543
+ },
544
+ 0x9c9e => { # XPKeywords
545
+ Writable => 'int8u',
546
+ WriteGroup => 'IFD0',
547
+ ValueConvInv => '$self->Encode($val,"UCS2","II") . "\0\0"',
548
+ },
549
+ 0x9c9f => { # XPSubject
550
+ Writable => 'int8u',
551
+ WriteGroup => 'IFD0',
552
+ ValueConvInv => '$self->Encode($val,"UCS2","II") . "\0\0"',
553
+ },
554
+ 0xa000 => { # FlashpixVersion
555
+ Writable => 'undef',
556
+ Mandatory => 1,
557
+ PrintConvInv => '$val=~tr/.//d; $val=~/^\d{4}$/ ? $val : undef',
558
+ },
559
+ 0xa001 => { # ColorSpace
560
+ Writable => 'int16u',
561
+ Mandatory => 1,
562
+ },
563
+ 0xa002 => { # ExifImageWidth (could also be int32u)
564
+ Writable => 'int16u',
565
+ Mandatory => 1,
566
+ },
567
+ 0xa003 => { # ExifImageHeight (could also be int32u)
568
+ Writable => 'int16u',
569
+ Mandatory => 1,
570
+ },
571
+ 0xa004 => 'string', # RelatedSoundFile
572
+ 0xa20b => { # FlashEnergy
573
+ Writable => 'rational64u',
574
+ Count => -1, # 1 or 2 (ref 12)
575
+ },
576
+ # 0xa20c => 'undef', # SpatialFrequencyResponse
577
+ 0xa20e => 'rational64u',# FocalPlaneXResolution
578
+ 0xa20f => 'rational64u',# FocalPlaneYResolution
579
+ 0xa210 => 'int16u', # FocalPlaneResolutionUnit
580
+ 0xa214 => { # SubjectLocation
581
+ Writable => 'int16u',
582
+ Count => 2,
583
+ },
584
+ 0xa215 => 'rational64u',# ExposureIndex
585
+ 0xa217 => 'int16u', # SensingMethod
586
+ 0xa300 => { # FileSource
587
+ Writable => 'undef',
588
+ ValueConvInv => '($val=~/^\d+$/ and $val < 256) ? chr($val) : $val',
589
+ },
590
+ 0xa301 => { # SceneType
591
+ Writable => 'undef',
592
+ ValueConvInv => 'chr($val)',
593
+ },
594
+ 0xa302 => { # CFAPattern
595
+ Writable => 'undef',
596
+ RawConvInv => q{
597
+ my @a = split ' ', $val;
598
+ return $val if @a <= 2; # also accept binary data for backward compatibility
599
+ return pack(GetByteOrder() eq 'II' ? 'v2C*' : 'n2C*', @a);
600
+ },
601
+ PrintConvInv => 'Image::ExifTool::Exif::GetCFAPattern($val)',
602
+ },
603
+ 0xa401 => 'int16u', # CustomRendered
604
+ 0xa402 => 'int16u', # ExposureMode
605
+ 0xa403 => 'int16u', # WhiteBalance
606
+ 0xa404 => 'rational64u',# DigitalZoomRatio
607
+ 0xa405 => { # FocalLengthIn35mmFormat
608
+ Writable => 'int16u',
609
+ PrintConvInv => '$val=~s/\s*mm$//;$val',
610
+ },
611
+ 0xa406 => 'int16u', # SceneCaptureType
612
+ 0xa407 => 'int16u', # GainControl
613
+ 0xa408 => { # Contrast
614
+ Writable => 'int16u',
615
+ PrintConvInv => 'Image::ExifTool::Exif::ConvertParameter($val)',
616
+ },
617
+ 0xa409 => { # Saturation
618
+ Writable => 'int16u',
619
+ PrintConvInv => 'Image::ExifTool::Exif::ConvertParameter($val)',
620
+ },
621
+ 0xa40a => { # Sharpness
622
+ Writable => 'int16u',
623
+ PrintConvInv => 'Image::ExifTool::Exif::ConvertParameter($val)',
624
+ },
625
+ # 0xa40b => 'undef', # DeviceSettingDescription
626
+ 0xa40c => 'int16u', # SubjectDistanceRange
627
+ 0xa420 => 'string', # ImageUniqueID
628
+ 0xa430 => 'string', # OwnerName
629
+ 0xa431 => 'string', # SerialNumber
630
+ 0xa432 => { # LensInfo
631
+ Writable => 'rational64u',
632
+ Count => 4,
633
+ PrintConvInv => \&ConvertLensInfo,
634
+ },
635
+ 0xa433 => 'string', # LensMake
636
+ 0xa434 => 'string', # LensModel
637
+ 0xa435 => 'string', # LensSerialNumber
638
+ 0xa500 => 'rational64u',# Gamma
639
+ #
640
+ # DNG stuff (mostly in IFD0, "Raw IFD" in SubIFD)
641
+ #
642
+ 0xc612 => { # DNGVersion
643
+ Writable => 'int8u',
644
+ WriteGroup => 'IFD0',
645
+ Count => 4,
646
+ Protected => 1, # (confuses Apple Preview if written to a TIFF image)
647
+ PrintConvInv => '$val =~ tr/./ /; $val',
648
+ },
649
+ 0xc613 => { # DNGBackwardVersion
650
+ Writable => 'int8u',
651
+ WriteGroup => 'IFD0',
652
+ Count => 4,
653
+ Protected => 1,
654
+ PrintConvInv => '$val =~ tr/./ /; $val',
655
+ },
656
+ 0xc614 => { # UniqueCameraModel
657
+ Writable => 'string',
658
+ WriteGroup => 'IFD0',
659
+ },
660
+ 0xc615 => { # LocalizedCameraModel
661
+ Writable => 'string',
662
+ WriteGroup => 'IFD0',
663
+ PrintConvInv => '$val',
664
+ },
665
+ 0xc618 => { # LinearizationTable
666
+ Writable => 'int16u',
667
+ WriteGroup => 'SubIFD',
668
+ Count => -1,
669
+ Protected => 1,
670
+ },,
671
+ 0xc619 => { # BlackLevelRepeatDim
672
+ Writable => 'int16u',
673
+ WriteGroup => 'SubIFD',
674
+ Count => 2,
675
+ Protected => 1,
676
+ },
677
+ 0xc61a => { # BlackLevel
678
+ Writable => 'rational64u',
679
+ WriteGroup => 'SubIFD',
680
+ Count => -1,
681
+ Protected => 1,
682
+ },
683
+ 0xc61b => { # BlackLevelDeltaH
684
+ Writable => 'rational64s',
685
+ WriteGroup => 'SubIFD',
686
+ Count => -1,
687
+ Protected => 1,
688
+ },
689
+ 0xc61c => { # BlackLevelDeltaV
690
+ Writable => 'rational64s',
691
+ WriteGroup => 'SubIFD',
692
+ Count => -1,
693
+ Protected => 1,
694
+ },
695
+ 0xc61d => { # WhiteLevel
696
+ Writable => 'int32u',
697
+ WriteGroup => 'SubIFD',
698
+ Count => -1,
699
+ Protected => 1,
700
+ },
701
+ 0xc61e => { # DefaultScale
702
+ Writable => 'rational64u',
703
+ WriteGroup => 'SubIFD',
704
+ Count => 2,
705
+ Protected => 1,
706
+ },
707
+ 0xc61f => { # DefaultCropOrigin
708
+ Writable => 'int32u',
709
+ WriteGroup => 'SubIFD',
710
+ Count => 2,
711
+ Protected => 1,
712
+ },
713
+ 0xc620 => { # DefaultCropSize
714
+ Writable => 'int32u',
715
+ WriteGroup => 'SubIFD',
716
+ Count => 2,
717
+ Protected => 1,
718
+ },
719
+ 0xc621 => { # ColorMatrix1
720
+ Writable => 'rational64s',
721
+ WriteGroup => 'IFD0',
722
+ Count => -1,
723
+ Protected => 1,
724
+ },
725
+ 0xc622 => { # ColorMatrix2
726
+ Writable => 'rational64s',
727
+ WriteGroup => 'IFD0',
728
+ Count => -1,
729
+ Protected => 1,
730
+ },
731
+ 0xc623 => { # CameraCalibration1
732
+ Writable => 'rational64s',
733
+ WriteGroup => 'IFD0',
734
+ Count => -1,
735
+ Protected => 1,
736
+ },
737
+ 0xc624 => { # CameraCalibration2
738
+ Writable => 'rational64s',
739
+ WriteGroup => 'IFD0',
740
+ Count => -1,
741
+ Protected => 1,
742
+ },
743
+ 0xc625 => { # ReductionMatrix1
744
+ Writable => 'rational64s',
745
+ WriteGroup => 'IFD0',
746
+ Count => -1,
747
+ Protected => 1,
748
+ },
749
+ 0xc626 => { # ReductionMatrix2
750
+ Writable => 'rational64s',
751
+ WriteGroup => 'IFD0',
752
+ Count => -1,
753
+ Protected => 1,
754
+ },
755
+ 0xc627 => { # AnalogBalance
756
+ Writable => 'rational64u',
757
+ WriteGroup => 'IFD0',
758
+ Count => -1,
759
+ Protected => 1,
760
+ },
761
+ 0xc628 => { # AsShotNeutral
762
+ Writable => 'rational64u',
763
+ WriteGroup => 'IFD0',
764
+ Count => -1,
765
+ Protected => 1,
766
+ },
767
+ 0xc629 => { # AsShotWhiteXY
768
+ Writable => 'rational64u',
769
+ WriteGroup => 'IFD0',
770
+ Count => 2,
771
+ Protected => 1,
772
+ },
773
+ 0xc62a => { # BaselineExposure
774
+ Writable => 'rational64s',
775
+ WriteGroup => 'IFD0',
776
+ Protected => 1,
777
+ },
778
+ 0xc62b => { # BaselineNoise
779
+ Writable => 'rational64u',
780
+ WriteGroup => 'IFD0',
781
+ Protected => 1,
782
+ },
783
+ 0xc62c => { # BaselineSharpness
784
+ Writable => 'rational64u',
785
+ WriteGroup => 'IFD0',
786
+ Protected => 1,
787
+ },
788
+ 0xc62d => { # BayerGreenSplit
789
+ Writable => 'int32u',
790
+ WriteGroup => 'SubIFD',
791
+ Protected => 1,
792
+ },
793
+ 0xc62e => { # LinearResponseLimit
794
+ Writable => 'rational64u',
795
+ WriteGroup => 'IFD0',
796
+ Protected => 1,
797
+ },
798
+ 0xc62f => { # CameraSerialNumber
799
+ Writable => 'string',
800
+ WriteGroup => 'IFD0',
801
+ },
802
+ 0xc630 => { # DNGLensInfo
803
+ Writable => 'rational64u',
804
+ WriteGroup => 'IFD0',
805
+ Count => 4,
806
+ PrintConvInv => \&ConvertLensInfo,
807
+ },
808
+ 0xc631 => { # ChromaBlurRadius
809
+ Writable => 'rational64u',
810
+ WriteGroup => 'SubIFD',
811
+ Protected => 1,
812
+ },
813
+ 0xc632 => { # AntiAliasStrength
814
+ Writable => 'rational64u',
815
+ WriteGroup => 'SubIFD',
816
+ Protected => 1,
817
+ },
818
+ 0xc633 => { # ShadowScale
819
+ Writable => 'rational64u',
820
+ WriteGroup => 'IFD0',
821
+ Protected => 1,
822
+ },
823
+ 0xc635 => { # MakerNoteSafety
824
+ Writable => 'int16u',
825
+ WriteGroup => 'IFD0',
826
+ },
827
+ 0xc65a => { # CalibrationIlluminant1
828
+ Writable => 'int16u',
829
+ WriteGroup => 'IFD0',
830
+ Protected => 1,
831
+ },
832
+ 0xc65b => { # CalibrationIlluminant2
833
+ Writable => 'int16u',
834
+ WriteGroup => 'IFD0',
835
+ Protected => 1,
836
+ },
837
+ 0xc65c => { # BestQualityScale
838
+ Writable => 'rational64u',
839
+ WriteGroup => 'SubIFD',
840
+ Protected => 1,
841
+ },
842
+ 0xc65d => { # RawDataUniqueID
843
+ Writable => 'int8u',
844
+ WriteGroup => 'IFD0',
845
+ Count => 16,
846
+ Count => 16,
847
+ ValueConvInv => 'pack("H*", $val)',
848
+ Protected => 1,
849
+ },
850
+ 0xc68b => { # OriginalRawFileName
851
+ Writable => 'string',
852
+ WriteGroup => 'IFD0',
853
+ Protected => 1,
854
+ },
855
+ 0xc68d => { # ActiveArea
856
+ Writable => 'int32u',
857
+ WriteGroup => 'SubIFD',
858
+ Count => 4,
859
+ Protected => 1,
860
+ },
861
+ 0xc68e => { # MaskedAreas
862
+ Writable => 'int32u',
863
+ WriteGroup => 'SubIFD',
864
+ Count => 4,
865
+ Protected => 1,
866
+ },
867
+ 0xc68f => { # AsShotICCProfile (writable directory)
868
+ WriteGroup => 'IFD0',
869
+ Protected => 1,
870
+ WriteCheck => q{
871
+ require Image::ExifTool::ICC_Profile;
872
+ return Image::ExifTool::ICC_Profile::ValidateICC(\$val);
873
+ },
874
+ },
875
+ 0xc690 => { # AsShotPreProfileMatrix
876
+ Writable => 'rational64s',
877
+ WriteGroup => 'IFD0',
878
+ Count => -1,
879
+ Protected => 1,
880
+ },
881
+ 0xc691 => { # CurrentICCProfile (writable directory)
882
+ Writable => 'undef',
883
+ WriteGroup => 'IFD0',
884
+ Protected => 1,
885
+ WriteCheck => q{
886
+ require Image::ExifTool::ICC_Profile;
887
+ return Image::ExifTool::ICC_Profile::ValidateICC(\$val);
888
+ },
889
+ },
890
+ 0xc692 => { # CurrentPreProfileMatrix
891
+ Writable => 'rational64s',
892
+ WriteGroup => 'IFD0',
893
+ Count => -1,
894
+ Protected => 1,
895
+ },
896
+ 0xc6bf => { # ColorimetricReference
897
+ Writable => 'int16u',
898
+ WriteGroup => 'IFD0',
899
+ Protected => 1,
900
+ },
901
+ 0xc6d2 => { # PanasonicTitle (Panasonic DMC-TZ5, not a DNG tag)
902
+ Writable => 'undef',
903
+ WriteGroup => 'IFD0',
904
+ ValueConvInv => '$self->Encode($val,"UTF8")',
905
+ },
906
+ 0xc6d3 => { # PanasonicTitle2 (Panasonic DMC-FS7, not a DNG tag)
907
+ Writable => 'undef',
908
+ WriteGroup => 'IFD0',
909
+ ValueConvInv => '$self->Encode($val,"UTF8")',
910
+ },
911
+ 0xc6f3 => { # CameraCalibrationSig
912
+ Writable => 'string',
913
+ WriteGroup => 'IFD0',
914
+ Protected => 1,
915
+ },
916
+ 0xc6f4 => { # ProfileCalibrationSig
917
+ Writable => 'string',
918
+ WriteGroup => 'IFD0',
919
+ Protected => 1,
920
+ },
921
+ 0xc6f6 => { # AsShotProfileName
922
+ Writable => 'string',
923
+ WriteGroup => 'IFD0',
924
+ Protected => 1,
925
+ },
926
+ 0xc6f7 => { # NoiseReductionApplied
927
+ Writable => 'rational64u',
928
+ WriteGroup => 'SubIFD',
929
+ Protected => 1,
930
+ },
931
+ 0xc6f8 => { # ProfileName
932
+ Writable => 'string',
933
+ WriteGroup => 'IFD0',
934
+ Protected => 1,
935
+ },
936
+ 0xc6f9 => { # ProfileHueSatMapDims
937
+ Writable => 'int32u',
938
+ WriteGroup => 'IFD0',
939
+ Count => 3,
940
+ Protected => 1,
941
+ },
942
+ 0xc6fa => { # ProfileHueSatMapData1
943
+ Writable => 'float',
944
+ WriteGroup => 'IFD0',
945
+ Count => -1,
946
+ Protected => 1,
947
+ },
948
+ 0xc6fb => { # ProfileHueSatMapData2
949
+ Writable => 'float',
950
+ WriteGroup => 'IFD0',
951
+ Count => -1,
952
+ Protected => 1,
953
+ },
954
+ 0xc6fc => { # ProfileToneCurve
955
+ Writable => 'float',
956
+ WriteGroup => 'IFD0',
957
+ Count => -1,
958
+ Protected => 1,
959
+ },
960
+ 0xc6fd => { # ProfileEmbedPolicy
961
+ Writable => 'int32u',
962
+ WriteGroup => 'IFD0',
963
+ Protected => 1,
964
+ },
965
+ 0xc6fe => { # ProfileCopyright
966
+ Writable => 'string',
967
+ WriteGroup => 'IFD0',
968
+ Protected => 1,
969
+ },
970
+ 0xc714 => { # ForwardMatrix1
971
+ Writable => 'rational64s',
972
+ WriteGroup => 'IFD0',
973
+ Count => -1,
974
+ Protected => 1,
975
+ },
976
+ 0xc715 => { # ForwardMatrix2
977
+ Writable => 'rational64s',
978
+ WriteGroup => 'IFD0',
979
+ Count => -1,
980
+ Protected => 1,
981
+ },
982
+ 0xc716 => { # PreviewApplicationName
983
+ Writable => 'string',
984
+ WriteGroup => 'IFD0',
985
+ Protected => 1,
986
+ },
987
+ 0xc717 => { # PreviewApplicationVersion
988
+ Writable => 'string',
989
+ WriteGroup => 'IFD0',
990
+ Protected => 1,
991
+ },
992
+ 0xc718 => { # PreviewSettingsName
993
+ Writable => 'string',
994
+ WriteGroup => 'IFD0',
995
+ Protected => 1,
996
+ },
997
+ 0xc719 => { # PreviewSettingsDigest
998
+ Writable => 'int8u',
999
+ WriteGroup => 'IFD0',
1000
+ Protected => 1,
1001
+ ValueConvInv => 'pack("H*", $val)',
1002
+ },
1003
+ 0xc71a => { # PreviewColorSpace
1004
+ Writable => 'int32u',
1005
+ WriteGroup => 'IFD0',
1006
+ Protected => 1,
1007
+ PrintConv => {
1008
+ 0 => 'Unknown',
1009
+ 1 => 'Gray Gamma 2.2',
1010
+ 2 => 'sRGB',
1011
+ 3 => 'Adobe RGB',
1012
+ 4 => 'ProPhoto RGB',
1013
+ },
1014
+ },
1015
+ 0xc71b => { # PreviewDateTime
1016
+ Writable => 'string',
1017
+ WriteGroup => 'IFD0',
1018
+ Protected => 1,
1019
+ ValueConvInv => q{
1020
+ require Image::ExifTool::XMP;
1021
+ return Image::ExifTool::XMP::FormatXMPDate($val);
1022
+ },
1023
+ PrintConvInv => '$self->InverseDateTime($val,1,1)',
1024
+ },
1025
+ 0xc71c => { # RawImageDigest
1026
+ Writable => 'int8u',
1027
+ WriteGroup => 'IFD0',
1028
+ Count => 16,
1029
+ Protected => 1,
1030
+ ValueConvInv => 'pack("H*", $val)',
1031
+ },
1032
+ 0xc71d => { # OriginalRawFileDigest
1033
+ Writable => 'int8u',
1034
+ WriteGroup => 'IFD0',
1035
+ Count => 16,
1036
+ Protected => 1,
1037
+ ValueConvInv => 'pack("H*", $val)',
1038
+ },
1039
+ 0xc725 => { # ProfileLookTableDims
1040
+ Writable => 'int32u',
1041
+ WriteGroup => 'IFD0',
1042
+ Count => 3,
1043
+ Protected => 1,
1044
+ },
1045
+ 0xc726 => { # ProfileLookTableData
1046
+ Writable => 'float',
1047
+ WriteGroup => 'IFD0',
1048
+ Count => -1,
1049
+ Protected => 1,
1050
+ },
1051
+ 0xc761 => { # NoiseProfile
1052
+ Writable => 'double',
1053
+ WriteGroup => 'SubIFD',
1054
+ Count => -1,
1055
+ Protected => 1,
1056
+ },
1057
+ 0xc763 => { # TimeCodes
1058
+ Writable => 'int8u',
1059
+ WriteGroup => 'IFD0',
1060
+ Count => -1, # (8 * number of time codes, max 10)
1061
+ ValueConvInv => q{
1062
+ my @a = map hex, split /[. ]+/, $val;
1063
+ join ' ', @a;
1064
+ },
1065
+ PrintConvInv => q{
1066
+ my @a = split ' ', $val;
1067
+ my @v;
1068
+ foreach (@a) {
1069
+ my @td = reverse split /T/;
1070
+ my $tz = 0x39; # default to unknown timezone
1071
+ if ($td[0] =~ s/([-+])(\d+):(\d+)$//) {
1072
+ if ($3 == 0) {
1073
+ $tz = hex(($1 eq '-') ? $2 : 0x26 - $2);
1074
+ } elsif ($3 == 30) {
1075
+ if ($1 eq '-') {
1076
+ $tz = $2 + 0x0a;
1077
+ $tz += 0x0a if $tz > 0x0f;
1078
+ } else {
1079
+ $tz = 0x3f - $2;
1080
+ $tz -= 0x0a if $tz < 0x3a;
1081
+ }
1082
+ } elsif ($3 == 45) {
1083
+ $tz = 0x32 if $1 eq '+' and $2 == 12;
1084
+ }
1085
+ }
1086
+ my @t = split /[:.]/, $td[0];
1087
+ push @t, '00' while @t < 4;
1088
+ my $bg;
1089
+ if ($td[1]) {
1090
+ # date was specified: fill in date & timezone
1091
+ my @d = split /[-]/, $td[1];
1092
+ next if @d < 3;
1093
+ $bg = sprintf('.%.2d.%.2d.%.2d.%.2x', $d[2], $d[1], $d[0]%100, $tz);
1094
+ $t[0] = sprintf('%.2x', hex($t[0]) + 0xc0); # set BGF1+BGF2
1095
+ } else { # time only
1096
+ $bg = '.00.00.00.00';
1097
+ }
1098
+ push @v, join('.', reverse(@t[0..3])) . $bg;
1099
+ }
1100
+ join ' ', @v;
1101
+ },
1102
+ },
1103
+ 0xc764 => { # FrameRate
1104
+ Writable => 'rational64s',
1105
+ WriteGroup => 'IFD0',
1106
+ PrintConvInv => '$val',
1107
+ },
1108
+ 0xc772 => { # TStop
1109
+ Writable => 'rational64u',
1110
+ WriteGroup => 'IFD0',
1111
+ Count => -1, # (1 or 2)
1112
+ PrintConvInv => '$val=~tr/-/ /; $val',
1113
+ },
1114
+ 0xc789 => { # ReelName
1115
+ Writable => 'string',
1116
+ WriteGroup => 'IFD0',
1117
+ },
1118
+ 0xc791 => { # OriginalDefaultFinalSize
1119
+ Writable => 'int32u',
1120
+ WriteGroup => 'IFD0',
1121
+ Count => 2,
1122
+ Protected => 1,
1123
+ },
1124
+ 0xc792 => { # OriginalBestQualitySize
1125
+ Writable => 'int32u',
1126
+ WriteGroup => 'IFD0',
1127
+ Count => 2,
1128
+ Protected => 1,
1129
+ },
1130
+ 0xc793 => { # OriginalDefaultCropSize
1131
+ Writable => 'rational64u',
1132
+ WriteGroup => 'IFD0',
1133
+ Count => 2,
1134
+ Protected => 1,
1135
+ },
1136
+ 0xc7a1 => { # CameraLabel
1137
+ Writable => 'string',
1138
+ WriteGroup => 'IFD0',
1139
+ },
1140
+ 0xc7a3 => { # ProfileHueSatMapEncoding
1141
+ Writable => 'int32u',
1142
+ WriteGroup => 'IFD0',
1143
+ Protected => 1,
1144
+ },
1145
+ 0xc7a4 => { # ProfileLookTableEncoding
1146
+ Writable => 'int32u',
1147
+ WriteGroup => 'IFD0',
1148
+ Protected => 1,
1149
+ },
1150
+ 0xc7a5 => { # BaselineExposureOffset
1151
+ Writable => 'rational64s', # (incorrectly "RATIONAL" in DNG 1.4 spec)
1152
+ WriteGroup => 'IFD0',
1153
+ Protected => 1,
1154
+ },
1155
+ 0xc7a6 => { # DefaultBlackRender
1156
+ Writable => 'int32u',
1157
+ WriteGroup => 'IFD0',
1158
+ Protected => 1,
1159
+ },
1160
+ 0xc7a7 => { # NewRawImageDigest
1161
+ Writable => 'int8u',
1162
+ WriteGroup => 'IFD0',
1163
+ Count => 16,
1164
+ Protected => 1,
1165
+ ValueConvInv => 'pack("H*", $val)',
1166
+ },
1167
+ 0xc7a8 => { # RawToPreviewGain
1168
+ Writable => 'double',
1169
+ WriteGroup => 'IFD0',
1170
+ Protected => 1,
1171
+ },
1172
+ 0xc7b5 => { # DefaultUserCrop
1173
+ Writable => 'rational64u',
1174
+ WriteGroup => 'SubIFD',
1175
+ Count => 4,
1176
+ Protected => 1,
1177
+ },
1178
+ # --- end DNG tags ---
1179
+ 0xea1d => { # OffsetSchema
1180
+ Writable => 'int32s',
1181
+ },
1182
+ # tags produced by Photoshop Camera RAW
1183
+ # (avoid creating these tags unless there is no other option)
1184
+ 0xfde8 => {
1185
+ Name => 'OwnerName',
1186
+ Condition => '$$self{TIFF_TYPE} ne "DCR"', # (used for another purpose in Kodak DCR images)
1187
+ Avoid => 1,
1188
+ PSRaw => 1,
1189
+ Writable => 'string',
1190
+ ValueConv => '$val=~s/^.*: //;$val',
1191
+ ValueConvInv => q{"Owner's Name: $val"},
1192
+ Notes => q{
1193
+ tags 0xfde8-0xfdea and 0xfe4c-0xfe58 are generated by Photoshop Camera RAW.
1194
+ Some names are the same as other EXIF tags, but ExifTool will avoid writing
1195
+ these unless they already exist in the file
1196
+ },
1197
+ },
1198
+ 0xfde9 => {
1199
+ Name => 'SerialNumber',
1200
+ Condition => '$$self{TIFF_TYPE} ne "DCR"', # (used for another purpose in Kodak DCR SubIFD)
1201
+ Avoid => 1,
1202
+ PSRaw => 1,
1203
+ Writable => 'string',
1204
+ ValueConv => '$val=~s/^.*: //;$val',
1205
+ ValueConvInv => q{"Serial Number: $val"},
1206
+ },
1207
+ 0xfdea => {
1208
+ Name => 'Lens',
1209
+ Condition => '$$self{TIFF_TYPE} ne "DCR"', # (used for another purpose in Kodak DCR SubIFD)
1210
+ Avoid => 1,
1211
+ PSRaw => 1,
1212
+ Writable => 'string',
1213
+ ValueConv => '$val=~s/^.*: //;$val',
1214
+ ValueConvInv => q{"Lens: $val"},
1215
+ },
1216
+ 0xfe4c => {
1217
+ Name => 'RawFile',
1218
+ Avoid => 1,
1219
+ PSRaw => 1,
1220
+ Writable => 'string',
1221
+ ValueConv => '$val=~s/^.*: //;$val',
1222
+ ValueConvInv => q{"Raw File: $val"},
1223
+ },
1224
+ 0xfe4d => {
1225
+ Name => 'Converter',
1226
+ Avoid => 1,
1227
+ PSRaw => 1,
1228
+ Writable => 'string',
1229
+ ValueConv => '$val=~s/^.*: //;$val',
1230
+ ValueConvInv => q{"Converter: $val"},
1231
+ },
1232
+ 0xfe4e => {
1233
+ Name => 'WhiteBalance',
1234
+ Avoid => 1,
1235
+ PSRaw => 1,
1236
+ Writable => 'string',
1237
+ ValueConv => '$val=~s/^.*: //;$val',
1238
+ ValueConvInv => q{"White Balance: $val"},
1239
+ },
1240
+ 0xfe51 => {
1241
+ Name => 'Exposure',
1242
+ Avoid => 1,
1243
+ PSRaw => 1,
1244
+ Writable => 'string',
1245
+ ValueConv => '$val=~s/^.*: //;$val',
1246
+ ValueConvInv => q{"Exposure: $val"},
1247
+ },
1248
+ 0xfe52 => {
1249
+ Name => 'Shadows',
1250
+ Avoid => 1,
1251
+ PSRaw => 1,
1252
+ Writable => 'string',
1253
+ ValueConv => '$val=~s/^.*: //;$val',
1254
+ ValueConvInv => q{"Shadows: $val"},
1255
+ },
1256
+ 0xfe53 => {
1257
+ Name => 'Brightness',
1258
+ Avoid => 1,
1259
+ PSRaw => 1,
1260
+ Writable => 'string',
1261
+ ValueConv => '$val=~s/^.*: //;$val',
1262
+ ValueConvInv => q{"Brightness: $val"},
1263
+ },
1264
+ 0xfe54 => {
1265
+ Name => 'Contrast',
1266
+ Avoid => 1,
1267
+ PSRaw => 1,
1268
+ Writable => 'string',
1269
+ ValueConv => '$val=~s/^.*: //;$val',
1270
+ ValueConvInv => q{"Contrast: $val"},
1271
+ },
1272
+ 0xfe55 => {
1273
+ Name => 'Saturation',
1274
+ Avoid => 1,
1275
+ PSRaw => 1,
1276
+ Writable => 'string',
1277
+ ValueConv => '$val=~s/^.*: //;$val',
1278
+ ValueConvInv => q{"Saturation: $val"},
1279
+ },
1280
+ 0xfe56 => {
1281
+ Name => 'Sharpness',
1282
+ Avoid => 1,
1283
+ PSRaw => 1,
1284
+ Writable => 'string',
1285
+ ValueConv => '$val=~s/^.*: //;$val',
1286
+ ValueConvInv => q{"Sharpness: $val"},
1287
+ },
1288
+ 0xfe57 => {
1289
+ Name => 'Smoothness',
1290
+ Avoid => 1,
1291
+ PSRaw => 1,
1292
+ Writable => 'string',
1293
+ ValueConv => '$val=~s/^.*: //;$val',
1294
+ ValueConvInv => q{"Smoothness: $val"},
1295
+ },
1296
+ 0xfe58 => {
1297
+ Name => 'MoireFilter',
1298
+ Avoid => 1,
1299
+ PSRaw => 1,
1300
+ Writable => 'string',
1301
+ ValueConv => '$val=~s/^.*: //;$val',
1302
+ ValueConvInv => q{"Moire Filter: $val"},
1303
+ },
1304
+ );
1305
+
1306
+ # insert our writable properties into main EXIF tag table
1307
+ InsertWritableProperties(\%Image::ExifTool::Exif::Main, \%writeTable, \&CheckExif);
1308
+
1309
+ #------------------------------------------------------------------------------
1310
+ # Inverse print conversion for LensInfo
1311
+ # Inputs: 0) lens info string
1312
+ # Returns: PrintConvInv of string
1313
+ sub ConvertLensInfo($)
1314
+ {
1315
+ my $val = shift;
1316
+ my @a = GetLensInfo($val, 1); # (allow unknown "?" values)
1317
+ return @a ? join(' ', @a) : $val;
1318
+ }
1319
+
1320
+ #------------------------------------------------------------------------------
1321
+ # Get binary CFA Pattern from a text string
1322
+ # Inputs: Print-converted CFA pattern (eg. '[Blue,Green][Green,Red]')
1323
+ # Returns: CFA pattern as a string of numbers
1324
+ sub GetCFAPattern($)
1325
+ {
1326
+ my $val = shift;
1327
+ my @rows = split /\]\s*\[/, $val;
1328
+ @rows or warn("Rows not properly bracketed by '[]'\n"), return undef;
1329
+ my @cols = split /,/, $rows[0];
1330
+ @cols or warn("Colors not separated by ','\n"), return undef;
1331
+ my $ny = @cols;
1332
+ my @a = (scalar(@rows), scalar(@cols));
1333
+ my %cfaLookup = (red=>0, green=>1, blue=>2, cyan=>3, magenta=>4, yellow=>5, white=>6);
1334
+ my $row;
1335
+ foreach $row (@rows) {
1336
+ @cols = split /,/, $row;
1337
+ @cols == $ny or warn("Inconsistent number of colors in each row\n"), return undef;
1338
+ foreach (@cols) {
1339
+ tr/ \]\[//d; # remove remaining brackets and any spaces
1340
+ my $c = $cfaLookup{lc($_)};
1341
+ defined $c or warn("Unknown color '$_'\n"), return undef;
1342
+ push @a, $c;
1343
+ }
1344
+ }
1345
+ return "@a";
1346
+ }
1347
+
1348
+ #------------------------------------------------------------------------------
1349
+ # validate raw values for writing
1350
+ # Inputs: 0) ExifTool ref, 1) tagInfo hash ref, 2) raw value ref
1351
+ # Returns: error string or undef (and possibly changes value) on success
1352
+ sub CheckExif($$$)
1353
+ {
1354
+ my ($et, $tagInfo, $valPtr) = @_;
1355
+ my $format = $$tagInfo{Format} || $$tagInfo{Writable} || $$tagInfo{Table}{WRITABLE};
1356
+ if (not $format or $format eq '1') {
1357
+ if ($$tagInfo{Groups}{0} eq 'MakerNotes') {
1358
+ return undef; # OK to have no format for makernotes
1359
+ } else {
1360
+ return 'No writable format';
1361
+ }
1362
+ }
1363
+ return Image::ExifTool::CheckValue($valPtr, $format, $$tagInfo{Count});
1364
+ }
1365
+
1366
+ #------------------------------------------------------------------------------
1367
+ # encode exif ASCII/Unicode text from UTF8 or Latin
1368
+ # Inputs: 0) ExifTool ref, 1) text string
1369
+ # Returns: encoded string
1370
+ # Note: MUST be called Raw conversion time so the EXIF byte order is known!
1371
+ sub EncodeExifText($$)
1372
+ {
1373
+ my ($et, $val) = @_;
1374
+ # does the string contain special characters?
1375
+ if ($val =~ /[\x80-\xff]/) {
1376
+ my $order = $et->GetNewValues('ExifUnicodeByteOrder');
1377
+ return "UNICODE\0" . $et->Encode($val,'UTF16',$order);
1378
+ } else {
1379
+ return "ASCII\0\0\0$val";
1380
+ }
1381
+ }
1382
+
1383
+ #------------------------------------------------------------------------------
1384
+ # insert writable properties into main tag table
1385
+ # Inputs: 0) tag table ref, 1) reference to writable properties
1386
+ # 2) [optional] CHECK_PROC reference
1387
+ sub InsertWritableProperties($$;$)
1388
+ {
1389
+ my ($tagTablePtr, $writeTablePtr, $checkProc) = @_;
1390
+ my $tag;
1391
+ $checkProc and $$tagTablePtr{CHECK_PROC} = $checkProc;
1392
+ foreach $tag (keys %$writeTablePtr) {
1393
+ my $writeInfo = $$writeTablePtr{$tag};
1394
+ my @infoList = GetTagInfoList($tagTablePtr, $tag);
1395
+ if (@infoList) {
1396
+ my $tagInfo;
1397
+ foreach $tagInfo (@infoList) {
1398
+ if (ref $writeInfo) {
1399
+ my $key;
1400
+ foreach $key (keys %$writeInfo) {
1401
+ $$tagInfo{$key} = $$writeInfo{$key} unless defined $$tagInfo{$key};
1402
+ }
1403
+ } else {
1404
+ $$tagInfo{Writable} = $writeInfo unless defined $$tagInfo{Writable};
1405
+ }
1406
+ }
1407
+ } else {
1408
+ AddTagToTable($tagTablePtr, $tag, $writeInfo);
1409
+ }
1410
+ }
1411
+ }
1412
+
1413
+ #------------------------------------------------------------------------------
1414
+ # rebuild maker notes to properly contain all value data
1415
+ # (some manufacturers put value data outside maker notes!!)
1416
+ # Inputs: 0) ExifTool object ref, 1) tag table ref, 2) dirInfo ref
1417
+ # Returns: new maker note data (and creates MAKER_NOTE_FIXUP), or undef on error
1418
+ sub RebuildMakerNotes($$$)
1419
+ {
1420
+ my ($et, $tagTablePtr, $dirInfo) = @_;
1421
+ my $dirStart = $$dirInfo{DirStart};
1422
+ my $dirLen = $$dirInfo{DirLen};
1423
+ my $dataPt = $$dirInfo{DataPt};
1424
+ my $dataPos = $$dirInfo{DataPos} || 0;
1425
+ my $rtnValue;
1426
+ my %subdirInfo = %$dirInfo;
1427
+
1428
+ delete $$et{MAKER_NOTE_FIXUP};
1429
+
1430
+ # don't need to rebuild text, BinaryData or PreviewImage maker notes
1431
+ my $tagInfo = $$dirInfo{TagInfo};
1432
+ my $subdir = $$tagInfo{SubDirectory};
1433
+ my $proc = $$subdir{ProcessProc} || $$tagTablePtr{PROCESS_PROC} || \&ProcessExif;
1434
+ if (($proc ne \&ProcessExif and $$tagInfo{Name} =~ /Text/) or
1435
+ $proc eq \&Image::ExifTool::ProcessBinaryData or
1436
+ ($$tagInfo{PossiblePreview} and $dirLen > 6 and
1437
+ substr($$dataPt, $dirStart, 3) eq "\xff\xd8\xff"))
1438
+ {
1439
+ return substr($$dataPt, $dirStart, $dirLen);
1440
+ }
1441
+ my $saveOrder = GetByteOrder();
1442
+ my $loc = Image::ExifTool::MakerNotes::LocateIFD($et,\%subdirInfo);
1443
+ if (defined $loc) {
1444
+ my $makerFixup = $subdirInfo{Fixup} = new Image::ExifTool::Fixup;
1445
+ # create new exiftool object to rewrite the directory without changing it
1446
+ my $newTool = new Image::ExifTool;
1447
+ $newTool->Options(
1448
+ IgnoreMinorErrors => $$et{OPTIONS}{IgnoreMinorErrors},
1449
+ FixBase => $$et{OPTIONS}{FixBase},
1450
+ );
1451
+ $newTool->Init(); # must do this before calling WriteDirectory()!
1452
+ # don't copy over preview image
1453
+ $newTool->SetNewValue(PreviewImage => '');
1454
+ # copy all transient members over in case they are used for writing
1455
+ # (Make, Model, etc)
1456
+ foreach (grep /[a-z]/, keys %$et) {
1457
+ $$newTool{$_} = $$et{$_};
1458
+ }
1459
+ # fix base offsets if specified
1460
+ $newTool->Options(FixBase => $et->Options('FixBase'));
1461
+ # set GENERATE_PREVIEW_INFO flag so PREVIEW_INFO will be generated
1462
+ $$newTool{GENERATE_PREVIEW_INFO} = 1;
1463
+ # drop any large tags
1464
+ $$newTool{DROP_TAGS} = 1;
1465
+ # initialize other necessary data members
1466
+ $$newTool{FILE_TYPE} = $$et{FILE_TYPE};
1467
+ $$newTool{TIFF_TYPE} = $$et{TIFF_TYPE};
1468
+ # rewrite maker notes
1469
+ $rtnValue = $newTool->WriteDirectory(\%subdirInfo, $tagTablePtr);
1470
+ if (defined $rtnValue and length $rtnValue) {
1471
+ # add the dummy/empty preview image if necessary
1472
+ if ($$newTool{PREVIEW_INFO}) {
1473
+ $makerFixup->SetMarkerPointers(\$rtnValue, 'PreviewImage', length($rtnValue));
1474
+ $rtnValue .= $$newTool{PREVIEW_INFO}{Data};
1475
+ delete $$newTool{PREVIEW_INFO};
1476
+ }
1477
+ # add makernote header
1478
+ if ($loc) {
1479
+ my $hdr = substr($$dataPt, $dirStart, $loc);
1480
+ # special case: convert Pentax/Samsung DNG maker notes to JPEG style
1481
+ # (in JPEG, Pentax makernotes are absolute and start with "AOC\0" for some
1482
+ # models, but in DNG images they are stored in tag 0xc634 of IFD0 and
1483
+ # start with either "PENTAX \0" or "SAMSUNG\0")
1484
+ if ($$dirInfo{Parent} eq 'IFD0' and $hdr =~ /^(PENTAX |SAMSUNG)\0/) {
1485
+ # convert to JPEG-style AOC maker notes if used by this model
1486
+ # (Note: this expression also appears in Exif.pm)
1487
+ if ($$et{Model} =~ /\b(K(-[57mrx]|(10|20|100|110|200)D|2000)|GX(10|20))\b/) {
1488
+ $hdr =~ s/^(PENTAX |SAMSUNG)\0/AOC\0/;
1489
+ # save fixup because AOC maker notes have absolute offsets
1490
+ $$et{MAKER_NOTE_FIXUP} = $makerFixup;
1491
+ }
1492
+ }
1493
+ $rtnValue = $hdr . $rtnValue;
1494
+ # adjust fixup for shift in start position
1495
+ $$makerFixup{Start} += length $hdr;
1496
+ }
1497
+ # shift offsets according to original position of maker notes,
1498
+ # and relative to the makernotes Base
1499
+ $$makerFixup{Shift} += $dataPos + $dirStart +
1500
+ $$dirInfo{Base} - $subdirInfo{Base};
1501
+ # repair incorrect offsets if offsets were fixed
1502
+ $$makerFixup{Shift} += $subdirInfo{FixedBy} || 0;
1503
+ # fix up pointers to the specified offset
1504
+ $makerFixup->ApplyFixup(\$rtnValue);
1505
+ # save fixup information unless offsets were relative
1506
+ unless ($subdirInfo{Relative}) {
1507
+ # set shift so offsets are all relative to start of maker notes
1508
+ $$makerFixup{Shift} -= $dataPos + $dirStart;
1509
+ $$et{MAKER_NOTE_FIXUP} = $makerFixup; # save fixup for later
1510
+ }
1511
+ }
1512
+ }
1513
+ SetByteOrder($saveOrder);
1514
+
1515
+ return $rtnValue;
1516
+ }
1517
+
1518
+ #------------------------------------------------------------------------------
1519
+ # Sort IFD directory entries
1520
+ # Inputs: 0) data reference, 1) directory start, 2) number of entries,
1521
+ # 3) flag to treat 0 as a valid tag ID (as opposed to an empty IFD entry)
1522
+ sub SortIFD($$$;$)
1523
+ {
1524
+ my ($dataPt, $dirStart, $numEntries, $allowZero) = @_;
1525
+ my ($index, %entries);
1526
+ # split the directory into separate entries
1527
+ for ($index=0; $index<$numEntries; ++$index) {
1528
+ my $entry = $dirStart + 2 + 12 * $index;
1529
+ my $tagID = Get16u($dataPt, $entry);
1530
+ my $entryData = substr($$dataPt, $entry, 12);
1531
+ # silly software can pad directories with zero entries -- put these at the end
1532
+ $tagID = 0x10000 unless $tagID or $index == 0 or $allowZero;
1533
+ # add new entry (allow for duplicate tag ID's, which shouldn't normally happen)
1534
+ if ($entries{$tagID}) {
1535
+ $entries{$tagID} .= $entryData;
1536
+ } else {
1537
+ $entries{$tagID} = $entryData;
1538
+ }
1539
+ }
1540
+ # sort the directory entries
1541
+ my @sortedTags = sort { $a <=> $b } keys %entries;
1542
+ # generate the sorted IFD
1543
+ my $newDir = '';
1544
+ foreach (@sortedTags) {
1545
+ $newDir .= $entries{$_};
1546
+ }
1547
+ # replace original directory with new, sorted one
1548
+ substr($$dataPt, $dirStart + 2, 12 * $numEntries) = $newDir;
1549
+ }
1550
+
1551
+ #------------------------------------------------------------------------------
1552
+ # Validate IFD entries (strict validation to test possible chained IFD's)
1553
+ # Inputs: 0) dirInfo ref (must have RAF set), 1) optional DirStart
1554
+ # Returns: true if IFD looks OK
1555
+ sub ValidateIFD($;$)
1556
+ {
1557
+ my ($dirInfo, $dirStart) = @_;
1558
+ my $raf = $$dirInfo{RAF} or return 0;
1559
+ my $base = $$dirInfo{Base};
1560
+ $dirStart = $$dirInfo{DirStart} || 0 unless defined $dirStart;
1561
+ my $offset = $dirStart + ($$dirInfo{DataPos} || 0);
1562
+ my ($buff, $index);
1563
+ $raf->Seek($offset + $base, 0) and $raf->Read($buff,2) == 2 or return 0;
1564
+ my $numEntries = Get16u(\$buff,0);
1565
+ $numEntries > 1 and $numEntries < 64 or return 0;
1566
+ my $len = 12 * $numEntries;
1567
+ $raf->Read($buff, $len) == $len or return 0;
1568
+ my $lastID = -1;
1569
+ for ($index=0; $index<$numEntries; ++$index) {
1570
+ my $entry = 12 * $index;
1571
+ my $tagID = Get16u(\$buff, $entry);
1572
+ $tagID > $lastID or $$dirInfo{AllowOutOfOrderTags} or return 0;
1573
+ my $format = Get16u(\$buff, $entry+2);
1574
+ $format > 0 and $format <= 13 or return 0;
1575
+ my $count = Get32u(\$buff, $entry+4);
1576
+ $count > 0 or return 0;
1577
+ $lastID = $tagID;
1578
+ }
1579
+ return 1;
1580
+ }
1581
+
1582
+ #------------------------------------------------------------------------------
1583
+ # Get sorted list of offsets used in IFD
1584
+ # Inputs: 0) data ref, 1) directory start, 2) dataPos, 3) IFD entries, 4) tag table ref
1585
+ # Returns: 0) sorted list of offsets (only offsets after the end of the IFD)
1586
+ # 1) hash of list indices keyed by offset value
1587
+ # Notes: This is used in a patch to fix the count for tags in Kodak SubIFD3
1588
+ sub GetOffList($$$$$)
1589
+ {
1590
+ my ($dataPt, $dirStart, $dataPos, $numEntries, $tagTablePtr) = @_;
1591
+ my $ifdEnd = $dirStart + 2 + 12 * $numEntries + $dataPos;
1592
+ my ($index, $offset, %offHash);
1593
+ for ($index=0; $index<$numEntries; ++$index) {
1594
+ my $entry = $dirStart + 2 + 12 * $index;
1595
+ my $format = Get16u($dataPt, $entry + 2);
1596
+ next if $format < 1 or $format > 13;
1597
+ my $count = Get16u($dataPt, $entry + 4);
1598
+ my $size = $formatSize[$format] * $count;
1599
+ if ($size <= 4) {
1600
+ my $tagID = Get16u($dataPt, $entry);
1601
+ next unless ref $$tagTablePtr{$tagID} eq 'HASH' and $$tagTablePtr{$tagID}{FixCount};
1602
+ }
1603
+ my $offset = Get16u($dataPt, $entry + 8);
1604
+ $offHash{$offset} = 1 if $offset >= $ifdEnd;
1605
+ }
1606
+ # set offset hash values to indices in list
1607
+ my @offList = sort keys %offHash;
1608
+ $index = 0;
1609
+ foreach $offset (@offList) {
1610
+ $offHash{$offset} = $index++;
1611
+ }
1612
+ return(\@offList, \%offHash);
1613
+ }
1614
+
1615
+ #------------------------------------------------------------------------------
1616
+ # Update TIFF_END member if defined
1617
+ # Inputs: 0) ExifTool ref, 1) end of valid TIFF data
1618
+ sub UpdateTiffEnd($$)
1619
+ {
1620
+ my ($et, $end) = @_;
1621
+ if (defined $$et{TIFF_END} and
1622
+ $$et{TIFF_END} < $end)
1623
+ {
1624
+ $$et{TIFF_END} = $end;
1625
+ }
1626
+ }
1627
+
1628
+ #------------------------------------------------------------------------------
1629
+ # Handle error while writing EXIF
1630
+ # Inputs: 0) ExifTool ref, 1) error string, 2) tag table ref
1631
+ # Returns: undef on fatal error, or '' if minor error is ignored
1632
+ sub ExifErr($$$)
1633
+ {
1634
+ my ($et, $errStr, $tagTablePtr) = @_;
1635
+ # MakerNote errors are minor by default
1636
+ my $minor = ($$tagTablePtr{GROUPS}{0} eq 'MakerNotes');
1637
+ if ($$tagTablePtr{VARS} and $$tagTablePtr{VARS}{MINOR_ERRORS}) {
1638
+ $et->Warn("$errStr. IFD dropped.") and return '' if $minor;
1639
+ $minor = 1;
1640
+ }
1641
+ return undef if $et->Error($errStr, $minor);
1642
+ return '';
1643
+ }
1644
+
1645
+ #------------------------------------------------------------------------------
1646
+ # Read/Write IFD with TIFF-like header (used by DNG 1.2)
1647
+ # Inputs: 0) ExifTool object ref, 1) dirInfo ref, 2) tag table ref
1648
+ # Returns: Reading: 1 on success, otherwise returns 0 and sets a Warning
1649
+ # Writing: new data block or undef on error
1650
+ sub ProcessTiffIFD($$$)
1651
+ {
1652
+ my ($et, $dirInfo, $tagTablePtr) = @_;
1653
+ $et or return 1; # allow dummy access
1654
+ my $raf = $$dirInfo{RAF};
1655
+ my $base = $$dirInfo{Base} || 0;
1656
+ my $dirName = $$dirInfo{DirName};
1657
+ my $magic = $$dirInfo{Subdir}{Magic} || 0x002a;
1658
+ my $buff;
1659
+
1660
+ # structured with a TIFF-like header and relative offsets
1661
+ $raf->Seek($base, 0) and $raf->Read($buff, 8) == 8 or return 0;
1662
+ unless (SetByteOrder(substr($buff,0,2)) and Get16u(\$buff, 2) == $magic) {
1663
+ my $msg = "Invalid $dirName header";
1664
+ if ($$dirInfo{IsWriting}) {
1665
+ $et->Error($msg);
1666
+ return undef;
1667
+ } else {
1668
+ $et->Warn($msg);
1669
+ return 0;
1670
+ }
1671
+ }
1672
+ my $offset = Get32u(\$buff, 4);
1673
+ my %dirInfo = (
1674
+ DirName => $$dirInfo{DirName},
1675
+ Parent => $$dirInfo{Parent},
1676
+ Base => $base,
1677
+ DataPt => \$buff,
1678
+ DataLen => length $buff,
1679
+ DataPos => 0,
1680
+ DirStart => $offset,
1681
+ DirLen => length($buff) - $offset,
1682
+ RAF => $raf,
1683
+ NewDataPos => 8,
1684
+ );
1685
+ if ($$dirInfo{IsWriting}) {
1686
+ # rewrite the Camera Profile IFD
1687
+ my $newDir = WriteExif($et, \%dirInfo, $tagTablePtr);
1688
+ # don't add header if error writing directory ($newDir is undef)
1689
+ # or if directory is being deleted ($newDir is empty)
1690
+ return $newDir unless $newDir;
1691
+ # return directory with TIFF-like header
1692
+ return GetByteOrder() . Set16u($magic) . Set32u(8) . $newDir;
1693
+ }
1694
+ if ($$et{HTML_DUMP}) {
1695
+ my $tip = sprintf("Byte order: %s endian\nIdentifier: 0x%.4x\n%s offset: 0x%.4x",
1696
+ (GetByteOrder() eq 'II') ? 'Little' : 'Big', $magic, $dirName, $offset);
1697
+ $et->HDump($base, 8, "$dirName header", $tip, 0);
1698
+ }
1699
+ return ProcessExif($et, \%dirInfo, $tagTablePtr);
1700
+ }
1701
+
1702
+ #------------------------------------------------------------------------------
1703
+ # Write EXIF directory
1704
+ # Inputs: 0) ExifTool object ref, 1) source dirInfo ref, 2) tag table ref
1705
+ # Returns: Exif data block (may be empty if no Exif data) or undef on error
1706
+ # Notes: Increments ExifTool CHANGED flag for each tag changed. Also updates
1707
+ # TIFF_END if defined with location of end of original TIFF image.
1708
+ # Returns IFD data in the following order:
1709
+ # 1. IFD0 directory followed by its data
1710
+ # 2. SubIFD directory followed by its data, thumbnail and image
1711
+ # 3. GlobalParameters, EXIF, GPS, Interop IFD's each with their data
1712
+ # 4. IFD1,IFD2,... directories each followed by their data
1713
+ # 5. Thumbnail and/or image data for each IFD, with IFD0 image last
1714
+ sub WriteExif($$$)
1715
+ {
1716
+ my ($et, $dirInfo, $tagTablePtr) = @_;
1717
+ $et or return 1; # allow dummy access to autoload this package
1718
+ my $origDirInfo = $dirInfo; # save original dirInfo
1719
+ my $dataPt = $$dirInfo{DataPt};
1720
+ unless ($dataPt) {
1721
+ my $emptyData = '';
1722
+ $dataPt = \$emptyData;
1723
+ }
1724
+ my $dataPos = $$dirInfo{DataPos} || 0;
1725
+ my $dirStart = $$dirInfo{DirStart} || 0;
1726
+ my $dataLen = $$dirInfo{DataLen} || length($$dataPt);
1727
+ my $dirLen = $$dirInfo{DirLen} || ($dataLen - $dirStart);
1728
+ my $base = $$dirInfo{Base} || 0;
1729
+ my $firstBase = $base;
1730
+ my $raf = $$dirInfo{RAF};
1731
+ my $dirName = $$dirInfo{DirName} || 'unknown';
1732
+ my $fixup = $$dirInfo{Fixup} || new Image::ExifTool::Fixup;
1733
+ my $imageDataFlag = $$dirInfo{ImageData} || '';
1734
+ my $verbose = $et->Options('Verbose');
1735
+ my $out = $et->Options('TextOut');
1736
+ my ($nextIfdPos, %offsetData, $inMakerNotes);
1737
+ my (@offsetInfo, %xDelete, $strEnc);
1738
+ my $deleteAll = 0;
1739
+ my $newData = ''; # initialize buffer to receive new directory data
1740
+ my @imageData; # image data blocks to copy later if requested
1741
+ my $name = $$dirInfo{Name};
1742
+ $name = $dirName unless $name and $dirName eq 'MakerNotes' and $name !~ /^MakerNote/;
1743
+
1744
+ # set encoding for strings
1745
+ $strEnc = $et->Options('CharsetEXIF') if $$tagTablePtr{GROUPS}{0} eq 'EXIF';
1746
+
1747
+ # allow multiple IFD's in IFD0-IFD1-IFD2... chain
1748
+ $$dirInfo{Multi} = 1 if $dirName =~ /^(IFD0|SubIFD)$/ and not defined $$dirInfo{Multi};
1749
+ $inMakerNotes = 1 if $$tagTablePtr{GROUPS}{0} eq 'MakerNotes';
1750
+ my $ifd;
1751
+ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1752
+ # loop through each IFD
1753
+ #
1754
+ for ($ifd=0; ; ++$ifd) { # loop through multiple IFD's
1755
+
1756
+ # save pointer to start of this IFD within the newData
1757
+ my $newStart = length($newData);
1758
+ my @subdirs; # list of subdirectory data and tag table pointers
1759
+ # determine if directory is contained within our data
1760
+ my $mustRead;
1761
+ if ($dirStart < 0 or $dirStart > $dataLen-2) {
1762
+ $mustRead = 1;
1763
+ } elsif ($dirLen > 2) {
1764
+ my $len = 2 + 12 * Get16u($dataPt, $dirStart);
1765
+ $mustRead = 1 if $dirStart + $len > $dataLen;
1766
+ }
1767
+ # read IFD from file if necessary
1768
+ if ($mustRead) {
1769
+ if ($raf) {
1770
+ # read the count of entries in this IFD
1771
+ my $offset = $dirStart + $dataPos;
1772
+ my ($buff, $buf2);
1773
+ unless ($raf->Seek($offset + $base, 0) and $raf->Read($buff,2) == 2) {
1774
+ return ExifErr($et, "Bad IFD or truncated file in $name", $tagTablePtr);
1775
+ }
1776
+ my $len = 12 * Get16u(\$buff,0);
1777
+ # (also read next IFD pointer if available)
1778
+ unless ($raf->Read($buf2, $len+4) >= $len) {
1779
+ return ExifErr($et, "Error reading $name", $tagTablePtr);
1780
+ }
1781
+ $buff .= $buf2;
1782
+ # make copy of dirInfo since we're going to modify it
1783
+ my %newDirInfo = %$dirInfo;
1784
+ $dirInfo = \%newDirInfo;
1785
+ # update directory parameters for the newly loaded IFD
1786
+ $dataPt = $$dirInfo{DataPt} = \$buff;
1787
+ $dirStart = $$dirInfo{DirStart} = 0;
1788
+ $dataPos = $$dirInfo{DataPos} = $offset;
1789
+ $dataLen = $$dirInfo{DataLen} = length $buff;
1790
+ $dirLen = $$dirInfo{DirLen} = $dataLen;
1791
+ # only account for nextIFD pointer if we are going to use it
1792
+ $len += 4 if $dataLen==$len+6 and ($$dirInfo{Multi} or $buff =~ /\0{4}$/);
1793
+ UpdateTiffEnd($et, $offset+$base+2+$len);
1794
+ } elsif ($dirLen) {
1795
+ # error if we can't load IFD (unless we are creating
1796
+ # from scratch, in which case dirLen will be zero)
1797
+ my $str = $et->Options('IgnoreMinorErrors') ? 'Deleted bad' : 'Bad';
1798
+ $et->Error("$str $name directory", 1);
1799
+ }
1800
+ }
1801
+ my ($index, $dirEnd, $numEntries);
1802
+ if ($dirStart + 4 < $dataLen) {
1803
+ $numEntries = Get16u($dataPt, $dirStart);
1804
+ $dirEnd = $dirStart + 2 + 12 * $numEntries;
1805
+ if ($dirEnd > $dataLen) {
1806
+ return ExifErr($et, "Truncated $name directory", $tagTablePtr);
1807
+ }
1808
+ # sort entries if necessary (but not in maker notes IFDs)
1809
+ unless ($inMakerNotes) {
1810
+ my $lastID = -1;
1811
+ for ($index=0; $index<$numEntries; ++$index) {
1812
+ my $tagID = Get16u($dataPt, $dirStart + 2 + 12 * $index);
1813
+ # check for proper sequence (but ignore null entries at end)
1814
+ if ($tagID < $lastID and ($tagID or $$tagTablePtr{0})) {
1815
+ SortIFD($dataPt, $dirStart, $numEntries, $$tagTablePtr{0});
1816
+ $et->Warn("Entries in $name were out of sequence. Fixed.",1);
1817
+ last;
1818
+ }
1819
+ $lastID = $tagID;
1820
+ }
1821
+ }
1822
+ } else {
1823
+ $numEntries = 0;
1824
+ $dirEnd = $dirStart;
1825
+ }
1826
+
1827
+ # loop through new values and accumulate all information for this IFD
1828
+ my (%set, %mayDelete, $tagInfo);
1829
+ my $wrongDir = $crossDelete{$dirName};
1830
+ foreach $tagInfo ($et->GetNewTagInfoList($tagTablePtr)) {
1831
+ my $tagID = $$tagInfo{TagID};
1832
+ # evaluate conditional lists now if necessary
1833
+ if (ref $$tagTablePtr{$tagID} eq 'ARRAY' or $$tagInfo{Condition}) {
1834
+ my $curInfo = $et->GetTagInfo($tagTablePtr, $tagID);
1835
+ if (defined $curInfo and not $curInfo) {
1836
+ # need value to evaluate the condition
1837
+ my ($val) = $et->GetNewValues($tagInfo);
1838
+ # must convert to binary for evaluating in Condition
1839
+ if ($$tagInfo{Format} and defined $val) {
1840
+ $val = WriteValue($val, $$tagInfo{Format}, $$tagInfo{Count});
1841
+ }
1842
+ if (defined $val) {
1843
+ my $fmt = $$tagInfo{Writable} || $$tagInfo{Format} || 'undef';
1844
+ my $cnt = $$tagInfo{Count} || 1;
1845
+ # always use old format/count for Condition in maker notes
1846
+ if ($inMakerNotes) {
1847
+ for ($index=0; $index<$numEntries; ++$index) {
1848
+ my $entry = $dirStart + 2 + 12 * $index;
1849
+ my $id = Get16u($dataPt, $entry);
1850
+ if ($id eq $tagID) {
1851
+ my $f = Get16u($dataPt, $entry + 2);
1852
+ if ($formatName[$f]) {
1853
+ $fmt = $formatName[$f];
1854
+ $cnt = Get32u($dataPt, $entry + 4);
1855
+ }
1856
+ last;
1857
+ }
1858
+ }
1859
+ }
1860
+ $curInfo = $et->GetTagInfo($tagTablePtr, $tagID, \$val, $fmt, $cnt);
1861
+ } else {
1862
+ # may want to delete this, but we need to see the value first
1863
+ $mayDelete{$tagID} = 1;
1864
+ }
1865
+ }
1866
+ # don't set this tag unless valid for the current condition
1867
+ next unless defined $curInfo and $curInfo eq $tagInfo;
1868
+ }
1869
+ if ($$tagInfo{WriteCondition}) {
1870
+ my $self = $et; # set $self to be used in eval
1871
+ #### eval WriteCondition ($self)
1872
+ unless (eval $$tagInfo{WriteCondition}) {
1873
+ $@ and warn $@;
1874
+ next;
1875
+ }
1876
+ }
1877
+ my $nvHash = $et->GetNewValueHash($tagInfo, $dirName);
1878
+ unless ($nvHash) {
1879
+ next unless $wrongDir;
1880
+ # delete stuff from the wrong directory if setting somewhere else
1881
+ $nvHash = $et->GetNewValueHash($tagInfo, $wrongDir);
1882
+ # don't cross delete if not overwriting
1883
+ next unless $et->IsOverwriting($nvHash);
1884
+ # don't cross delete if specifically deleting from the other directory
1885
+ # (Note: don't call GetValue() here because it shouldn't be called
1886
+ # if IsOverwriting returns < 0 -- eg. when shifting)
1887
+ next if not defined $$nvHash{Value} and $$nvHash{WantGroup} and
1888
+ lc($$nvHash{WantGroup}) eq lc($wrongDir);
1889
+ # remove this tag if found in this IFD
1890
+ $xDelete{$tagID} = 1;
1891
+ }
1892
+ if ($set{$tagID}) {
1893
+ # this tag is being set twice, which can happen if two Condition's
1894
+ # were true for this tag. Hopefully the only case where this can
1895
+ # happen is the MakerNotes tag since it may store two very different
1896
+ # types of information (MakerNotes and PreviewImage), but we want
1897
+ # to store the MakerNotes if both are available
1898
+ if ($tagID == 0x927c and $dirName =~ /^(ExifIFD|IFD0)$/) {
1899
+ next if $$tagInfo{Name} eq 'PreviewImage';
1900
+ } else {
1901
+ $et->Warn(sprintf("Multiple new values for $name tag 0x%.4x",$tagID));
1902
+ }
1903
+ }
1904
+ $set{$tagID} = $tagInfo;
1905
+ }
1906
+
1907
+ # fix base offsets (some cameras incorrectly write maker notes in IFD0)
1908
+ if ($dirName eq 'MakerNotes' and $$dirInfo{Parent} =~ /^(ExifIFD|IFD0)$/ and
1909
+ $$et{TIFF_TYPE} !~ /^(ARW|SR2)$/ and not $$et{LeicaTrailerPos} and
1910
+ Image::ExifTool::MakerNotes::FixBase($et, $dirInfo))
1911
+ {
1912
+ # update local variables from fixed values
1913
+ $base = $$dirInfo{Base};
1914
+ $dataPos = $$dirInfo{DataPos};
1915
+ }
1916
+
1917
+ # initialize variables to handle mandatory tags
1918
+ my $mandatory = $mandatory{$dirName};
1919
+ my ($allMandatory, $addMandatory);
1920
+ if ($mandatory) {
1921
+ # use X/Y resolution values from JFIF if available
1922
+ if ($dirName eq 'IFD0' and defined $$et{JFIFYResolution}) {
1923
+ my %ifd0Vals = %$mandatory;
1924
+ $ifd0Vals{0x011a} = $$et{JFIFXResolution};
1925
+ $ifd0Vals{0x011b} = $$et{JFIFYResolution};
1926
+ $ifd0Vals{0x0128} = $$et{JFIFResolutionUnit} + 1;
1927
+ $mandatory = \%ifd0Vals;
1928
+ }
1929
+ $allMandatory = $addMandatory = 0; # initialize to zero
1930
+ # add mandatory tags if creating a new directory
1931
+ unless ($numEntries) {
1932
+ foreach (keys %$mandatory) {
1933
+ $set{$_} or $set{$_} = $$tagTablePtr{$_};
1934
+ }
1935
+ }
1936
+ } else {
1937
+ undef $deleteAll; # don't remove directory (no mandatory entries)
1938
+ }
1939
+ my ($addDirs, @newTags);
1940
+ if ($inMakerNotes) {
1941
+ $addDirs = { }; # can't currently add new directories in MakerNotes
1942
+ # allow non-permanent makernotes tags to be added
1943
+ # (note: we may get into trouble if there are too many of these
1944
+ # because we allow out-of-order tags in MakerNote IFD's but our
1945
+ # logic to add new tags relies on ordered entries)
1946
+ foreach (keys %set) {
1947
+ my $perm = $set{$_}{Permanent};
1948
+ push @newTags, $_ if defined $perm and not $perm;
1949
+ }
1950
+ @newTags = sort { $a <=> $b } @newTags if @newTags > 1;
1951
+ } else {
1952
+ # get a hash of directories we will be writing in this one
1953
+ $addDirs = $et->GetAddDirHash($tagTablePtr, $dirName);
1954
+ # make a union of tags & dirs (can set whole dirs, like MakerNotes)
1955
+ my %allTags = ( %set, %$addDirs );
1956
+ # make sorted list of new tags to be added
1957
+ @newTags = sort { $a <=> $b } keys(%allTags);
1958
+ }
1959
+ my $dirBuff = ''; # buffer for directory data
1960
+ my $valBuff = ''; # buffer for value data
1961
+ my @valFixups; # list of fixups for offsets in valBuff
1962
+ # fixup for offsets in dirBuff
1963
+ my $dirFixup = new Image::ExifTool::Fixup;
1964
+ my $entryBasedFixup;
1965
+ my $lastTagID = -1;
1966
+ my ($oldInfo, $oldFormat, $oldFormName, $oldCount, $oldSize, $oldValue, $oldImageData);
1967
+ my ($readFormat, $readFormName, $readCount); # format for reading old value(s)
1968
+ my ($entry, $valueDataPt, $valueDataPos, $valueDataLen, $valuePtr, $valEnd);
1969
+ my ($offList, $offHash, $ignoreCount, $fixCount);
1970
+ my $oldID = -1;
1971
+ my $newID = -1;
1972
+
1973
+ # patch for Canon EOS 40D firmware 1.0.4 bug (incorrect directory counts)
1974
+ if ($inMakerNotes and $$et{Model} eq 'Canon EOS 40D') {
1975
+ my $fmt = Get16u($dataPt, $dirStart + 2 + 12 * ($numEntries - 1) + 2);
1976
+ if ($fmt < 1 or $fmt > 13) {
1977
+ # adjust the number of directory entries
1978
+ --$numEntries;
1979
+ $dirEnd -= 12;
1980
+ $ignoreCount = 1;
1981
+ }
1982
+ }
1983
+ #..............................................................................
1984
+ # loop through entries in new directory
1985
+ #
1986
+ $index = 0;
1987
+ Entry: for (;;) {
1988
+
1989
+ if (defined $oldID and $oldID == $newID) {
1990
+ #
1991
+ # read next entry from existing directory
1992
+ #
1993
+ if ($index < $numEntries) {
1994
+ $entry = $dirStart + 2 + 12 * $index;
1995
+ $oldID = Get16u($dataPt, $entry);
1996
+ $readFormat = $oldFormat = Get16u($dataPt, $entry+2);
1997
+ $readCount = $oldCount = Get32u($dataPt, $entry+4);
1998
+ undef $oldImageData;
1999
+ if ($oldFormat < 1 or $oldFormat > 13) {
2000
+ my $msg = "Bad format ($oldFormat) for $name entry $index";
2001
+ # patch to preserve invalid directory entries in SubIFD3 of
2002
+ # various Kodak Z-series cameras (Z812, Z1085IS, Z1275)
2003
+ # and some Sony cameras such as the DSC-P10
2004
+ if ($dirName eq 'MakerNotes' and (($$et{Make}=~/KODAK/i and
2005
+ $$dirInfo{Name} and $$dirInfo{Name} eq 'SubIFD3') or
2006
+ ($numEntries == 12 and $$et{Make} eq 'SONY' and $index >= 8)))
2007
+ {
2008
+ $dirBuff .= substr($$dataPt, $entry, 12);
2009
+ ++$index;
2010
+ $newID = $oldID; # we wrote this
2011
+ $et->Warn($msg, 1);
2012
+ next;
2013
+ }
2014
+ # don't write out null directory entry
2015
+ if ($oldFormat==0 and $index and $oldCount==0) {
2016
+ $ignoreCount = ($ignoreCount || 0) + 1;
2017
+ # must keep same directory size to avoid messing up our fixed offsets
2018
+ $dirBuff .= ("\0" x 12) if $$dirInfo{FixBase};
2019
+ ++$index;
2020
+ $newID = $oldID; # pretend we wrote this
2021
+ next;
2022
+ }
2023
+ return ExifErr($et, $msg, $tagTablePtr);
2024
+ }
2025
+ $readFormName = $oldFormName = $formatName[$oldFormat];
2026
+ $valueDataPt = $dataPt;
2027
+ $valueDataPos = $dataPos;
2028
+ $valueDataLen = $dataLen;
2029
+ $valuePtr = $entry + 8;
2030
+ # try direct method first for speed
2031
+ $oldInfo = $$tagTablePtr{$oldID};
2032
+ if (ref $oldInfo ne 'HASH' or $$oldInfo{Condition}) {
2033
+ # must get unknown tags too
2034
+ # (necessary so we don't miss a tag we want to Drop)
2035
+ my $unk = $et->Options(Unknown => 1);
2036
+ $oldInfo = $et->GetTagInfo($tagTablePtr, $oldID);
2037
+ $et->Options(Unknown => $unk);
2038
+ }
2039
+ # patch incorrect count in Kodak SubIFD3 tags
2040
+ if ($oldCount < 2 and $oldInfo and $$oldInfo{FixCount}) {
2041
+ $offList or ($offList, $offHash) = GetOffList($dataPt, $dirStart, $dataPos,
2042
+ $numEntries, $tagTablePtr);
2043
+ my $i = $$offHash{Get32u($dataPt, $valuePtr)};
2044
+ if (defined $i and $i < $#$offList) {
2045
+ $oldCount = int(($$offList[$i+1] - $$offList[$i]) / $formatSize[$oldFormat]);
2046
+ $fixCount = ($fixCount || 0) + 1 if $oldCount != $readCount;
2047
+ }
2048
+ }
2049
+ $oldSize = $oldCount * $formatSize[$oldFormat];
2050
+ my $readFromFile;
2051
+ if ($oldSize > 4) {
2052
+ $valuePtr = Get32u($dataPt, $valuePtr);
2053
+ # fix valuePtr if necessary
2054
+ if ($$dirInfo{FixOffsets}) {
2055
+ $valEnd or $valEnd = $dataPos + $dirStart + 2 + 12 * $numEntries + 4;
2056
+ my ($tagID, $size, $wFlag) = ($oldID, $oldSize, 1);
2057
+ #### eval FixOffsets ($valuePtr, $valEnd, $size, $tagID, $wFlag)
2058
+ eval $$dirInfo{FixOffsets};
2059
+ unless (defined $valuePtr) {
2060
+ unless ($$et{DROP_TAGS}) {
2061
+ my $tagStr = $oldInfo ? $$oldInfo{Name} : sprintf("tag 0x%.4x",$oldID);
2062
+ return undef if $et->Error("Bad $name offset for $tagStr", $inMakerNotes);
2063
+ }
2064
+ ++$index; $oldID = $newID; next; # drop this tag
2065
+ }
2066
+ }
2067
+ # offset shouldn't point into TIFF or IFD header
2068
+ my $suspect = ($valuePtr < 8);
2069
+ # convert offset to pointer in $$dataPt
2070
+ if ($$dirInfo{EntryBased} or (ref $$tagTablePtr{$oldID} eq 'HASH' and
2071
+ $$tagTablePtr{$oldID}{EntryBased}))
2072
+ {
2073
+ $valuePtr += $entry;
2074
+ } else {
2075
+ $valuePtr -= $dataPos;
2076
+ }
2077
+ # value shouldn't overlap our directory
2078
+ $suspect = 1 if $valuePtr < $dirEnd and $valuePtr+$oldSize > $dirStart;
2079
+ # get value by seeking in file if we are allowed
2080
+ if ($valuePtr < 0 or $valuePtr+$oldSize > $dataLen) {
2081
+ my ($pos, $tagStr, $invalidPreview, $tmpInfo, $leicaTrailer);
2082
+ if ($oldInfo) {
2083
+ $tagStr = $$oldInfo{Name};
2084
+ $leicaTrailer = $$oldInfo{LeicaTrailer};
2085
+ } elsif (defined $oldInfo) {
2086
+ $tmpInfo = $et->GetTagInfo($tagTablePtr, $oldID, \ '', $oldFormName, $oldCount);
2087
+ if ($tmpInfo) {
2088
+ $tagStr = $$tmpInfo{Name};
2089
+ $leicaTrailer = $$tmpInfo{LeicaTrailer};
2090
+ }
2091
+ }
2092
+ $tagStr or $tagStr = sprintf("tag 0x%.4x",$oldID);
2093
+ # allow PreviewImage to run outside EXIF segment in JPEG images
2094
+ if (not $raf) {
2095
+ if ($tagStr eq 'PreviewImage') {
2096
+ $raf = $$et{RAF};
2097
+ if ($raf) {
2098
+ $pos = $raf->Tell();
2099
+ if ($oldInfo and $$oldInfo{ChangeBase}) {
2100
+ # adjust base offset for this tag only
2101
+ #### eval ChangeBase ($dirStart,$dataPos)
2102
+ my $newBase = eval $$oldInfo{ChangeBase};
2103
+ $valuePtr += $newBase;
2104
+ }
2105
+ } else {
2106
+ $invalidPreview = 1;
2107
+ }
2108
+ } elsif ($leicaTrailer) {
2109
+ # save information about Leica makernote trailer
2110
+ $$et{LeicaTrailer} = {
2111
+ TagInfo => $oldInfo || $tmpInfo,
2112
+ Offset => $base + $valuePtr + $dataPos,
2113
+ Size => $oldSize,
2114
+ Fixup => new Image::ExifTool::Fixup,
2115
+ },
2116
+ $invalidPreview = 2;
2117
+ # remove SubDirectory to prevent processing (for now)
2118
+ my %copy = %{$oldInfo || $tmpInfo};
2119
+ delete $copy{SubDirectory};
2120
+ delete $copy{MakerNotes};
2121
+ $oldInfo = \%copy;
2122
+ }
2123
+ }
2124
+ if ($oldSize > BINARY_DATA_LIMIT and $$origDirInfo{ImageData} and
2125
+ (not defined $oldInfo or ($oldInfo and not $$oldInfo{SubDirectory})))
2126
+ {
2127
+ # copy huge data blocks later instead of loading into memory
2128
+ $oldValue = ''; # dummy empty value
2129
+ # copy this value later unless writing a new value
2130
+ unless ($set{$oldID}) {
2131
+ my $pad = $oldSize & 0x01 ? 1 : 0;
2132
+ # save block information to copy later (set directory offset later)
2133
+ $oldImageData = [$base+$valuePtr+$dataPos, $oldSize, $pad];
2134
+ }
2135
+ } elsif ($raf) {
2136
+ my $success = ($raf->Seek($base+$valuePtr+$dataPos, 0) and
2137
+ $raf->Read($oldValue, $oldSize) == $oldSize);
2138
+ if (defined $pos) {
2139
+ $raf->Seek($pos, 0);
2140
+ undef $raf;
2141
+ # (sony A700 has 32-byte header on PreviewImage)
2142
+ unless ($success and $oldValue =~ /^(\xff\xd8\xff|(.|.{33})\xd8\xff\xdb)/s) {
2143
+ $invalidPreview = 1;
2144
+ $success = 1; # continue writing directory anyway
2145
+ }
2146
+ }
2147
+ unless ($success) {
2148
+ return undef if $et->Error("Error reading value for $name entry $index", $inMakerNotes);
2149
+ ++$index; $oldID = $newID; next; # drop this tag
2150
+ }
2151
+ } elsif (not $invalidPreview) {
2152
+ return undef if $et->Error("Bad $name offset for $tagStr", $inMakerNotes);
2153
+ ++$index; $oldID = $newID; next; # drop this tag
2154
+ }
2155
+ if ($invalidPreview) {
2156
+ # set value for invalid preview
2157
+ if ($$et{FILE_TYPE} eq 'JPEG') {
2158
+ # define dummy value for preview (or Leica MakerNote) to write later
2159
+ # (value must be larger than 4 bytes to generate PREVIEW_INFO,
2160
+ # and an even number of bytes so it won't be padded)
2161
+ $oldValue = 'LOAD_PREVIEW';
2162
+ } else {
2163
+ $oldValue = 'none';
2164
+ $oldSize = length $oldValue;
2165
+ }
2166
+ $valuePtr = 0;
2167
+ } else {
2168
+ UpdateTiffEnd($et, $base+$valuePtr+$dataPos+$oldSize);
2169
+ }
2170
+ # update pointers for value just read from file
2171
+ $valueDataPt = \$oldValue;
2172
+ $valueDataPos = $valuePtr + $dataPos;
2173
+ $valueDataLen = $oldSize;
2174
+ $valuePtr = 0;
2175
+ $readFromFile = 1;
2176
+ }
2177
+ if ($suspect) {
2178
+ my $tagStr = $oldInfo ? $$oldInfo{Name} : sprintf('tag 0x%.4x', $oldID);
2179
+ my $str = "Suspicious $name offset for $tagStr";
2180
+ if ($inMakerNotes) {
2181
+ $et->Warn($str, 1);
2182
+ } else {
2183
+ return undef if $et->Error($str, 1);
2184
+ }
2185
+ }
2186
+ }
2187
+ # read value if we haven't already
2188
+ $oldValue = substr($$valueDataPt, $valuePtr, $oldSize) unless $readFromFile;
2189
+ # get tagInfo using value if necessary
2190
+ if (defined $oldInfo and not $oldInfo) {
2191
+ my $unk = $et->Options(Unknown => 1);
2192
+ $oldInfo = $et->GetTagInfo($tagTablePtr, $oldID, \$oldValue, $oldFormName, $oldCount);
2193
+ $et->Options(Unknown => $unk);
2194
+ # now that we have the value, we can resolve the Condition to finally
2195
+ # determine whether we want to delete this tag or not
2196
+ if ($mayDelete{$oldID} and $oldInfo and (not @newTags or $newTags[0] != $oldID)) {
2197
+ my $nvHash = $et->GetNewValueHash($oldInfo, $dirName);
2198
+ if (not $nvHash and $wrongDir) {
2199
+ # delete from wrong directory if necessary
2200
+ $nvHash = $et->GetNewValueHash($oldInfo, $wrongDir);
2201
+ $nvHash and $xDelete{$oldID} = 1;
2202
+ }
2203
+ if ($nvHash) {
2204
+ # we want to delete this tag after all, so insert it into our list
2205
+ $set{$oldID} = $oldInfo;
2206
+ unshift @newTags, $oldID;
2207
+ }
2208
+ }
2209
+ }
2210
+ # make sure we are handling the 'ifd' format properly
2211
+ if (($oldFormat == 13 or $oldFormat == 18) and
2212
+ (not $oldInfo or not $$oldInfo{SubIFD}))
2213
+ {
2214
+ my $str = sprintf('%s tag 0x%.4x IFD format not handled', $name, $oldID);
2215
+ $et->Error($str, $inMakerNotes);
2216
+ }
2217
+ # override format we use to read the value if specified
2218
+ if ($oldInfo) {
2219
+ # check for tags which must be integers
2220
+ if (($$oldInfo{IsOffset} or $$oldInfo{SubIFD}) and
2221
+ not $intFormat{$oldFormName})
2222
+ {
2223
+ $et->Error("Invalid format ($oldFormName) for $name $$oldInfo{Name}", $inMakerNotes);
2224
+ ++$index; $oldID = $newID; next; # drop this tag
2225
+ }
2226
+ if ($$oldInfo{Drop} and $$et{DROP_TAGS} and
2227
+ ($$oldInfo{Drop} == 1 or $$oldInfo{Drop} < $oldSize))
2228
+ {
2229
+ ++$index; $oldID = $newID; next; # drop this tag
2230
+ }
2231
+ if ($$oldInfo{Format}) {
2232
+ $readFormName = $$oldInfo{Format};
2233
+ $readFormat = $formatNumber{$readFormName};
2234
+ unless ($readFormat) {
2235
+ # we aren't reading in a standard EXIF format, so rewrite in old format
2236
+ $readFormName = $oldFormName;
2237
+ $readFormat = $oldFormat;
2238
+ }
2239
+ # adjust number of items to read if format size changed
2240
+ $readCount = $oldSize / $formatSize[$readFormat];
2241
+ }
2242
+ }
2243
+ if ($oldID <= $lastTagID and not $inMakerNotes) {
2244
+ my $str = $oldInfo ? "$$oldInfo{Name} tag" : sprintf('tag 0x%x',$oldID);
2245
+ if ($oldID == $lastTagID) {
2246
+ $et->Warn("Duplicate $str in $name");;
2247
+ } else {
2248
+ $et->Warn("\u$str out of sequence in $name");
2249
+ }
2250
+ }
2251
+ $lastTagID = $oldID;
2252
+ ++$index; # increment index for next time
2253
+ } else {
2254
+ undef $oldID; # no more existing entries
2255
+ }
2256
+ }
2257
+ #
2258
+ # write out all new tags, up to and including this one
2259
+ #
2260
+ $newID = $newTags[0];
2261
+ my $isNew; # -1=tag is old, 0=tag same as existing, 1=tag is new
2262
+ if (not defined $oldID) {
2263
+ last unless defined $newID;
2264
+ $isNew = 1;
2265
+ } elsif (not defined $newID) {
2266
+ # maker notes will have no new tags defined
2267
+ if ($set{$oldID}) {
2268
+ $newID = $oldID;
2269
+ $isNew = 0;
2270
+ } else {
2271
+ $isNew = -1;
2272
+ }
2273
+ } else {
2274
+ $isNew = $oldID <=> $newID;
2275
+ }
2276
+ my $newInfo = $oldInfo;
2277
+ my $newFormat = $oldFormat;
2278
+ my $newFormName = $oldFormName;
2279
+ my $newCount = $oldCount;
2280
+ my $ifdFormName;
2281
+ my $newValue;
2282
+ my $newValuePt = $isNew >= 0 ? \$newValue : \$oldValue;
2283
+ my $isOverwriting;
2284
+
2285
+ if ($isNew >= 0) {
2286
+ # add, edit or delete this tag
2287
+ shift @newTags; # remove from list
2288
+ if ($set{$newID}) {
2289
+ #
2290
+ # set the new tag value (or 'next' if deleting tag)
2291
+ #
2292
+ $newInfo = $set{$newID};
2293
+ $newCount = $$newInfo{Count};
2294
+ my ($val, $newVal, $n);
2295
+ my $nvHash = $et->GetNewValueHash($newInfo, $dirName);
2296
+ if ($isNew > 0) {
2297
+ # don't create new entry unless requested
2298
+ if ($nvHash) {
2299
+ next unless $$nvHash{IsCreating};
2300
+ if ($$newInfo{IsOverwriting}) {
2301
+ my $proc = $$newInfo{IsOverwriting};
2302
+ $isOverwriting = &$proc($et, $nvHash, $val, \$newVal);
2303
+ } else {
2304
+ $isOverwriting = $et->IsOverwriting($nvHash);
2305
+ }
2306
+ } else {
2307
+ next if $xDelete{$newID}; # don't create if cross deleting
2308
+ $newVal = $$mandatory{$newID}; # get value for mandatory tag
2309
+ $isOverwriting = 1;
2310
+ }
2311
+ # convert using new format
2312
+ if ($$newInfo{Format}) {
2313
+ $newFormName = $$newInfo{Format};
2314
+ # use Writable flag to specify IFD format code
2315
+ $ifdFormName = $$newInfo{Writable};
2316
+ } else {
2317
+ $newFormName = $$newInfo{Writable};
2318
+ unless ($newFormName) {
2319
+ warn("No format for $name $$newInfo{Name}\n");
2320
+ next;
2321
+ }
2322
+ }
2323
+ $newFormat = $formatNumber{$newFormName};
2324
+ } elsif ($nvHash or $xDelete{$newID}) {
2325
+ unless ($nvHash) {
2326
+ $nvHash = $et->GetNewValueHash($newInfo, $wrongDir);
2327
+ }
2328
+ # read value
2329
+ if (length $oldValue >= $oldSize) {
2330
+ $val = ReadValue(\$oldValue, 0, $readFormName, $readCount, $oldSize);
2331
+ } else {
2332
+ $val = '';
2333
+ }
2334
+ # determine write format (by default, use 'Writable' format)
2335
+ my $writable = $$newInfo{Writable};
2336
+ # (or use existing format if 'Writable' not specified)
2337
+ $writable = $oldFormName unless $writable and $writable ne '1';
2338
+ # (and override write format with 'Format' if specified)
2339
+ my $writeForm = $$newInfo{Format} || $writable;
2340
+ if ($writeForm ne $newFormName) {
2341
+ # write in specified format
2342
+ $newFormName = $writeForm;
2343
+ $newFormat = $formatNumber{$newFormName};
2344
+ # use different IFD format code if necessary
2345
+ if ($inMakerNotes) {
2346
+ # always preserve IFD format in maker notes
2347
+ $ifdFormName = $oldFormName;
2348
+ } elsif ($writable ne $newFormName) {
2349
+ # use specified IFD format
2350
+ $ifdFormName = $writable;
2351
+ }
2352
+ }
2353
+ if ($inMakerNotes and $readFormName ne 'string' and $readFormName ne 'undef') {
2354
+ # keep same size in maker notes unless string or binary
2355
+ $newCount = $oldCount * $formatSize[$oldFormat] / $formatSize[$newFormat];
2356
+ }
2357
+ if ($$newInfo{IsOverwriting}) {
2358
+ my $proc = $$newInfo{IsOverwriting};
2359
+ $isOverwriting = &$proc($et, $nvHash, $val, \$newVal);
2360
+ } else {
2361
+ $isOverwriting = $et->IsOverwriting($nvHash, $val);
2362
+ }
2363
+ }
2364
+ if ($isOverwriting) {
2365
+ $newVal = $et->GetNewValues($nvHash) unless defined $newVal;
2366
+ # value undefined if deleting this tag
2367
+ # (also delete tag if cross-deleting and this isn't a date/time shift)
2368
+ if (not defined $newVal or ($xDelete{$newID} and not defined $$nvHash{Shift})) {
2369
+ if ($$newInfo{RawConvInv} and defined $$nvHash{Value}) {
2370
+ # error in RawConvInv, so rewrite existing tag
2371
+ goto NoOverwrite; # GOTO!
2372
+ }
2373
+ unless ($isNew) {
2374
+ ++$$et{CHANGED};
2375
+ $et->VerboseValue("- $dirName:$$newInfo{Name}", $val);
2376
+ }
2377
+ next;
2378
+ }
2379
+ if ($newCount and $newCount < 0) {
2380
+ # set count to number of values if variable
2381
+ my @vals = split ' ',$newVal;
2382
+ $newCount = @vals;
2383
+ }
2384
+ # convert to binary format
2385
+ $newValue = WriteValue($newVal, $newFormName, $newCount);
2386
+ unless (defined $newValue) {
2387
+ $et->Warn("Invalid value for $dirName:$$newInfo{Name}");
2388
+ goto NoOverwrite; # GOTO!
2389
+ }
2390
+ if (length $newValue) {
2391
+ # limit maximum value length in JPEG images
2392
+ # (max segment size is 65533 bytes and the min EXIF size is 96 incl an additional IFD entry)
2393
+ if ($$et{FILE_TYPE} eq 'JPEG' and length($newValue) > 65436 and
2394
+ $$newInfo{Name} ne 'PreviewImage')
2395
+ {
2396
+ my $name = $$newInfo{MakerNotes} ? 'MakerNotes' : $$newInfo{Name};
2397
+ $et->Warn("$name too large to write in JPEG segment");
2398
+ goto NoOverwrite; # GOTO!
2399
+ }
2400
+ # re-code if necessary
2401
+ if ($strEnc and $newFormName eq 'string') {
2402
+ $newValue = $et->Encode($newValue, $strEnc);
2403
+ }
2404
+ } else {
2405
+ $et->Warn("Can't write zero length $$newInfo{Name} in $$tagTablePtr{GROUPS}{1}");
2406
+ goto NoOverwrite; # GOTO!
2407
+ }
2408
+ if ($isNew >= 0) {
2409
+ $newCount = length($newValue) / $formatSize[$newFormat];
2410
+ ++$$et{CHANGED};
2411
+ if (defined $allMandatory) {
2412
+ # not all mandatory if we are writing any tag specifically
2413
+ if ($nvHash) {
2414
+ undef $allMandatory;
2415
+ undef $deleteAll;
2416
+ } else {
2417
+ ++$addMandatory; # count mandatory tags that we added
2418
+ }
2419
+ }
2420
+ if ($verbose > 1) {
2421
+ $et->VerboseValue("- $dirName:$$newInfo{Name}", $val) unless $isNew;
2422
+ my $str = $nvHash ? '' : ' (mandatory)';
2423
+ $et->VerboseValue("+ $dirName:$$newInfo{Name}", $newVal, $str);
2424
+ }
2425
+ }
2426
+ } else {
2427
+ NoOverwrite: next if $isNew > 0;
2428
+ $isNew = -1; # rewrite existing tag
2429
+ }
2430
+ # set format for EXIF IFD if different than conversion format
2431
+ if ($ifdFormName) {
2432
+ $newFormName = $ifdFormName;
2433
+ $newFormat = $formatNumber{$newFormName};
2434
+ }
2435
+
2436
+ } elsif ($isNew > 0) {
2437
+ #
2438
+ # create new subdirectory
2439
+ #
2440
+ # newInfo may not be defined if we try to add a mandatory tag
2441
+ # to a directory that doesn't support it (eg. IFD1 in RW2 images)
2442
+ $newInfo = $$addDirs{$newID} or next;
2443
+ # make sure we don't try to generate a new MakerNotes directory
2444
+ # or a SubIFD
2445
+ next if $$newInfo{MakerNotes} or $$newInfo{Name} eq 'SubIFD';
2446
+ my $subTable;
2447
+ if ($$newInfo{SubDirectory}{TagTable}) {
2448
+ $subTable = Image::ExifTool::GetTagTable($$newInfo{SubDirectory}{TagTable});
2449
+ } else {
2450
+ $subTable = $tagTablePtr;
2451
+ }
2452
+ # create empty source directory
2453
+ my %sourceDir = (
2454
+ Parent => $dirName,
2455
+ Fixup => new Image::ExifTool::Fixup,
2456
+ );
2457
+ $sourceDir{DirName} = $$newInfo{Groups}{1} if $$newInfo{SubIFD};
2458
+ $newValue = $et->WriteDirectory(\%sourceDir, $subTable);
2459
+ # only add new directory if it isn't empty
2460
+ next unless defined $newValue and length($newValue);
2461
+ # set the fixup start location
2462
+ if ($$newInfo{SubIFD}) {
2463
+ # subdirectory is referenced by an offset in value buffer
2464
+ my $subdir = $newValue;
2465
+ $newValue = Set32u(0xfeedf00d);
2466
+ push @subdirs, {
2467
+ DataPt => \$subdir,
2468
+ Table => $subTable,
2469
+ Fixup => $sourceDir{Fixup},
2470
+ Offset => length($dirBuff) + 8,
2471
+ Where => 'dirBuff',
2472
+ };
2473
+ $newFormName = 'int32u';
2474
+ $newFormat = $formatNumber{$newFormName};
2475
+ } else {
2476
+ # subdirectory goes directly into value buffer
2477
+ $sourceDir{Fixup}{Start} += length($valBuff);
2478
+ # use Writable to set format, otherwise 'undef'
2479
+ $newFormName = $$newInfo{Writable};
2480
+ unless ($newFormName and $formatNumber{$newFormName}) {
2481
+ $newFormName = 'undef';
2482
+ }
2483
+ $newFormat = $formatNumber{$newFormName};
2484
+ push @valFixups, $sourceDir{Fixup};
2485
+ }
2486
+ } elsif ($$newInfo{Format} and $$newInfo{Writable} and $$newInfo{Writable} ne '1') {
2487
+ # use specified write format
2488
+ $newFormName = $$newInfo{Writable};
2489
+ $newFormat = $formatNumber{$newFormName};
2490
+ } elsif ($$addDirs{$newID} and $newInfo ne $$addDirs{$newID}) {
2491
+ # this can happen if we are trying to add a directory that doesn't exist
2492
+ # in this type of file (eg. try adding a SubIFD tag to an A100 image)
2493
+ $isNew = -1;
2494
+ }
2495
+ }
2496
+ if ($isNew < 0) {
2497
+ # just rewrite existing tag
2498
+ $newID = $oldID;
2499
+ $newValue = $oldValue;
2500
+ $newFormat = $oldFormat; # (just in case it changed)
2501
+ $newFormName = $oldFormName;
2502
+ # set offset of this entry in the directory so we can update the pointer
2503
+ # and save block information to copy this large block later
2504
+ if ($oldImageData) {
2505
+ $$oldImageData[3] = $newStart + length($dirBuff) + 2;
2506
+ push @imageData, $oldImageData;
2507
+ $$origDirInfo{ImageData} = \@imageData;
2508
+ }
2509
+ }
2510
+ if ($newInfo) {
2511
+ #
2512
+ # load necessary data for this tag (thumbnail image, etc)
2513
+ #
2514
+ if ($$newInfo{DataTag} and $isNew >= 0) {
2515
+ my $dataTag = $$newInfo{DataTag};
2516
+ # load data for this tag
2517
+ unless (defined $offsetData{$dataTag} or $dataTag eq 'LeicaTrailer') {
2518
+ # prefer tag from Composite table if it exists (otherwise
2519
+ # PreviewImage data would be taken from Extra tag)
2520
+ my $compInfo = $Image::ExifTool::Composite{$dataTag};
2521
+ $offsetData{$dataTag} = $et->GetNewValues($compInfo || $dataTag);
2522
+ my $err;
2523
+ if (defined $offsetData{$dataTag}) {
2524
+ my $len = length $offsetData{$dataTag};
2525
+ if ($dataTag eq 'PreviewImage') {
2526
+ # must set DEL_PREVIEW flag now if preview fit into IFD
2527
+ $$et{DEL_PREVIEW} = 1 if $len <= 4;
2528
+ } elsif ($$et{FILE_TYPE} eq 'JPEG' and $len > 60000) {
2529
+ delete $offsetData{$dataTag};
2530
+ $err = "$dataTag not written (too large for JPEG segment)";
2531
+ }
2532
+ } else {
2533
+ $err = "$dataTag not found";
2534
+ }
2535
+ if ($err) {
2536
+ $et->Warn($err) if $$newInfo{IsOffset};
2537
+ delete $set{$newID}; # remove from list of tags we are setting
2538
+ next;
2539
+ }
2540
+ }
2541
+ }
2542
+ #
2543
+ # write maker notes
2544
+ #
2545
+ if ($$newInfo{MakerNotes}) {
2546
+ # don't write new makernotes if we are deleting this group
2547
+ if ($$et{DEL_GROUP}{MakerNotes} and
2548
+ ($$et{DEL_GROUP}{MakerNotes} != 2 or $isNew <= 0))
2549
+ {
2550
+ if ($isNew <= 0) {
2551
+ ++$$et{CHANGED};
2552
+ $verbose and print $out " Deleting MakerNotes\n";
2553
+ }
2554
+ next;
2555
+ }
2556
+ my $saveOrder = GetByteOrder();
2557
+ if ($isNew >= 0 and $set{$newID}) {
2558
+ # we are writing a whole new maker note block
2559
+ # --> add fixup information if necessary
2560
+ my $nvHash = $et->GetNewValueHash($newInfo, $dirName);
2561
+ if ($nvHash and $$nvHash{MAKER_NOTE_FIXUP}) {
2562
+ # must clone fixup because we will be shifting it
2563
+ my $makerFixup = $$nvHash{MAKER_NOTE_FIXUP}->Clone();
2564
+ my $valLen = length($valBuff);
2565
+ $$makerFixup{Start} += $valLen;
2566
+ push @valFixups, $makerFixup;
2567
+ }
2568
+ } else {
2569
+ # update maker notes if possible
2570
+ my %subdirInfo = (
2571
+ Base => $base,
2572
+ DataPt => $valueDataPt,
2573
+ DataPos => $valueDataPos,
2574
+ DataLen => $valueDataLen,
2575
+ DirStart => $valuePtr,
2576
+ DirLen => $oldSize,
2577
+ DirName => 'MakerNotes',
2578
+ Name => $$newInfo{Name},
2579
+ Parent => $dirName,
2580
+ TagInfo => $newInfo,
2581
+ RAF => $raf,
2582
+ );
2583
+ my ($subTable, $subdir, $loc, $writeProc, $notIFD);
2584
+ if ($$newInfo{SubDirectory}) {
2585
+ my $sub = $$newInfo{SubDirectory};
2586
+ $subdirInfo{FixBase} = 1 if $$sub{FixBase};
2587
+ $subdirInfo{FixOffsets} = $$sub{FixOffsets};
2588
+ $subdirInfo{EntryBased} = $$sub{EntryBased};
2589
+ $subdirInfo{NoFixBase} = 1 if defined $$sub{Base};
2590
+ $subdirInfo{AutoFix} = $$sub{AutoFix};
2591
+ }
2592
+ # get the proper tag table for these maker notes
2593
+ if ($oldInfo and $$oldInfo{SubDirectory}) {
2594
+ $subTable = $$oldInfo{SubDirectory}{TagTable};
2595
+ $subTable and $subTable = Image::ExifTool::GetTagTable($subTable);
2596
+ $writeProc = $$oldInfo{SubDirectory}{WriteProc};
2597
+ $notIFD = $$oldInfo{NotIFD};
2598
+ } else {
2599
+ $et->Warn('Internal problem getting maker notes tag table');
2600
+ }
2601
+ $subTable or $subTable = $tagTablePtr;
2602
+ if ($writeProc and
2603
+ $writeProc eq \&Image::ExifTool::MakerNotes::WriteUnknownOrPreview and
2604
+ $oldValue =~ /^\xff\xd8\xff/)
2605
+ {
2606
+ $loc = 0;
2607
+ } elsif (not $notIFD) {
2608
+ # look for IFD-style maker notes
2609
+ $loc = Image::ExifTool::MakerNotes::LocateIFD($et,\%subdirInfo);
2610
+ }
2611
+ if (defined $loc) {
2612
+ # we need fixup data for this subdirectory
2613
+ $subdirInfo{Fixup} = new Image::ExifTool::Fixup;
2614
+ # rewrite maker notes
2615
+ my $changed = $$et{CHANGED};
2616
+ $subdir = $et->WriteDirectory(\%subdirInfo, $subTable, $writeProc);
2617
+ if ($changed == $$et{CHANGED} and $subdirInfo{Fixup}->IsEmpty()) {
2618
+ # return original data if nothing changed and no fixups
2619
+ undef $subdir;
2620
+ }
2621
+ } elsif ($$subTable{PROCESS_PROC} and
2622
+ $$subTable{PROCESS_PROC} eq \&Image::ExifTool::ProcessBinaryData)
2623
+ {
2624
+ my $sub = $$oldInfo{SubDirectory};
2625
+ if (defined $$sub{Start}) {
2626
+ #### eval Start ($valuePtr)
2627
+ my $start = eval $$sub{Start};
2628
+ $loc = $start - $valuePtr;
2629
+ $subdirInfo{DirStart} = $start;
2630
+ $subdirInfo{DirLen} -= $loc;
2631
+ } else {
2632
+ $loc = 0;
2633
+ }
2634
+ # rewrite maker notes
2635
+ $subdir = $et->WriteDirectory(\%subdirInfo, $subTable);
2636
+ } elsif (not $notIFD) {
2637
+ my $msg = 'Maker notes could not be parsed';
2638
+ if ($$et{FILE_TYPE} eq 'JPEG') {
2639
+ $et->Warn($msg, 1);
2640
+ } else {
2641
+ $et->Error($msg, 1);
2642
+ }
2643
+ }
2644
+ if (defined $subdir) {
2645
+ next unless length $subdir;
2646
+ my $valLen = length($valBuff);
2647
+ # restore existing header and substitute the new
2648
+ # maker notes for the old value
2649
+ $newValue = substr($oldValue, 0, $loc) . $subdir;
2650
+ my $makerFixup = $subdirInfo{Fixup};
2651
+ my $previewInfo = $$et{PREVIEW_INFO};
2652
+ if ($subdirInfo{Relative}) {
2653
+ # apply a one-time fixup to $loc since offsets are relative
2654
+ $$makerFixup{Start} += $loc;
2655
+ # shift all offsets to be relative to new base
2656
+ my $baseShift = $valueDataPos + $valuePtr + $base - $subdirInfo{Base};
2657
+ $$makerFixup{Shift} += $baseShift;
2658
+ $makerFixup->ApplyFixup(\$newValue);
2659
+ if ($previewInfo) {
2660
+ # remove all but PreviewImage fixup (since others shouldn't change)
2661
+ foreach (keys %{$$makerFixup{Pointers}}) {
2662
+ /_PreviewImage$/ or delete $$makerFixup{Pointers}{$_};
2663
+ }
2664
+ # zero pointer so we can see how it gets shifted later
2665
+ $makerFixup->SetMarkerPointers(\$newValue, 'PreviewImage', 0);
2666
+ # set the pointer to the start of the EXIF information
2667
+ # add preview image fixup to list of value fixups
2668
+ $$makerFixup{Start} += $valLen;
2669
+ push @valFixups, $makerFixup;
2670
+ $$previewInfo{BaseShift} = $baseShift;
2671
+ $$previewInfo{Relative} = 1;
2672
+ }
2673
+ # don't shift anything if relative flag set to zero (Pentax patch)
2674
+ } elsif (not defined $subdirInfo{Relative}) {
2675
+ # shift offset base if shifted in the original image or if FixBase
2676
+ # was used, but be careful of automatic FixBase with negative shifts
2677
+ # since they may lead to negative (invalid) offsets (casio_edit_problem.jpg)
2678
+ my $baseShift = $base - $subdirInfo{Base};
2679
+ if ($subdirInfo{AutoFix}) {
2680
+ $baseShift = 0;
2681
+ } elsif ($subdirInfo{FixBase} and $baseShift < 0 and
2682
+ # allow negative base shift if offsets are bigger (PentaxOptioWP.jpg)
2683
+ (not $subdirInfo{MinOffset} or $subdirInfo{MinOffset} + $baseShift < 0))
2684
+ {
2685
+ my $fixBase = $et->Options('FixBase');
2686
+ if (not defined $fixBase) {
2687
+ my $str = $et->Options('IgnoreMinorErrors') ? 'ignored' : 'fix or ignore?';
2688
+ $et->Error("MakerNotes offsets may be incorrect ($str)", 1);
2689
+ } elsif ($fixBase eq '') {
2690
+ $et->Warn('Fixed incorrect MakerNotes offsets');
2691
+ $baseShift = 0;
2692
+ }
2693
+ }
2694
+ $$makerFixup{Start} += $valLen + $loc;
2695
+ $$makerFixup{Shift} += $baseShift;
2696
+ # permanently fix makernote offset errors
2697
+ $$makerFixup{Shift} += $subdirInfo{FixedBy} || 0;
2698
+ push @valFixups, $makerFixup;
2699
+ if ($previewInfo and not $$previewInfo{NoBaseShift}) {
2700
+ $$previewInfo{BaseShift} = $baseShift;
2701
+ }
2702
+ }
2703
+ $newValuePt = \$newValue; # write new value
2704
+ }
2705
+ }
2706
+ SetByteOrder($saveOrder);
2707
+
2708
+ # process existing subdirectory unless we are overwriting it entirely
2709
+ } elsif ($$newInfo{SubDirectory} and $isNew <= 0 and not $isOverwriting
2710
+ # don't edit directory if Writable is set to 0
2711
+ and (not defined $$newInfo{Writable} or $$newInfo{Writable}))
2712
+ {
2713
+
2714
+ my $subdir = $$newInfo{SubDirectory};
2715
+ if ($$newInfo{SubIFD}) {
2716
+ #
2717
+ # rewrite existing sub IFD's
2718
+ #
2719
+ my $subTable = $tagTablePtr;
2720
+ if ($$subdir{TagTable}) {
2721
+ $subTable = Image::ExifTool::GetTagTable($$subdir{TagTable});
2722
+ }
2723
+ # determine directory name for this IFD
2724
+ my $subdirName = $$newInfo{Groups}{1} || $$newInfo{Name};
2725
+ # all makernotes directory names must be 'MakerNotes'
2726
+ $subdirName = 'MakerNotes' if $$subTable{GROUPS}{0} eq 'MakerNotes';
2727
+ # must handle sub-IFD's specially since the values
2728
+ # are actually offsets to subdirectories
2729
+ unless ($readCount) { # can't have zero count
2730
+ return undef if $et->Error("$name entry $index has zero count", 2);
2731
+ next;
2732
+ }
2733
+ my $writeCount = 0;
2734
+ my $i;
2735
+ $newValue = ''; # reset value because we regenerate it below
2736
+ for ($i=0; $i<$readCount; ++$i) {
2737
+ my $off = $i * $formatSize[$readFormat];
2738
+ my $val = ReadValue($valueDataPt, $valuePtr + $off,
2739
+ $readFormName, 1, $oldSize - $off);
2740
+ my $subdirStart = $val - $dataPos;
2741
+ my $subdirBase = $base;
2742
+ my $hdrLen;
2743
+ if (defined $$subdir{Start}) {
2744
+ #### eval Start ($val)
2745
+ my $newStart = eval $$subdir{Start};
2746
+ unless (Image::ExifTool::IsInt($newStart)) {
2747
+ $et->Error("Bad subdirectory start for $$newInfo{Name}");
2748
+ next;
2749
+ }
2750
+ $newStart -= $dataPos;
2751
+ $hdrLen = $newStart - $subdirStart;
2752
+ $subdirStart = $newStart;
2753
+ }
2754
+ if ($$subdir{Base}) {
2755
+ my $start = $subdirStart + $dataPos;
2756
+ #### eval Base ($start,$base)
2757
+ $subdirBase += eval $$subdir{Base};
2758
+ }
2759
+ # add IFD number if more than one
2760
+ $subdirName =~ s/\d*$/$i/ if $i;
2761
+ my %subdirInfo = (
2762
+ Base => $subdirBase,
2763
+ DataPt => $dataPt,
2764
+ DataPos => $dataPos - $subdirBase + $base,
2765
+ DataLen => $dataLen,
2766
+ DirStart => $subdirStart,
2767
+ DirName => $subdirName,
2768
+ Name => $$newInfo{Name},
2769
+ TagInfo => $newInfo,
2770
+ Parent => $dirName,
2771
+ Fixup => new Image::ExifTool::Fixup,
2772
+ RAF => $raf,
2773
+ Subdir => $subdir,
2774
+ # set ImageData only for 1st level SubIFD's
2775
+ ImageData=> $imageDataFlag eq 'Main' ? 'SubIFD' : undef,
2776
+ );
2777
+ # pass on header pointer only for certain sub IFD's
2778
+ $subdirInfo{HeaderPtr} = $$dirInfo{HeaderPtr} if $$newInfo{SubIFD} == 2;
2779
+ if ($$subdir{RelativeBase}) {
2780
+ # apply one-time fixup if offsets are relative (Sony IDC hack)
2781
+ delete $subdirInfo{Fixup};
2782
+ delete $subdirInfo{ImageData};
2783
+ }
2784
+ # is the subdirectory outside our current data?
2785
+ if ($subdirStart < 0 or $subdirStart + 2 > $dataLen) {
2786
+ if ($raf) {
2787
+ # reset SubDirectory buffer (we will load it later)
2788
+ my $buff = '';
2789
+ $subdirInfo{DataPt} = \$buff;
2790
+ $subdirInfo{DataLen} = 0;
2791
+ } else {
2792
+ my @err = ("Can't read $subdirName data", $inMakerNotes);
2793
+ if ($$subTable{VARS} and $$subTable{VARS}{MINOR_ERRORS}) {
2794
+ $et->Warn($err[0] . '. Ignored.');
2795
+ } elsif ($et->Error(@err)) {
2796
+ return undef;
2797
+ }
2798
+ next Entry; # don't write this directory
2799
+ }
2800
+ }
2801
+ my $subdirData = $et->WriteDirectory(\%subdirInfo, $subTable, $$subdir{WriteProc});
2802
+ unless (defined $subdirData) {
2803
+ # WriteDirectory should have issued an error, but check just in case
2804
+ $et->Error("Error writing $subdirName") unless $$et{VALUE}{Error};
2805
+ return undef;
2806
+ }
2807
+ # add back original header if necessary (eg. Ricoh GR)
2808
+ if ($hdrLen and $hdrLen > 0 and $subdirStart <= $dataLen) {
2809
+ $subdirData = substr($$dataPt, $subdirStart - $hdrLen, $hdrLen) . $subdirData;
2810
+ $subdirInfo{Fixup}{Start} += $hdrLen;
2811
+ }
2812
+ unless (length $subdirData) {
2813
+ next unless $inMakerNotes;
2814
+ # don't delete MakerNote Sub-IFD's, write empty IFD instead
2815
+ $subdirData = "\0" x 6;
2816
+ # reset SubIFD ImageData and Fixup just to be safe
2817
+ delete $subdirInfo{ImageData};
2818
+ delete $subdirInfo{Fixup};
2819
+ }
2820
+ # handle data blocks that we will transfer later
2821
+ if (ref $subdirInfo{ImageData}) {
2822
+ push @imageData, @{$subdirInfo{ImageData}};
2823
+ $$origDirInfo{ImageData} = \@imageData;
2824
+ }
2825
+ # temporarily set value to subdirectory index
2826
+ # (will set to actual offset later when we know what it is)
2827
+ $newValue .= Set32u(0xfeedf00d);
2828
+ my ($offset, $where);
2829
+ if ($readCount > 1) {
2830
+ $offset = length($valBuff) + $i * 4;
2831
+ $where = 'valBuff';
2832
+ } else {
2833
+ $offset = length($dirBuff) + 8;
2834
+ $where = 'dirBuff';
2835
+ }
2836
+ # add to list of subdirectories we will append later
2837
+ push @subdirs, {
2838
+ DataPt => \$subdirData,
2839
+ Table => $subTable,
2840
+ Fixup => $subdirInfo{Fixup},
2841
+ Offset => $offset,
2842
+ Where => $where,
2843
+ ImageData => $subdirInfo{ImageData},
2844
+ };
2845
+ ++$writeCount; # count number of subdirs written
2846
+ }
2847
+ next unless length $newValue;
2848
+ # must change location of subdir offset if we deleted
2849
+ # a directory and only one remains
2850
+ if ($writeCount < $readCount and $writeCount == 1) {
2851
+ $subdirs[-1]{Where} = 'dirBuff';
2852
+ $subdirs[-1]{Offset} = length($dirBuff) + 8;
2853
+ }
2854
+ # set new format to int32u for IFD
2855
+ $newFormName = $$newInfo{FixFormat} || 'int32u';
2856
+ $newFormat = $formatNumber{$newFormName};
2857
+ $newValuePt = \$newValue;
2858
+
2859
+ } elsif ((not defined $$subdir{Start} or
2860
+ $$subdir{Start} =~ /\$valuePtr/) and
2861
+ $$subdir{TagTable})
2862
+ {
2863
+ #
2864
+ # rewrite other existing subdirectories ('$valuePtr' type only)
2865
+ #
2866
+ # set subdirectory Start and Base
2867
+ my $subdirStart = $valuePtr;
2868
+ if ($$subdir{Start}) {
2869
+ #### eval Start ($valuePtr)
2870
+ $subdirStart = eval $$subdir{Start};
2871
+ # must adjust directory size if start changed
2872
+ $oldSize -= $subdirStart - $valuePtr;
2873
+ }
2874
+ my $subdirBase = $base;
2875
+ if ($$subdir{Base}) {
2876
+ my $start = $subdirStart + $valueDataPos;
2877
+ #### eval Base ($start,$base)
2878
+ $subdirBase += eval $$subdir{Base};
2879
+ }
2880
+ my $subFixup = new Image::ExifTool::Fixup;
2881
+ my %subdirInfo = (
2882
+ Base => $subdirBase,
2883
+ DataPt => $valueDataPt,
2884
+ DataPos => $valueDataPos - $subdirBase + $base,
2885
+ DataLen => $valueDataLen,
2886
+ DirStart => $subdirStart,
2887
+ DirName => $$subdir{DirName},
2888
+ DirLen => $oldSize,
2889
+ Parent => $dirName,
2890
+ Fixup => $subFixup,
2891
+ RAF => $raf,
2892
+ TagInfo => $newInfo,
2893
+ );
2894
+ unless ($oldSize) {
2895
+ # replace with dummy data if empty to prevent WriteDirectory
2896
+ # routines from accessing data they shouldn't
2897
+ my $tmp = '';
2898
+ $subdirInfo{DataPt} = \$tmp;
2899
+ $subdirInfo{DataLen} = 0;
2900
+ $subdirInfo{DirStart} = 0;
2901
+ $subdirInfo{DataPos} += $subdirStart;
2902
+ }
2903
+ my $subTable = Image::ExifTool::GetTagTable($$subdir{TagTable});
2904
+ my $oldOrder = GetByteOrder();
2905
+ SetByteOrder($$subdir{ByteOrder}) if $$subdir{ByteOrder};
2906
+ $newValue = $et->WriteDirectory(\%subdirInfo, $subTable, $$subdir{WriteProc});
2907
+ SetByteOrder($oldOrder);
2908
+ if (defined $newValue) {
2909
+ my $hdrLen = $subdirStart - $valuePtr;
2910
+ if ($hdrLen) {
2911
+ $newValue = substr($$valueDataPt, $valuePtr, $hdrLen) . $newValue;
2912
+ $$subFixup{Start} += $hdrLen;
2913
+ }
2914
+ $newValuePt = \$newValue;
2915
+ } else {
2916
+ $newValuePt = \$oldValue;
2917
+ }
2918
+ unless (length $$newValuePt) {
2919
+ # don't delete a previously empty makernote directory
2920
+ next if $oldSize or not $inMakerNotes;
2921
+ }
2922
+ if ($$subFixup{Pointers} and $subdirInfo{Base} == $base) {
2923
+ $$subFixup{Start} += length $valBuff;
2924
+ push @valFixups, $subFixup;
2925
+ } else {
2926
+ # apply fixup in case we added a header ($hdrLen above)
2927
+ $subFixup->ApplyFixup(\$newValue);
2928
+ }
2929
+ }
2930
+
2931
+ } elsif ($$newInfo{OffsetPair}) {
2932
+ #
2933
+ # keep track of offsets
2934
+ #
2935
+ my $dataTag = $$newInfo{DataTag} || '';
2936
+ if ($dataTag eq 'CanonVRD') {
2937
+ # must decide now if we will write CanonVRD information
2938
+ my $hasVRD;
2939
+ if ($$et{NEW_VALUE}{$Image::ExifTool::Extra{CanonVRD}}) {
2940
+ # adding or deleting as a block
2941
+ $hasVRD = $et->GetNewValues('CanonVRD') ? 1 : 0;
2942
+ } elsif ($$et{DEL_GROUP}{CanonVRD} or
2943
+ $$et{DEL_GROUP}{Trailer})
2944
+ {
2945
+ $hasVRD = 0; # deleting as a group
2946
+ } else {
2947
+ $hasVRD = ($$newValuePt ne "\0\0\0\0");
2948
+ }
2949
+ if ($hasVRD) {
2950
+ # add a fixup, and set this offset later
2951
+ $dirFixup->AddFixup(length($dirBuff) + 8, $dataTag);
2952
+ } else {
2953
+ # there is (or will soon be) no VRD information, so set pointer to zero
2954
+ $newValue = "\0" x length($$newValuePt);
2955
+ $newValuePt = \$newValue;
2956
+ }
2957
+ } elsif ($dataTag eq 'OriginalDecisionData') {
2958
+ # handle Canon OriginalDecisionData (no associated length tag)
2959
+ # - I'm going out of my way here to preserve data which is
2960
+ # invalidated anyway by our edits
2961
+ my $odd;
2962
+ my $oddInfo = $Image::ExifTool::Composite{OriginalDecisionData};
2963
+ if ($oddInfo and $$et{NEW_VALUE}{$oddInfo}) {
2964
+ $odd = $et->GetNewValues($dataTag);
2965
+ if ($verbose > 1) {
2966
+ print $out " - $dirName:$dataTag\n" if $$newValuePt ne "\0\0\0\0";
2967
+ print $out " + $dirName:$dataTag\n" if $odd;
2968
+ }
2969
+ ++$$et{CHANGED};
2970
+ } elsif ($$newValuePt ne "\0\0\0\0") {
2971
+ if (length($$newValuePt) == 4) {
2972
+ require Image::ExifTool::Canon;
2973
+ my $offset = Get32u($newValuePt,0);
2974
+ # absolute offset in JPEG images only
2975
+ $offset += $base unless $$et{FILE_TYPE} eq 'JPEG';
2976
+ $odd = Image::ExifTool::Canon::ReadODD($et, $offset);
2977
+ $odd = $$odd if ref $odd;
2978
+ } else {
2979
+ $et->Error("Invalid $$newInfo{Name}",1);
2980
+ }
2981
+ }
2982
+ if ($odd) {
2983
+ my $newOffset = length($valBuff);
2984
+ # (ODD offset is absolute in JPEG, so add base offset!)
2985
+ $newOffset += $base if $$et{FILE_TYPE} eq 'JPEG';
2986
+ $newValue = Set32u($newOffset);
2987
+ $dirFixup->AddFixup(length($dirBuff) + 8, $dataTag);
2988
+ $valBuff .= $odd; # add original decision data
2989
+ } else {
2990
+ $newValue = "\0\0\0\0";
2991
+ }
2992
+ $newValuePt = \$newValue;
2993
+ } else {
2994
+ my $offsetInfo = $offsetInfo[$ifd];
2995
+ # save original values (for updating TIFF_END later)
2996
+ my @vals;
2997
+ if ($isNew <= 0) {
2998
+ my $oldOrder = GetByteOrder();
2999
+ # Minolta A200 stores these in the wrong byte order!
3000
+ SetByteOrder($$newInfo{ByteOrder}) if $$newInfo{ByteOrder};
3001
+ @vals = ReadValue(\$oldValue, 0, $readFormName, $readCount, $oldSize);
3002
+ SetByteOrder($oldOrder);
3003
+ }
3004
+ # only support int32 pointers (for now)
3005
+ if ($formatSize[$newFormat] != 4 and $$newInfo{IsOffset}) {
3006
+ $isNew > 0 and warn("Internal error (Offset not int32)"), return undef;
3007
+ $newCount != $readCount and warn("Wrong count!"), return undef;
3008
+ # change to int32
3009
+ $newFormName = 'int32u';
3010
+ $newFormat = $formatNumber{$newFormName};
3011
+ $newValue = WriteValue(join(' ',@vals), $newFormName, $newCount);
3012
+ unless (defined $newValue) {
3013
+ warn "Internal error writing offsets for $$newInfo{Name}\n";
3014
+ return undef;
3015
+ }
3016
+ }
3017
+ $offsetInfo or $offsetInfo = $offsetInfo[$ifd] = { };
3018
+ # save location of valuePtr in new directory
3019
+ # (notice we add 10 instead of 8 for valuePtr because
3020
+ # we will put a 2-byte count at start of directory later)
3021
+ my $ptr = $newStart + length($dirBuff) + 10;
3022
+ $newCount or $newCount = 1; # make sure count is set for offsetInfo
3023
+ # save value pointer and value count for each tag
3024
+ $$offsetInfo{$newID} = [$newInfo, $ptr, $newCount, \@vals, $newFormat];
3025
+ }
3026
+
3027
+ } elsif ($$newInfo{DataMember}) {
3028
+
3029
+ # save any necessary data members (Make, Model, etc)
3030
+ my $formatStr = $newFormName;
3031
+ my $count = $newCount;
3032
+ # change to specified format if necessary
3033
+ if ($$newInfo{Format} and $$newInfo{Format} ne $formatStr) {
3034
+ $formatStr = $$newInfo{Format};
3035
+ my $format = $formatNumber{$formatStr};
3036
+ # adjust number of items for new format size
3037
+ $count = int(length($$newValuePt) / $formatSize[$format]) if $format;
3038
+ }
3039
+ my $val = ReadValue($newValuePt,0,$formatStr,$count,length($$newValuePt));
3040
+ my $conv = $$newInfo{RawConv};
3041
+ if ($conv) {
3042
+ # let the RawConv store the (possibly converted) data member
3043
+ if (ref $conv eq 'CODE') {
3044
+ &$conv($val, $et);
3045
+ } else {
3046
+ my ($self, $tag, $taginfo) = ($et, $$newInfo{Name}, $newInfo);
3047
+ #### eval RawConv ($self, $val, $tag, $tagInfo)
3048
+ eval $conv;
3049
+ }
3050
+ } else {
3051
+ $$et{$$newInfo{DataMember}} = $val;
3052
+ }
3053
+ }
3054
+ }
3055
+ #
3056
+ # write out the directory entry
3057
+ #
3058
+ my $newSize = length($$newValuePt);
3059
+ my $fsize = $formatSize[$newFormat];
3060
+ my $offsetVal;
3061
+ $newCount = int(($newSize + $fsize - 1) / $fsize); # set proper count
3062
+ if ($newSize > 4) {
3063
+ # zero-pad to an even number of bytes (required by EXIF standard)
3064
+ # and make sure we are a multiple of the format size
3065
+ while ($newSize & 0x01 or $newSize < $newCount * $fsize) {
3066
+ $$newValuePt .= "\0";
3067
+ ++$newSize;
3068
+ }
3069
+ my $entryBased;
3070
+ if ($$dirInfo{EntryBased} or ($newInfo and $$newInfo{EntryBased})) {
3071
+ $entryBased = 1;
3072
+ $offsetVal = Set32u(length($valBuff) - length($dirBuff));
3073
+ } else {
3074
+ $offsetVal = Set32u(length $valBuff);
3075
+ }
3076
+ my ($dataTag, $putFirst);
3077
+ ($dataTag, $putFirst) = @$newInfo{'DataTag','PutFirst'} if $newInfo;
3078
+ if ($dataTag) {
3079
+ if ($dataTag eq 'PreviewImage' and ($$et{FILE_TYPE} eq 'JPEG' or
3080
+ $$et{GENERATE_PREVIEW_INFO}))
3081
+ {
3082
+ # hold onto the PreviewImage until we can determine if it fits
3083
+ $$et{PREVIEW_INFO} or $$et{PREVIEW_INFO} = {
3084
+ Data => $$newValuePt,
3085
+ Fixup => new Image::ExifTool::Fixup,
3086
+ };
3087
+ $$et{PREVIEW_INFO}{ChangeBase} = 1 if $$newInfo{ChangeBase};
3088
+ if ($$newInfo{IsOffset} and $$newInfo{IsOffset} eq '2') {
3089
+ $$et{PREVIEW_INFO}{NoBaseShift} = 1;
3090
+ }
3091
+ # use original preview size if we will attempt to load it later
3092
+ $newCount = $oldCount if $$newValuePt eq 'LOAD_PREVIEW';
3093
+ $$newValuePt = '';
3094
+ } elsif ($dataTag eq 'LeicaTrailer' and $$et{LeicaTrailer}) {
3095
+ $$newValuePt = '';
3096
+ }
3097
+ }
3098
+ if ($putFirst and $$dirInfo{HeaderPtr}) {
3099
+ my $hdrPtr = $$dirInfo{HeaderPtr};
3100
+ # place this value immediately after the TIFF header
3101
+ $offsetVal = Set32u(length $$hdrPtr);
3102
+ $$hdrPtr .= $$newValuePt;
3103
+ } else {
3104
+ $valBuff .= $$newValuePt; # add value data to buffer
3105
+ # must save a fixup pointer for every pointer in the directory
3106
+ if ($entryBased) {
3107
+ $entryBasedFixup or $entryBasedFixup = new Image::ExifTool::Fixup;
3108
+ $entryBasedFixup->AddFixup(length($dirBuff) + 8, $dataTag);
3109
+ } else {
3110
+ $dirFixup->AddFixup(length($dirBuff) + 8, $dataTag);
3111
+ }
3112
+ }
3113
+ } else {
3114
+ $offsetVal = $$newValuePt; # save value in offset if 4 bytes or less
3115
+ # must pad value with zeros if less than 4 bytes
3116
+ $newSize < 4 and $offsetVal .= "\0" x (4 - $newSize);
3117
+ }
3118
+ # write the directory entry
3119
+ $dirBuff .= Set16u($newID) . Set16u($newFormat) .
3120
+ Set32u($newCount) . $offsetVal;
3121
+ # update flag to keep track of mandatory tags
3122
+ while (defined $allMandatory) {
3123
+ if (defined $$mandatory{$newID}) {
3124
+ # values must correspond to mandatory values
3125
+ my $form = $$newInfo{Format} || $newFormName;
3126
+ my $mandVal = WriteValue($$mandatory{$newID}, $form, $newCount);
3127
+ if (defined $mandVal and $mandVal eq $$newValuePt) {
3128
+ ++$allMandatory; # count mandatory tags
3129
+ last;
3130
+ }
3131
+ }
3132
+ undef $deleteAll;
3133
+ undef $allMandatory;
3134
+ }
3135
+ }
3136
+ if ($ignoreCount) {
3137
+ my $y = $ignoreCount > 1 ? 'ies' : 'y';
3138
+ my $verb = $$dirInfo{FixBase} ? 'Ignored' : 'Removed';
3139
+ $et->Warn("$verb $ignoreCount invalid entr$y from $name", 1);
3140
+ }
3141
+ if ($fixCount) {
3142
+ my $s = $fixCount > 1 ? 's' : '';
3143
+ $et->Warn("Fixed invalid count$s for $fixCount $name tag$s", 1);
3144
+ }
3145
+ #..............................................................................
3146
+ # write directory counts and nextIFD pointer and add value data to end of IFD
3147
+ #
3148
+ # determine now if there is or will be another IFD after this one
3149
+ my $nextIfdOffset;
3150
+ if ($dirEnd + 4 <= $dataLen) {
3151
+ $nextIfdOffset = Get32u($dataPt, $dirEnd);
3152
+ } else {
3153
+ $nextIfdOffset = 0;
3154
+ }
3155
+ my $isNextIFD = ($$dirInfo{Multi} and ($nextIfdOffset or
3156
+ # account for the case where we will create the next IFD
3157
+ # (IFD1 only, but not in TIFF-format images)
3158
+ ($dirName eq 'IFD0' and $$et{ADD_DIRS}{'IFD1'} and
3159
+ $$et{FILE_TYPE} ne 'TIFF')));
3160
+ # calculate number of entries in new directory
3161
+ my $newEntries = length($dirBuff) / 12;
3162
+ # delete entire directory if we deleted a tag and only mandatory tags remain or we
3163
+ # attempted to create a directory with only mandatory tags and there is no nextIFD
3164
+ if ($allMandatory and not $isNextIFD and ($newEntries < $numEntries or $numEntries == 0)) {
3165
+ $newEntries = 0;
3166
+ $dirBuff = '';
3167
+ $valBuff = '';
3168
+ undef $dirFixup; # no fixups in this directory
3169
+ ++$deleteAll if defined $deleteAll;
3170
+ $verbose > 1 and print $out " - $allMandatory mandatory tag(s)\n";
3171
+ $$et{CHANGED} -= $addMandatory; # didn't change these after all
3172
+ }
3173
+ if ($ifd and not $newEntries) {
3174
+ $verbose and print $out " Deleting IFD1\n";
3175
+ last; # don't write IFD1 if empty
3176
+ }
3177
+ # apply one-time fixup for entry-based offsets
3178
+ if ($entryBasedFixup) {
3179
+ $$entryBasedFixup{Shift} = length($dirBuff) + 4;
3180
+ $entryBasedFixup->ApplyFixup(\$dirBuff);
3181
+ undef $entryBasedFixup;
3182
+ }
3183
+ # initialize next IFD pointer to zero
3184
+ my $nextIFD = Set32u(0);
3185
+ # some cameras use a different amount of padding after the makernote IFD
3186
+ if ($dirName eq 'MakerNotes' and $$dirInfo{Parent} =~ /^(ExifIFD|IFD0)$/) {
3187
+ my ($rel, $pad) = Image::ExifTool::MakerNotes::GetMakerNoteOffset($et);
3188
+ $nextIFD = "\0" x $pad if defined $pad and ($pad==0 or ($pad>4 and $pad<=32));
3189
+ }
3190
+ # add directory entry count to start of IFD and next IFD pointer to end
3191
+ $newData .= Set16u($newEntries) . $dirBuff . $nextIFD;
3192
+ # get position of value data in newData
3193
+ my $valPos = length($newData);
3194
+ # go back now and set next IFD pointer if this isn't the first IFD
3195
+ if ($nextIfdPos) {
3196
+ # set offset to next IFD
3197
+ Set32u($newStart, \$newData, $nextIfdPos);
3198
+ $fixup->AddFixup($nextIfdPos,'NextIFD'); # add fixup for this offset in newData
3199
+ }
3200
+ # remember position of 'next IFD' pointer so we can set it next time around
3201
+ $nextIfdPos = length($nextIFD) ? $valPos - length($nextIFD) : undef;
3202
+ # add value data after IFD
3203
+ $newData .= $valBuff;
3204
+ #
3205
+ # add any subdirectories, adding fixup information
3206
+ #
3207
+ if (@subdirs) {
3208
+ my $subdir;
3209
+ foreach $subdir (@subdirs) {
3210
+ my $len = length($newData); # position of subdirectory in data
3211
+ my $subdirFixup = $$subdir{Fixup};
3212
+ if ($subdirFixup) {
3213
+ $$subdirFixup{Start} += $len;
3214
+ $fixup->AddFixup($subdirFixup);
3215
+ }
3216
+ my $imageData = $$subdir{ImageData};
3217
+ my $blockSize = 0;
3218
+ # must also update start position for ImageData fixups
3219
+ if (ref $imageData) {
3220
+ my $blockInfo;
3221
+ foreach $blockInfo (@$imageData) {
3222
+ my ($pos, $size, $pad, $entry, $subFix) = @$blockInfo;
3223
+ if ($subFix) {
3224
+ $$subFix{Start} += $len;
3225
+ # save expected image data offset for calculating shift later
3226
+ $$subFix{BlockLen} = length(${$$subdir{DataPt}}) + $blockSize;
3227
+ }
3228
+ $blockSize += $size + $pad;
3229
+ }
3230
+ }
3231
+ $newData .= ${$$subdir{DataPt}}; # add subdirectory to our data
3232
+ undef ${$$subdir{DataPt}}; # free memory now
3233
+ # set the pointer
3234
+ my $offset = $$subdir{Offset};
3235
+ # if offset is in valBuff, it was added to the end of dirBuff
3236
+ # (plus 4 bytes for nextIFD pointer)
3237
+ $offset += length($dirBuff) + 4 if $$subdir{Where} eq 'valBuff';
3238
+ $offset += $newStart + 2; # get offset in newData
3239
+ # check to be sure we got the right offset
3240
+ unless (Get32u(\$newData, $offset) == 0xfeedf00d) {
3241
+ $et->Error("Internal error while rewriting $name");
3242
+ return undef;
3243
+ }
3244
+ # set the offset to the subdirectory data
3245
+ Set32u($len, \$newData, $offset);
3246
+ $fixup->AddFixup($offset); # add fixup for this offset in newData
3247
+ }
3248
+ }
3249
+ # add fixup for all offsets in directory according to value data position
3250
+ # (which is at the end of this directory)
3251
+ if ($dirFixup) {
3252
+ $$dirFixup{Start} = $newStart + 2;
3253
+ $$dirFixup{Shift} = $valPos - $$dirFixup{Start};
3254
+ $fixup->AddFixup($dirFixup);
3255
+ }
3256
+ # add valueData fixups, adjusting for position of value data
3257
+ my $valFixup;
3258
+ foreach $valFixup (@valFixups) {
3259
+ $$valFixup{Start} += $valPos;
3260
+ $fixup->AddFixup($valFixup);
3261
+ }
3262
+ # stop if no next IFD pointer
3263
+ last unless $isNextIFD; # stop unless scanning for multiple IFD's
3264
+ if ($nextIfdOffset) {
3265
+ # continue with next IFD
3266
+ $dirStart = $nextIfdOffset - $dataPos;
3267
+ } else {
3268
+ # create IFD1 if necessary
3269
+ $verbose and print $out " Creating IFD1\n";
3270
+ my $ifd1 = "\0" x 2; # empty IFD1 data (zero entry count)
3271
+ $dataPt = \$ifd1;
3272
+ $dirStart = 0;
3273
+ $dirLen = $dataLen = 2;
3274
+ }
3275
+ # increment IFD name
3276
+ my $ifdNum = $dirName =~ s/(\d+)$// ? $1 : 0;
3277
+ $dirName .= $ifdNum + 1;
3278
+ $name =~ s/\d+$//;
3279
+ $name .= $ifdNum + 1;
3280
+ $$et{DIR_NAME} = $$et{PATH}[-1] = $dirName;
3281
+ next unless $nextIfdOffset;
3282
+
3283
+ # guard against writing the same directory twice
3284
+ my $addr = $nextIfdOffset + $base;
3285
+ if ($$et{PROCESSED}{$addr}) {
3286
+ $et->Error("$name pointer references previous $$et{PROCESSED}{$addr} directory", 1);
3287
+ last;
3288
+ }
3289
+ $$et{PROCESSED}{$addr} = $name;
3290
+
3291
+ if ($dirName eq 'SubIFD1' and not ValidateIFD($dirInfo, $dirStart)) {
3292
+ if ($$et{TIFF_TYPE} eq 'TIFF') {
3293
+ $et->Error('Ignored bad IFD linked from SubIFD', 1);
3294
+ } elsif ($verbose) {
3295
+ $et->Warn('Ignored bad IFD linked from SubIFD');
3296
+ }
3297
+ last; # don't write bad IFD
3298
+ }
3299
+ if ($$et{DEL_GROUP}{$dirName}) {
3300
+ $verbose and print $out " Deleting $dirName\n";
3301
+ $raf and $et->Error("Deleting $dirName also deletes subsequent" .
3302
+ " IFD's and possibly image data", 1);
3303
+ ++$$et{CHANGED};
3304
+ if ($$et{DEL_GROUP}{$dirName} == 2 and
3305
+ $$et{ADD_DIRS}{$dirName})
3306
+ {
3307
+ my $emptyIFD = "\0" x 2; # start with empty IFD
3308
+ $dataPt = \$emptyIFD;
3309
+ $dirStart = 0;
3310
+ $dirLen = $dataLen = 2;
3311
+ } else {
3312
+ last; # don't write this IFD (or any subsequent IFD)
3313
+ }
3314
+ } else {
3315
+ $verbose and print $out " Rewriting $name\n";
3316
+ }
3317
+ }
3318
+ #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3319
+
3320
+ # do our fixups now so we can more easily calculate offsets below
3321
+ $fixup->ApplyFixup(\$newData);
3322
+ #
3323
+ # determine total block size for deferred data
3324
+ #
3325
+ my $numBlocks = scalar @imageData; # save this so we scan only existing blocks later
3326
+ my $blockSize = 0; # total size of blocks to copy later
3327
+ my $blockInfo;
3328
+ foreach $blockInfo (@imageData) {
3329
+ my ($pos, $size, $pad) = @$blockInfo;
3330
+ $blockSize += $size + $pad;
3331
+ }
3332
+ #
3333
+ # copy over image data for IFD's, starting with the last IFD first
3334
+ #
3335
+ if (@offsetInfo) {
3336
+ my $ttwLen; # length of MRW TTW segment
3337
+ my @writeLater; # write image data last
3338
+ for ($ifd=$#offsetInfo; $ifd>=-1; --$ifd) {
3339
+ # build list of offsets to process
3340
+ my @offsetList;
3341
+ if ($ifd >= 0) {
3342
+ my $offsetInfo = $offsetInfo[$ifd] or next;
3343
+ # patch Panasonic RAW/RW2 StripOffsets/StripByteCounts if necessary
3344
+ my $stripOffsets = $$offsetInfo{0x111};
3345
+ if ($stripOffsets and $$stripOffsets[0]{PanasonicHack}) {
3346
+ require Image::ExifTool::PanasonicRaw;
3347
+ my $err = Image::ExifTool::PanasonicRaw::PatchRawDataOffset($offsetInfo, $raf, $ifd);
3348
+ $err and $et->Error($err);
3349
+ }
3350
+ my $tagID;
3351
+ # loop through all tags in reverse order so we save thumbnail
3352
+ # data before main image data if both exist in the same IFD
3353
+ foreach $tagID (reverse sort keys %$offsetInfo) {
3354
+ my $tagInfo = $$offsetInfo{$tagID}[0];
3355
+ next unless $$tagInfo{IsOffset}; # handle byte counts with offsets
3356
+ my $sizeInfo = $$offsetInfo{$$tagInfo{OffsetPair}};
3357
+ $sizeInfo or $et->Error("No size tag for $dirName:$$tagInfo{Name}"), next;
3358
+ my $dataTag = $$tagInfo{DataTag};
3359
+ # write TIFF image data (strips or tiles) later if requested
3360
+ if ($raf and defined $$origDirInfo{ImageData} and
3361
+ ($tagID == 0x111 or $tagID == 0x144 or
3362
+ # also defer writing of other big data such as JpgFromRaw in NEF
3363
+ ($$sizeInfo[3][0] and
3364
+ # (calculate approximate combined size of all blocks)
3365
+ $$sizeInfo[3][0] * scalar(@{$$sizeInfo[3]}) > 1000000)) and
3366
+ # but don't defer writing if replacing with new value
3367
+ (not defined $dataTag or not defined $offsetData{$dataTag}))
3368
+ {
3369
+ push @writeLater, [ $$offsetInfo{$tagID}, $sizeInfo ];
3370
+ } else {
3371
+ push @offsetList, [ $$offsetInfo{$tagID}, $sizeInfo ];
3372
+ }
3373
+ }
3374
+ } else {
3375
+ last unless @writeLater;
3376
+ @offsetList = @writeLater;
3377
+ }
3378
+ my $offsetPair;
3379
+ foreach $offsetPair (@offsetList) {
3380
+ my ($tagInfo, $offsets, $count, $oldOffset) = @{$$offsetPair[0]};
3381
+ my ($cntInfo, $byteCounts, $count2, $oldSize, $format) = @{$$offsetPair[1]};
3382
+ # must be the same number of offset and byte count values
3383
+ unless ($count == $count2) {
3384
+ $et->Error("Offsets/ByteCounts disagree on count for $$tagInfo{Name}");
3385
+ return undef;
3386
+ }
3387
+ my $formatStr = $formatName[$format];
3388
+ # follow pointer to value data if necessary
3389
+ $count > 1 and $offsets = Get32u(\$newData, $offsets);
3390
+ my $n = $count * $formatSize[$format];
3391
+ $n > 4 and $byteCounts = Get32u(\$newData, $byteCounts);
3392
+ if ($byteCounts < 0 or $byteCounts + $n > length($newData)) {
3393
+ $et->Error("Error reading $$tagInfo{Name} byte counts");
3394
+ return undef;
3395
+ }
3396
+ # get offset base and data pos (abnormal for some preview images)
3397
+ my ($dbase, $dpos, $wrongBase, $subIfdDataFixup);
3398
+ if ($$tagInfo{IsOffset} eq '2') {
3399
+ $dbase = $firstBase;
3400
+ $dpos = $dataPos + $base - $firstBase;
3401
+ } else {
3402
+ $dbase = $base;
3403
+ $dpos = $dataPos;
3404
+ }
3405
+ # use different base if necessary for some offsets (Minolta A200)
3406
+ if ($$tagInfo{WrongBase}) {
3407
+ my $self = $et;
3408
+ #### eval WrongBase ($self)
3409
+ $wrongBase = eval $$tagInfo{WrongBase} || 0;
3410
+ $dbase += $wrongBase;
3411
+ $dpos -= $wrongBase;
3412
+ } else {
3413
+ $wrongBase = 0;
3414
+ }
3415
+ my $oldOrder = GetByteOrder();
3416
+ my $dataTag = $$tagInfo{DataTag};
3417
+ # use different byte order for values of this offset pair if required (Minolta A200)
3418
+ SetByteOrder($$tagInfo{ByteOrder}) if $$tagInfo{ByteOrder};
3419
+ # transfer the data referenced by all offsets of this tag
3420
+ for ($n=0; $n<$count; ++$n) {
3421
+ my ($oldEnd, $size);
3422
+ if (@$oldOffset and @$oldSize) {
3423
+ # calculate end offset of this block
3424
+ $oldEnd = $$oldOffset[$n] + $$oldSize[$n];
3425
+ # update TIFF_END as if we read this data from file
3426
+ UpdateTiffEnd($et, $oldEnd + $dbase);
3427
+ }
3428
+ my $offsetPos = $offsets + $n * 4;
3429
+ my $byteCountPos = $byteCounts + $n * $formatSize[$format];
3430
+ if ($$tagInfo{PanasonicHack}) {
3431
+ # use actual raw data length (may be different than StripByteCounts!)
3432
+ $size = $$oldSize[$n];
3433
+ } else {
3434
+ # use size of new data
3435
+ $size = ReadValue(\$newData, $byteCountPos, $formatStr, 1, 4);
3436
+ }
3437
+ my $offset = $$oldOffset[$n];
3438
+ if (defined $offset) {
3439
+ $offset -= $dpos;
3440
+ } elsif ($size != 0xfeedfeed) {
3441
+ $et->Error('Internal error (no offset)');
3442
+ return undef;
3443
+ }
3444
+ my $newOffset = length($newData) - $wrongBase;
3445
+ my $buff;
3446
+ # look for 'feed' code to use our new data
3447
+ if ($size == 0xfeedfeed) {
3448
+ unless (defined $dataTag) {
3449
+ $et->Error("No DataTag defined for $$tagInfo{Name}");
3450
+ return undef;
3451
+ }
3452
+ unless (defined $offsetData{$dataTag}) {
3453
+ $et->Error("Internal error (no $dataTag)");
3454
+ return undef;
3455
+ }
3456
+ if ($count > 1) {
3457
+ $et->Error("Can't modify $$tagInfo{Name} with count $count");
3458
+ return undef;
3459
+ }
3460
+ $buff = $offsetData{$dataTag};
3461
+ if ($formatSize[$format] != 4) {
3462
+ $et->Error("$$cntInfo{Name} is not int32");
3463
+ return undef;
3464
+ }
3465
+ # set the data size
3466
+ $size = length($buff);
3467
+ Set32u($size, \$newData, $byteCountPos);
3468
+ } elsif ($ifd < 0) {
3469
+ # pad if necessary (but don't pad contiguous image blocks)
3470
+ my $pad = 0;
3471
+ ++$pad if $size & 0x01 and ($n+1 >= $count or not $oldEnd or
3472
+ $oldEnd != $$oldOffset[$n+1]);
3473
+ # preserve original image padding if specified
3474
+ if ($$origDirInfo{PreserveImagePadding} and $n+1 < $count and
3475
+ $oldEnd and $$oldOffset[$n+1] > $oldEnd)
3476
+ {
3477
+ $pad = $$oldOffset[$n+1] - $oldEnd;
3478
+ }
3479
+ # copy data later
3480
+ push @imageData, [$offset+$dbase+$dpos, $size, $pad];
3481
+ $newOffset += $blockSize; # data comes after other deferred data
3482
+ # create fixup for SubIFD ImageData
3483
+ if ($imageDataFlag eq 'SubIFD' and not $subIfdDataFixup) {
3484
+ $subIfdDataFixup = new Image::ExifTool::Fixup;
3485
+ $imageData[-1][4] = $subIfdDataFixup;
3486
+ }
3487
+ $size += $pad; # account for pad byte if necessary
3488
+ # return ImageData list
3489
+ $$origDirInfo{ImageData} = \@imageData;
3490
+ } elsif ($offset >= 0 and $offset+$size <= $dataLen) {
3491
+ # take data from old dir data buffer
3492
+ $buff = substr($$dataPt, $offset, $size);
3493
+ } elsif ($$et{TIFF_TYPE} eq 'MRW') {
3494
+ # TTW segment must be an even 4 bytes long, so pad now if necessary
3495
+ my $n = length $newData;
3496
+ $buff = ($n & 0x03) ? "\0" x (4 - ($n & 0x03)) : '';
3497
+ $size = length($buff);
3498
+ # data exists after MRW TTW segment
3499
+ $ttwLen = length($newData) + $size unless defined $ttwLen;
3500
+ $newOffset = $offset + $dpos + $ttwLen - $dataLen;
3501
+ } elsif ($raf and $raf->Seek($offset+$dbase+$dpos,0) and
3502
+ $raf->Read($buff,$size) == $size)
3503
+ {
3504
+ # (data was read OK)
3505
+ # patch incorrect ThumbnailOffset in Sony A100 1.00 ARW images
3506
+ if ($$et{TIFF_TYPE} eq 'ARW' and $$tagInfo{Name} eq 'ThumbnailOffset' and
3507
+ $$et{Model} eq 'DSLR-A100' and $buff !~ /^\xff\xd8\xff/)
3508
+ {
3509
+ my $pos = $offset + $dbase + $dpos;
3510
+ my $try;
3511
+ if ($pos < 0x10000 and $raf->Seek($pos+0x10000,0) and
3512
+ $raf->Read($try,$size) == $size and $try =~ /^\xff\xd8\xff/)
3513
+ {
3514
+ $buff = $try;
3515
+ $et->Warn('Adjusted incorrect A100 ThumbnailOffset', 1);
3516
+ } else {
3517
+ $et->Error('Invalid ThumbnailImage');
3518
+ }
3519
+ }
3520
+ } elsif ($$tagInfo{Name} eq 'ThumbnailOffset' and $offset>=0 and $offset<$dataLen) {
3521
+ # Grrr. The Canon 350D writes the thumbnail with an incorrect byte count
3522
+ my $diff = $offset + $size - $dataLen;
3523
+ $et->Warn("ThumbnailImage runs outside EXIF data by $diff bytes (truncated)",1);
3524
+ # set the size to the available data
3525
+ $size -= $diff;
3526
+ unless (WriteValue($size, $formatStr, 1, \$newData, $byteCountPos)) {
3527
+ warn 'Internal error writing thumbnail size';
3528
+ }
3529
+ # get the truncated image
3530
+ $buff = substr($$dataPt, $offset, $size);
3531
+ } elsif ($$tagInfo{Name} eq 'PreviewImageStart' and $$et{FILE_TYPE} eq 'JPEG') {
3532
+ # try to load the preview image using the specified offset
3533
+ undef $buff;
3534
+ my $r = $$et{RAF};
3535
+ if ($r and not $raf) {
3536
+ my $tell = $r->Tell();
3537
+ # read and validate
3538
+ undef $buff unless $r->Seek($offset+$base+$dataPos,0) and
3539
+ $r->Read($buff,$size) == $size and
3540
+ $buff =~ /^.\xd8\xff[\xc4\xdb\xe0-\xef]/s;
3541
+ $r->Seek($tell, 0) or $et->Error('Seek error'), return undef;
3542
+ }
3543
+ # set flag if we must load PreviewImage
3544
+ $buff = 'LOAD_PREVIEW' unless defined $buff;
3545
+ } else {
3546
+ my $dataName = $dataTag || $$tagInfo{Name};
3547
+ return undef if $et->Error("Error reading $dataName data in $name", $inMakerNotes);
3548
+ $buff = '';
3549
+ }
3550
+ if ($$tagInfo{Name} eq 'PreviewImageStart') {
3551
+ if ($$et{FILE_TYPE} eq 'JPEG' and not $$tagInfo{MakerPreview}) {
3552
+ # hold onto the PreviewImage until we can determine if it fits
3553
+ $$et{PREVIEW_INFO} or $$et{PREVIEW_INFO} = {
3554
+ Data => $buff,
3555
+ Fixup => new Image::ExifTool::Fixup,
3556
+ };
3557
+ if ($$tagInfo{IsOffset} and $$tagInfo{IsOffset} eq '2') {
3558
+ $$et{PREVIEW_INFO}{NoBaseShift} = 1;
3559
+ }
3560
+ if ($offset >= 0 and $offset+$size <= $dataLen) {
3561
+ # set flag indicating this preview wasn't in a trailer
3562
+ $$et{PREVIEW_INFO}{WasContained} = 1;
3563
+ }
3564
+ $buff = '';
3565
+ } elsif ($$et{TIFF_TYPE} eq 'ARW' and $$et{Model} eq 'DSLR-A100') {
3566
+ # the A100 double-references the same preview, so ignore the
3567
+ # second one (the offset and size will be patched later)
3568
+ next if $$et{A100PreviewLength};
3569
+ $$et{A100PreviewLength} = length $buff if defined $buff;
3570
+ }
3571
+ }
3572
+ # update offset accordingly and add to end of new data
3573
+ Set32u($newOffset, \$newData, $offsetPos);
3574
+ # add a pointer to fix up this offset value (marked with DataTag name)
3575
+ $fixup->AddFixup($offsetPos, $dataTag);
3576
+ # also add to subIfdDataFixup if necessary
3577
+ $subIfdDataFixup->AddFixup($offsetPos, $dataTag) if $subIfdDataFixup;
3578
+ # must also (sometimes) update StripOffsets in Panasonic RW2 images
3579
+ my $otherPos = $$offsetPair[0][5];
3580
+ if ($otherPos and $$tagInfo{PanasonicHack}) {
3581
+ Set32u($newOffset, \$newData, $otherPos);
3582
+ $fixup->AddFixup($otherPos, $dataTag);
3583
+ }
3584
+ if ($ifd >= 0) {
3585
+ # buff length must be even (Note: may have changed since $size was set)
3586
+ $buff .= "\0" if length($buff) & 0x01;
3587
+ $newData .= $buff; # add this strip to the data
3588
+ } else {
3589
+ $blockSize += $size; # keep track of total size
3590
+ }
3591
+ }
3592
+ SetByteOrder($oldOrder);
3593
+ }
3594
+ }
3595
+ # verify that nothing else got written after determining TTW length
3596
+ if (defined $ttwLen and $ttwLen != length($newData)) {
3597
+ $et->Error('Internal error writing MRW TTW');
3598
+ }
3599
+ }
3600
+ #
3601
+ # set offsets and generate fixups for tag values which were too large for memory
3602
+ #
3603
+ $blockSize = 0;
3604
+ foreach $blockInfo (@imageData) {
3605
+ my ($pos, $size, $pad, $entry, $subFix) = @$blockInfo;
3606
+ if (defined $entry) {
3607
+ my $format = Get16u(\$newData, $entry + 2);
3608
+ if ($format < 1 or $format > 13) {
3609
+ $et->Error('Internal error copying huge value');
3610
+ last;
3611
+ } else {
3612
+ # set count and offset in directory entry
3613
+ Set32u($size / $formatSize[$format], \$newData, $entry + 4);
3614
+ Set32u(length($newData)+$blockSize, \$newData, $entry + 8);
3615
+ $fixup->AddFixup($entry + 8);
3616
+ # create special fixup for SubIFD data
3617
+ if ($imageDataFlag eq 'SubIFD') {
3618
+ my $subIfdDataFixup = new Image::ExifTool::Fixup;
3619
+ $subIfdDataFixup->AddFixup($entry + 8);
3620
+ # save fixup in imageData list
3621
+ $$blockInfo[4] = $subIfdDataFixup;
3622
+ }
3623
+ # must reset entry pointer so we don't use it again in a parent IFD!
3624
+ $$blockInfo[3] = undef;
3625
+ }
3626
+ }
3627
+ # apply additional shift required for contained SubIFD image data offsets
3628
+ if ($subFix and defined $$subFix{BlockLen} and $numBlocks > 0) {
3629
+ # our offset expects the data at the end of the SubIFD block (BlockLen + Start),
3630
+ # but it will actually be at length($newData) + $blockSize. So adjust
3631
+ # accordingly (and subtract an extra Start because this shift is applied later)
3632
+ $$subFix{Shift} += length($newData) - $$subFix{BlockLen} - 2 * $$subFix{Start} + $blockSize;
3633
+ $subFix->ApplyFixup(\$newData);
3634
+ }
3635
+ $blockSize += $size + $pad;
3636
+ --$numBlocks;
3637
+ }
3638
+ #
3639
+ # apply final shift to new data position if this is the top level IFD
3640
+ #
3641
+ unless ($$dirInfo{Fixup}) {
3642
+ my $hdrPtr = $$dirInfo{HeaderPtr};
3643
+ my $newDataPos = $hdrPtr ? length $$hdrPtr : $$dirInfo{NewDataPos} || 0;
3644
+ # adjust CanonVRD offset to point to end of regular TIFF if necessary
3645
+ # (NOTE: This will be incorrect if multiple trailers exist,
3646
+ # but it is unlikely that it could ever be correct in this case anyway.
3647
+ # Also, this doesn't work for JPEG images (but CanonDPP doesn't set
3648
+ # this when editing JPEG images anyway))
3649
+ $fixup->SetMarkerPointers(\$newData, 'CanonVRD', length($newData) + $blockSize);
3650
+ if ($newDataPos) {
3651
+ $$fixup{Shift} += $newDataPos;
3652
+ $fixup->ApplyFixup(\$newData);
3653
+ }
3654
+ # save fixup for adjusting Leica trailer offset if necessary
3655
+ $$et{LeicaTrailer}{Fixup}->AddFixup($fixup) if $$et{LeicaTrailer};
3656
+ # save fixup for PreviewImage in JPEG file if necessary
3657
+ my $previewInfo = $$et{PREVIEW_INFO};
3658
+ if ($previewInfo) {
3659
+ my $pt = \$$previewInfo{Data}; # image data or 'LOAD_PREVIEW' flag
3660
+ # now that we know the size of the EXIF data, first test to see if our new image fits
3661
+ # inside the EXIF segment (remember about the TIFF and EXIF headers: 8+6 bytes)
3662
+ if (($$pt ne 'LOAD_PREVIEW' and length($$pt) + length($newData) + 14 <= 0xfffd and
3663
+ not $$previewInfo{IsTrailer}) or
3664
+ $$previewInfo{IsShort}) # must fit in this segment if using short pointers
3665
+ {
3666
+ # It fits! (or must exist in EXIF segment), so fixup the
3667
+ # PreviewImage pointers and stuff the preview image in here
3668
+ my $newPos = length($newData) + $newDataPos;
3669
+ $newPos += ($$previewInfo{BaseShift} || 0);
3670
+ if ($$previewInfo{Relative}) {
3671
+ # calculate our base by looking at how far the pointer got shifted
3672
+ $newPos -= ($fixup->GetMarkerPointers(\$newData, 'PreviewImage') || 0);
3673
+ }
3674
+ $fixup->SetMarkerPointers(\$newData, 'PreviewImage', $newPos);
3675
+ $newData .= $$pt;
3676
+ # set flag to delete old preview unless it was contained in the EXIF
3677
+ $$et{DEL_PREVIEW} = 1 unless $$et{PREVIEW_INFO}{WasContained};
3678
+ delete $$et{PREVIEW_INFO}; # done with our preview data
3679
+ } else {
3680
+ # Doesn't fit, or we still don't know, so save fixup information
3681
+ # and put the preview at the end of the file
3682
+ $$previewInfo{Fixup} or $$previewInfo{Fixup} = new Image::ExifTool::Fixup;
3683
+ $$previewInfo{Fixup}->AddFixup($fixup);
3684
+ }
3685
+ } elsif (defined $newData and $deleteAll) {
3686
+ $newData = ''; # delete both IFD0 and IFD1 since only mandatory tags remain
3687
+ } elsif ($$et{A100PreviewLength}) {
3688
+ # save preview image start for patching A100 quirks later
3689
+ $$et{A100PreviewStart} = $fixup->GetMarkerPointers(\$newData, 'PreviewImage');
3690
+ }
3691
+ # save location of last IFD for use in Canon RAW header
3692
+ if ($newDataPos == 16) {
3693
+ my @ifdPos = $fixup->GetMarkerPointers(\$newData,'NextIFD');
3694
+ $$origDirInfo{LastIFD} = pop @ifdPos;
3695
+ }
3696
+ # recrypt SR2 SubIFD data if necessary
3697
+ my $key = $$et{SR2SubIFDKey};
3698
+ if ($key) {
3699
+ my $start = $fixup->GetMarkerPointers(\$newData, 'SR2SubIFDOffset');
3700
+ my $len = $$et{SR2SubIFDLength};
3701
+ # (must subtract 8 for size of TIFF header)
3702
+ if ($start and $start - 8 + $len <= length $newData) {
3703
+ require Image::ExifTool::Sony;
3704
+ Image::ExifTool::Sony::Decrypt(\$newData, $start - 8, $len, $key);
3705
+ }
3706
+ }
3707
+ }
3708
+ # return empty string if no entries in directory
3709
+ # (could be up to 10 bytes and still be empty)
3710
+ $newData = '' if defined $newData and length($newData) < 12;
3711
+
3712
+ return $newData; # return our directory data
3713
+ }
3714
+
3715
+ 1; # end
3716
+
3717
+ __END__
3718
+
3719
+ =head1 NAME
3720
+
3721
+ Image::ExifTool::WriteExif.pl - Write EXIF meta information
3722
+
3723
+ =head1 SYNOPSIS
3724
+
3725
+ This file is autoloaded by Image::ExifTool::Exif.
3726
+
3727
+ =head1 DESCRIPTION
3728
+
3729
+ This file contains routines to write EXIF metadata.
3730
+
3731
+ =head1 AUTHOR
3732
+
3733
+ Copyright 2003-2015, Phil Harvey (phil at owl.phy.queensu.ca)
3734
+
3735
+ This library is free software; you can redistribute it and/or modify it
3736
+ under the same terms as Perl itself.
3737
+
3738
+ =head1 SEE ALSO
3739
+
3740
+ L<Image::ExifTool::Exif(3pm)|Image::ExifTool::Exif>,
3741
+ L<Image::ExifTool(3pm)|Image::ExifTool>
3742
+
3743
+ =cut