exiftool_vendored 10.31.0 → 10.40.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.
- checksums.yaml +4 -4
- data/bin/Image-ExifTool-10.40/Changes +7693 -0
- data/bin/Image-ExifTool-10.40/MANIFEST +998 -0
- data/bin/Image-ExifTool-10.40/META.json +51 -0
- data/bin/Image-ExifTool-10.40/META.yml +31 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/Makefile.PL +0 -0
- data/bin/Image-ExifTool-10.40/README +240 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/arg_files/exif2iptc.args +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/arg_files/exif2xmp.args +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/arg_files/gps2xmp.args +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/arg_files/iptc2exif.args +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/arg_files/iptc2xmp.args +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/arg_files/iptcCore.args +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/arg_files/pdf2xmp.args +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/arg_files/xmp2exif.args +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/arg_files/xmp2gps.args +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/arg_files/xmp2iptc.args +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/arg_files/xmp2pdf.args +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/config_files/bibble.config +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/config_files/convert_regions.config +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/config_files/example.config +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/config_files/fotoware.config +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/config_files/gps2utm.config +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/config_files/photoshop_paths.config +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/config_files/picasa_faces.config +0 -0
- data/bin/Image-ExifTool-10.40/config_files/time_zone.config +76 -0
- data/bin/Image-ExifTool-10.40/exiftool +6462 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/fmt_files/gpx.fmt +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/fmt_files/gpx_wpt.fmt +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/fmt_files/kml.fmt +0 -0
- data/bin/Image-ExifTool-10.40/html/ExifTool.html +2122 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/MIE1.1-20070121.pdf +0 -0
- data/bin/Image-ExifTool-10.40/html/Shift.html +179 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/AFCP.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/AIFF.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/APE.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/APP12.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/ASF.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Apple.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Audible.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/BMP.html +233 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/BPG.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/Canon.html +9741 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/CanonCustom.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/CanonRaw.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/CanonVRD.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Casio.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/Composite.html +745 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/DICOM.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/DJI.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/DNG.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/DPX.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/DV.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/DarwinCore.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/DjVu.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/EXE.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/EXIF.html +3484 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/Extra.html +471 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/FLAC.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/FLIF.html +84 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/FLIR.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Flash.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/FlashPix.html +1475 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Font.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/FotoStation.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/FujiFilm.html +867 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/GE.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/GIF.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/GIMP.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/GPS.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/GeoTiff.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/H264.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/HP.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/HTML.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/ICC_Profile.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/ID3.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/IPTC.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/ISO.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/ITC.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/JFIF.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/JPEG.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/JVC.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Jpeg2000.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Kodak.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/KyoceraRaw.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/LNK.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Leaf.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Lytro.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/M2TS.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/MIE.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/MIFF.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/MNG.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/MOI.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/MPC.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/MPEG.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/MPF.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/MWG.html +584 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/MXF.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Matroska.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Microsoft.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/Minolta.html +2634 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/MinoltaRaw.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Motorola.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/Nikon.html +6016 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/NikonCapture.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/NikonCustom.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Nintendo.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/OOXML.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Ogg.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/Olympus.html +3655 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/OpenEXR.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Opus.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/PDF.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/PGF.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/PICT.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/PLIST.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/PLUS.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/PNG.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/PSP.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Palm.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/Panasonic.html +1701 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/PanasonicRaw.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Pentax.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/PhaseOne.html +263 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/PhotoCD.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/PhotoMechanic.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/Photoshop.html +739 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/PostScript.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/PrintIM.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Qualcomm.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/QuickTime.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/RIFF.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/RSRC.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/RTF.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Radiance.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Rawzor.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Real.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Reconyx.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Ricoh.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Samsung.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Sanyo.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Scalado.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Shortcuts.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Sigma.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/SigmaRaw.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/Sony.html +10305 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/SonyIDC.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Stim.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Theora.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Torrent.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Unknown.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/VCard.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/Vorbis.html +0 -0
- data/bin/Image-ExifTool-10.40/html/TagNames/XMP.html +10158 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/ZIP.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/iWork.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/index.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/TagNames/style.css +0 -0
- data/bin/Image-ExifTool-10.40/html/ancient_history.html +8365 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/canon_raw.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/commentary.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/config.html +0 -0
- data/bin/Image-ExifTool-10.40/html/data_members.html +286 -0
- data/bin/Image-ExifTool-10.40/html/exiftool_pod.html +1873 -0
- data/bin/Image-ExifTool-10.40/html/faq.html +1591 -0
- data/bin/Image-ExifTool-10.40/html/filename.html +353 -0
- data/bin/Image-ExifTool-10.40/html/geotag.html +661 -0
- data/bin/Image-ExifTool-10.40/html/history.html +317 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/htmldump.html +0 -0
- data/bin/Image-ExifTool-10.40/html/idiosyncracies.html +272 -0
- data/bin/Image-ExifTool-10.40/html/index.html +1363 -0
- data/bin/Image-ExifTool-10.40/html/install.html +261 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/metafiles.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/overview.png +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/standards.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/struct.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/style.css +0 -0
- data/bin/Image-ExifTool-10.40/html/under.html +137 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/verbose.html +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/html/writing.html +0 -0
- data/bin/Image-ExifTool-10.40/lib/File/RandomAccess.pm +378 -0
- data/bin/Image-ExifTool-10.40/lib/File/RandomAccess.pod +231 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool.pm +7773 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool.pod +2569 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/AES.pm +501 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/AFCP.pm +286 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/AIFF.pm +289 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/APE.pm +282 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/APP12.pm +322 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/ASF.pm +885 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Apple.pm +153 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Audible.pm +317 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/BMP.pm +361 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/BPG.pm +251 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/BZZ.pm +472 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/BigTIFF.pm +282 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/BuildTagLookup.pm +2562 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Canon.pm +8929 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/CanonCustom.pm +2667 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/CanonRaw.pm +910 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/CanonVRD.pm +2273 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/CaptureOne.pm +235 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Casio.pm +2060 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Charset.pm +423 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/Arabic.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/Baltic.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/Cyrillic.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/Greek.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/Hebrew.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/JIS.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/Latin.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/Latin2.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacArabic.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacChineseCN.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacChineseTW.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacCroatian.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacCyrillic.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacGreek.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacHebrew.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacIceland.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacJapanese.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacKorean.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacLatin2.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacRSymbol.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacRoman.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacRomanian.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacThai.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/MacTurkish.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/PDFDoc.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/ShiftJIS.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/Symbol.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/Thai.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/Turkish.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/lib/Image/ExifTool/Charset/Vietnam.pm +0 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/DICOM.pm +3874 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/DJI.pm +71 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/DNG.pm +835 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/DPX.pm +182 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/DV.pm +319 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/DarwinCore.pm +322 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/DjVu.pm +376 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/EXE.pm +1401 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Exif.pm +6097 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/FLAC.pm +297 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/FLIF.pm +353 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/FLIR.pm +1535 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Fixup.pm +366 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Flash.pm +755 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/FlashPix.pm +1960 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Font.pm +647 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/FotoStation.pm +261 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/FujiFilm.pm +1264 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/GE.pm +81 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/GIF.pm +542 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/GIMP.pm +258 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/GPS.pm +559 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/GeoTiff.pm +2263 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Geotag.pm +1287 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/H264.pm +1110 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/HP.pm +263 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/HTML.pm +576 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/HtmlDump.pm +898 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/ICC_Profile.pm +1013 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/ID3.pm +1570 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/IPTC.pm +1264 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/ISO.pm +206 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/ITC.pm +215 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Import.pm +329 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/InDesign.pm +277 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/JPEG.pm +605 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/JPEGDigest.pm +2616 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/JVC.pm +130 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Jpeg2000.pm +898 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Kodak.pm +2096 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/KyoceraRaw.pm +173 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/LNK.pm +723 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/cs.pm +1588 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/de.pm +8692 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/en_ca.pm +940 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/en_gb.pm +983 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/es.pm +4019 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/fi.pm +2854 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/fr.pm +4758 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/it.pm +7918 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/ja.pm +5835 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/ko.pm +2330 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/nl.pm +3222 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/pl.pm +1276 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/ru.pm +768 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/sv.pm +638 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/tr.pm +544 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/zh_cn.pm +1330 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lang/zh_tw.pm +801 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Leaf.pm +517 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Lytro.pm +217 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/M2TS.pm +729 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/MIE.pm +2564 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/MIEUnits.pod +377 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/MIFF.pm +279 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/MNG.pm +684 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/MOI.pm +158 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/MPC.pm +156 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/MPEG.pm +736 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/MPF.pm +288 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/MWG.pm +757 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/MXF.pm +3031 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/MakerNotes.pm +1745 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Matroska.pm +932 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Microsoft.pm +904 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Minolta.pm +2996 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/MinoltaRaw.pm +535 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Motorola.pm +62 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Nikon.pm +8173 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/NikonCapture.pm +940 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/NikonCustom.pm +8682 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Nintendo.pm +128 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/OOXML.pm +409 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Ogg.pm +240 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Olympus.pm +3998 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/OpenEXR.pm +323 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Opus.pm +98 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/PDF.pm +2367 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/PGF.pm +143 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/PICT.pm +1260 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/PLIST.pm +448 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/PLUS.pm +2607 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/PNG.pm +1255 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/PPM.pm +169 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/PSP.pm +306 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Palm.pm +403 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Panasonic.pm +2378 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/PanasonicRaw.pm +643 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Pentax.pm +6135 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/PhaseOne.pm +725 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/PhotoCD.pm +507 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/PhotoMechanic.pm +256 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Photoshop.pm +952 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/PostScript.pm +699 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/PrintIM.pm +125 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Qualcomm.pm +1344 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/QuickTime.pm +6708 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/README +1010 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/RIFF.pm +1587 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/RSRC.pm +241 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/RTF.pm +383 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Radiance.pm +144 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Rawzor.pm +189 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Real.pm +739 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Reconyx.pm +190 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Ricoh.pm +1150 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Samsung.pm +1271 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Sanyo.pm +440 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Scalado.pm +141 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Shift.pl +627 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Shortcuts.pm +338 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Sigma.pm +764 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/SigmaRaw.pm +670 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Sony.pm +9800 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/SonyIDC.pm +333 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Stim.pm +196 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/TagInfoXML.pm +827 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/TagLookup.pm +9515 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/TagNames.pod +30714 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Theora.pm +145 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Torrent.pm +317 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Unknown.pm +66 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/VCard.pm +405 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Vorbis.pm +255 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/WriteCanonRaw.pl +637 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/WriteExif.pl +2483 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/WriteIPTC.pl +706 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/WritePDF.pl +771 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/WritePNG.pl +390 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/WritePhotoshop.pl +266 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/WritePostScript.pl +772 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/WriteQuickTime.pl +358 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/WriteXMP.pl +1381 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/Writer.pl +6322 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/XMP.pm +3897 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/XMP2.pl +1705 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/XMPStruct.pl +843 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/ZIP.pm +667 -0
- data/bin/Image-ExifTool-10.40/lib/Image/ExifTool/iWork.pm +223 -0
- data/bin/Image-ExifTool-10.40/perl-Image-ExifTool.spec +113 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/AFCP.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/AFCP_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/AFCP_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/AIFF.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/AIFF_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/APE.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/APE_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/APE_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ASF.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ASF_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Apple.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Apple_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Audible.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Audible_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/BMP.t +0 -0
- data/bin/Image-ExifTool-10.40/t/BMP_2.out +24 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/BPG.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/BPG_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/BigTIFF.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/BigTIFF_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Canon.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonRaw.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonRaw_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonRaw_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonRaw_5.out +0 -0
- data/bin/Image-ExifTool-10.40/t/CanonRaw_6.out +233 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonRaw_7.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_11.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_12.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_13.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_14.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_15.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_16.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_17.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_18.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_19.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_20.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_21.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_5.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_6.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_7.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_8.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/CanonVRD_9.out +0 -0
- data/bin/Image-ExifTool-10.40/t/Canon_2.out +358 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Canon_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Casio.t +0 -0
- data/bin/Image-ExifTool-10.40/t/Casio_2.out +72 -0
- data/bin/Image-ExifTool-10.40/t/Casio_3.out +102 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Casio_4.out +0 -0
- data/bin/Image-ExifTool-10.40/t/Casio_5.out +80 -0
- data/bin/Image-ExifTool-10.40/t/Casio_6.out +117 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/DICOM.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/DICOM_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/DNG.t +0 -0
- data/bin/Image-ExifTool-10.40/t/DNG_2.out +329 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/DNG_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/DPX.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/DPX_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/DV.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/DV_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/DjVu.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/DjVu_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/EXE.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/EXE_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/EXE_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/EXE_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/EXE_5.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/EXE_6.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/EXE_7.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_16.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_17.out +0 -0
- data/bin/Image-ExifTool-10.40/t/ExifTool_2.out +427 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_20.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_21.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_22.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_23.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_24.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_25.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_26.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_27.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_28.out +0 -0
- data/bin/Image-ExifTool-10.40/t/ExifTool_29.out +426 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_30.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_5.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_6.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_7.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_8.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ExifTool_9.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FLAC.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FLAC_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FLAC_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FLIF.t +0 -0
- data/bin/Image-ExifTool-10.40/t/FLIF_2.out +51 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FLIF_3.out +0 -0
- data/bin/Image-ExifTool-10.40/t/FLIF_4.out +18 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FLIF_5.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FLIF_6.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FLIR.t +0 -0
- data/bin/Image-ExifTool-10.40/t/FLIR_2.out +118 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FLIR_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Flash.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FlashPix.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FlashPix_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Flash_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Flash_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Font.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Font_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Font_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Font_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Font_5.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Font_6.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Font_7.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FotoStation.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FotoStation_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FotoStation_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FujiFilm.t +0 -0
- data/bin/Image-ExifTool-10.40/t/FujiFilm_2.out +89 -0
- data/bin/Image-ExifTool-10.40/t/FujiFilm_3.out +90 -0
- data/bin/Image-ExifTool-10.40/t/FujiFilm_4.out +143 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/FujiFilm_5.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/GE.t +0 -0
- data/bin/Image-ExifTool-10.40/t/GE_2.out +86 -0
- data/bin/Image-ExifTool-10.40/t/GE_3.out +86 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/GIF.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/GIF_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/GIF_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/GIF_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/GIMP.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/GIMP_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/GPS.t +0 -0
- data/bin/Image-ExifTool-10.40/t/GPS_2.out +96 -0
- data/bin/Image-ExifTool-10.40/t/GPS_3.out +98 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/GeoTiff.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/GeoTiff_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/GeoTiff_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/GeoTiff_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Geotag.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Geotag_10.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Geotag_11.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Geotag_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Geotag_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Geotag_5.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Geotag_6.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Geotag_7.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Geotag_8.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Geotag_9.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/HTML.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/HTML_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/IPTC.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/IPTC_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/IPTC_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/IPTC_5.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/IPTC_6.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/IPTC_7.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/IPTC_8.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ISO.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ISO_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ITC.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ITC_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/InDesign.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/InDesign_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/InDesign_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/InDesign_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/JVC.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/JVC_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/JVC_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Jpeg2000.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Jpeg2000_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Jpeg2000_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Jpeg2000_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Kodak.t +0 -0
- data/bin/Image-ExifTool-10.40/t/Kodak_2.out +111 -0
- data/bin/Image-ExifTool-10.40/t/Kodak_3.out +121 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/KyoceraRaw.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/KyoceraRaw_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/LNK.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/LNK_2.out +0 -0
- data/bin/Image-ExifTool-10.40/t/Lang.t +42 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Lang_1.out +0 -0
- data/bin/Image-ExifTool-10.40/t/Lang_10.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_11.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_12.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_13.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_14.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_15.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_16.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_17.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_18.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_2.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_3.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_4.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_5.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_6.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_7.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_8.out +47 -0
- data/bin/Image-ExifTool-10.40/t/Lang_9.out +47 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Lytro.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Lytro_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/M2TS.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/M2TS_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MIE.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MIE_2.out +0 -0
- data/bin/Image-ExifTool-10.40/t/MIE_3.out +136 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MIE_5.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MIE_6.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MIFF.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MIFF_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MOI.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MOI_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MP3.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MP3_2.out +0 -0
- data/bin/Image-ExifTool-10.40/t/MWG.t +99 -0
- data/bin/Image-ExifTool-10.40/t/MWG_2.out +13 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MWG_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MWG_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MWG_5.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MWG_6.out +0 -0
- data/bin/Image-ExifTool-10.40/t/MWG_7.out +11 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MXF.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/MXF_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Matroska.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Matroska_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Minolta.t +0 -0
- data/bin/Image-ExifTool-10.40/t/Minolta_2.out +135 -0
- data/bin/Image-ExifTool-10.40/t/Minolta_3.out +148 -0
- data/bin/Image-ExifTool-10.40/t/Minolta_4.out +150 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Motorola.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Motorola_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Nikon.t +0 -0
- data/bin/Image-ExifTool-10.40/t/Nikon_2.out +84 -0
- data/bin/Image-ExifTool-10.40/t/Nikon_3.out +100 -0
- data/bin/Image-ExifTool-10.40/t/Nikon_4.out +176 -0
- data/bin/Image-ExifTool-10.40/t/Nikon_5.out +169 -0
- data/bin/Image-ExifTool-10.40/t/Nikon_7.out +261 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Nikon_8.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Olympus.t +0 -0
- data/bin/Image-ExifTool-10.40/t/Olympus_2.out +81 -0
- data/bin/Image-ExifTool-10.40/t/Olympus_3.out +83 -0
- data/bin/Image-ExifTool-10.40/t/Olympus_4.out +194 -0
- data/bin/Image-ExifTool-10.40/t/Olympus_5.out +266 -0
- data/bin/Image-ExifTool-10.40/t/Olympus_6.out +153 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Olympus_7.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Olympus_8.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/OpenEXR.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/OpenEXR_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Opus.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Opus_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_10.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_11.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_12.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_14.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_15.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_16.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_17.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_18.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_19.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_20.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_22.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_5.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_6.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_7.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_8.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PDF_9.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PGF.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PGF_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PICT.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PICT_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PLIST.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PLIST_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PLIST_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PLUS.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PLUS_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PNG.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PNG_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PNG_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PNG_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PNG_5.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PPM.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PPM_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PPM_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PSP.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PSP_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Palm.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Palm_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Panasonic.t +0 -0
- data/bin/Image-ExifTool-10.40/t/Panasonic_2.out +101 -0
- data/bin/Image-ExifTool-10.40/t/Panasonic_3.out +121 -0
- data/bin/Image-ExifTool-10.40/t/Panasonic_4.out +206 -0
- data/bin/Image-ExifTool-10.40/t/Panasonic_5.out +244 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Pentax.t +0 -0
- data/bin/Image-ExifTool-10.40/t/Pentax_2.out +225 -0
- data/bin/Image-ExifTool-10.40/t/Pentax_3.out +266 -0
- data/bin/Image-ExifTool-10.40/t/Pentax_4.out +132 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PhaseOne.t +0 -0
- data/bin/Image-ExifTool-10.40/t/PhaseOne_2.out +99 -0
- data/bin/Image-ExifTool-10.40/t/PhaseOne_3.out +170 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PhotoCD.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PhotoCD_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PhotoMechanic.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PhotoMechanic_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PhotoMechanic_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Photoshop.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Photoshop_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Photoshop_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PostScript.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PostScript_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/PostScript_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/QuickTime.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/QuickTime_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/QuickTime_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/QuickTime_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/QuickTime_5.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/RIFF.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/RIFF_2.out +0 -0
- data/bin/Image-ExifTool-10.40/t/RIFF_3.out +55 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/RIFF_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/RTF.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/RTF_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Radiance.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Radiance_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Real.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Real_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Real_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Real_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Ricoh.t +0 -0
- data/bin/Image-ExifTool-10.40/t/Ricoh_2.out +72 -0
- data/bin/Image-ExifTool-10.40/t/Ricoh_3.out +100 -0
- data/bin/Image-ExifTool-10.40/t/Ricoh_4.out +114 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Sanyo.t +0 -0
- data/bin/Image-ExifTool-10.40/t/Sanyo_2.out +103 -0
- data/bin/Image-ExifTool-10.40/t/Sanyo_3.out +113 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Sigma.t +0 -0
- data/bin/Image-ExifTool-10.40/t/Sigma_2.out +93 -0
- data/bin/Image-ExifTool-10.40/t/Sigma_3.out +96 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Sigma_4.out +0 -0
- data/bin/Image-ExifTool-10.40/t/Sigma_5.out +194 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Sony.t +0 -0
- data/bin/Image-ExifTool-10.40/t/Sony_2.out +86 -0
- data/bin/Image-ExifTool-10.40/t/Sony_3.out +87 -0
- data/bin/Image-ExifTool-10.40/t/Sony_5.out +34 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/TestLib.pm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Torrent.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Torrent_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Unknown.t +0 -0
- data/bin/Image-ExifTool-10.40/t/Unknown_2.out +92 -0
- data/bin/Image-ExifTool-10.40/t/Unknown_3.out +92 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/VCard.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/VCard_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/VCard_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Vorbis.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Vorbis_2.out +0 -0
- data/bin/Image-ExifTool-10.40/t/Writer.t +1071 -0
- data/bin/Image-ExifTool-10.40/t/Writer_10.out +246 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_11.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_13.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_14.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_15.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_16.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_17.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_18.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_19.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_22.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_24.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_25.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_26.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_27.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_28.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_29.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_30.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_31.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_32.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_33.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_34.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_35.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_36.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_37.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_38.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_39.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_40.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_41.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_42.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_43.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_44.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_45.out +0 -0
- data/bin/Image-ExifTool-10.40/t/Writer_46.out +111 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_47.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_48.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_50.out +0 -0
- data/bin/Image-ExifTool-10.40/t/Writer_51.out +414 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_52.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_53.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_54.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_55.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_56.out +0 -0
- data/bin/Image-ExifTool-10.40/t/Writer_58.out +44 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_6.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/Writer_7.out +0 -0
- data/bin/Image-ExifTool-10.40/t/Writer_9.out +243 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_10.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_11.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_12.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_13.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_14.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_15.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_16.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_17.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_18.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_19.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_20.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_21.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_22.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_23.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_24.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_25.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_26.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_27.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_28.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_29.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_30.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_31.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_32.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_34.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_36.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_37.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_39.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_40.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_41.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_42.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_43.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_44.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_45.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_5.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_6.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_7.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_8.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/XMP_9.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ZIP.t +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ZIP_2.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ZIP_3.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ZIP_4.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ZIP_5.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ZIP_6.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/ZIP_7.out +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/AFCP.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/AIFF.aif +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/APE.ape +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/APE.mpc +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/ASF.wmv +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Apple.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Audible.aa +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/BMP.bmp +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/BPG.bpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/BigTIFF.btf +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Canon.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Canon1DmkIII.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/CanonRaw.cr2 +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/CanonRaw.crw +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/CanonVRD.dr4 +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/CanonVRD.vrd +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/CaptureOne.eip +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Casio.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Casio2.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/CasioQVCI.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/DICOM.dcm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/DNG.dng +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/DPX.dpx +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/DV.dv +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/DjVu.djvu +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/EXE.a +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/EXE.dylib +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/EXE.elf +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/EXE.exe +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/EXE.macho +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/EXE.so +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/ExifTool.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/ExifTool.tif +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/ExtendedXMP.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/FLAC.flac +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/FLAC.ogg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/FLIF.flif +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/FLIR.fpf +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/FLIR.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Flash.flv +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Flash.swf +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/FlashPix.ppt +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Font.afm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Font.dfont +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Font.pfa +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Font.pfb +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Font.pfm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Font.ttf +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/FotoStation.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/FujiFilm.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/FujiFilm.raf +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/GE.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/GIF.gif +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/GIMP.xcf +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/GPS.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/GeoTiff.tif +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Geotag.gpx +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Geotag.igc +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Geotag.kml +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Geotag.log +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Geotag.xml +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Geotag2.log +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Geotag3.log +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/HTML.html +0 -0
- data/bin/Image-ExifTool-10.40/t/images/ICC_Profile.icc +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/IPTC.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/ISO.iso +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/ITC.itc +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/InDesign.indd +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/JVC.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/JVC2.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Jpeg2000.j2c +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Jpeg2000.jp2 +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Kodak.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/KyoceraRaw.raw +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/LNK.lnk +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Lytro.lfp +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/M2TS.mts +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/MIE.mie +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/MIFF.miff +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/MOI.moi +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/MP3.mp3 +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/MWG.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/MXF.mxf +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Matroska.mkv +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Minolta.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Minolta.mrw +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Motorola.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Nikon.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Nikon.nef +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/NikonD2Hs.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/NikonD70.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/OOXML.docx +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Olympus.dss +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Olympus.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Olympus2.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/OlympusE1.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/OpenDoc.ods +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/OpenEXR.exr +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Opus.opus +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/PDF.pdf +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/PDF2.pdf +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/PGF.pgf +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/PICT.pict +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/PLIST-bin.plist +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/PLIST-xml.plist +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/PLUS.xmp +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/PNG.png +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/PPM.ppm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/PSP.psp +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Palm.mobi +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Panasonic.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Panasonic.rw2 +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Pentax.avi +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Pentax.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/PhaseOne.iiq +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/PhotoCD.pcd +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/PhotoMechanic.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Photoshop.psd +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/PostScript.eps +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/QuickTime.m4a +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/QuickTime.mov +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/RIFF.avi +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/RIFF.wav +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/RIFF.webp +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/RTF.rtf +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Radiance.hdr +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Real.ra +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Real.ram +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Real.rm +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Ricoh.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Ricoh2.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Sanyo.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Sigma.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Sigma.x3f +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/SigmaDP2.x3f +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Sony.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Sony.pmp +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Torrent.torrent +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Unknown.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/VCard.ics +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/VCard.vcf +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Vorbis.ogg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/Writer.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/XMP.inx +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/XMP.jpg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/XMP.svg +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/XMP.xml +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/XMP.xmp +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/XMP2.xmp +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/XMP3.xmp +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/XMP4.xmp +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/XMP5.xmp +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/XMP6.xmp +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/ZIP.gz +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/ZIP.zip +0 -0
- data/bin/{Image-ExifTool-10.31 → Image-ExifTool-10.40}/t/images/iWork.numbers +0 -0
- data/lib/exiftool_vendored/version.rb +1 -1
- metadata +1000 -997
- data/bin/Image-ExifTool-10.31/Changes +0 -7604
- data/bin/Image-ExifTool-10.31/MANIFEST +0 -995
- data/bin/Image-ExifTool-10.31/META.json +0 -51
- data/bin/Image-ExifTool-10.31/META.yml +0 -31
- data/bin/Image-ExifTool-10.31/README +0 -239
- data/bin/Image-ExifTool-10.31/config_files/time_zone.config +0 -56
- data/bin/Image-ExifTool-10.31/exiftool +0 -6431
- data/bin/Image-ExifTool-10.31/html/ExifTool.html +0 -2114
- data/bin/Image-ExifTool-10.31/html/Shift.html +0 -209
- data/bin/Image-ExifTool-10.31/html/TagNames/BMP.html +0 -110
- data/bin/Image-ExifTool-10.31/html/TagNames/Canon.html +0 -9740
- data/bin/Image-ExifTool-10.31/html/TagNames/Composite.html +0 -739
- data/bin/Image-ExifTool-10.31/html/TagNames/EXIF.html +0 -3482
- data/bin/Image-ExifTool-10.31/html/TagNames/Extra.html +0 -469
- data/bin/Image-ExifTool-10.31/html/TagNames/FLIF.html +0 -79
- data/bin/Image-ExifTool-10.31/html/TagNames/FlashPix.html +0 -1465
- data/bin/Image-ExifTool-10.31/html/TagNames/FujiFilm.html +0 -849
- data/bin/Image-ExifTool-10.31/html/TagNames/MWG.html +0 -584
- data/bin/Image-ExifTool-10.31/html/TagNames/Minolta.html +0 -2633
- data/bin/Image-ExifTool-10.31/html/TagNames/Nikon.html +0 -6002
- data/bin/Image-ExifTool-10.31/html/TagNames/Olympus.html +0 -3655
- data/bin/Image-ExifTool-10.31/html/TagNames/Panasonic.html +0 -1700
- data/bin/Image-ExifTool-10.31/html/TagNames/PhaseOne.html +0 -253
- data/bin/Image-ExifTool-10.31/html/TagNames/Photoshop.html +0 -739
- data/bin/Image-ExifTool-10.31/html/TagNames/Sony.html +0 -10219
- data/bin/Image-ExifTool-10.31/html/TagNames/XMP.html +0 -9332
- data/bin/Image-ExifTool-10.31/html/ancient_history.html +0 -8209
- data/bin/Image-ExifTool-10.31/html/data_members.html +0 -280
- data/bin/Image-ExifTool-10.31/html/exiftool_pod.html +0 -2567
- data/bin/Image-ExifTool-10.31/html/faq.html +0 -1589
- data/bin/Image-ExifTool-10.31/html/filename.html +0 -352
- data/bin/Image-ExifTool-10.31/html/geotag.html +0 -658
- data/bin/Image-ExifTool-10.31/html/history.html +0 -375
- data/bin/Image-ExifTool-10.31/html/idiosyncracies.html +0 -272
- data/bin/Image-ExifTool-10.31/html/index.html +0 -1358
- data/bin/Image-ExifTool-10.31/html/install.html +0 -259
- data/bin/Image-ExifTool-10.31/html/under.html +0 -128
- data/bin/Image-ExifTool-10.31/lib/File/RandomAccess.pm +0 -378
- data/bin/Image-ExifTool-10.31/lib/File/RandomAccess.pod +0 -231
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool.pm +0 -7765
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool.pod +0 -2556
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/AES.pm +0 -501
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/AFCP.pm +0 -286
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/AIFF.pm +0 -289
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/APE.pm +0 -282
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/APP12.pm +0 -322
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/ASF.pm +0 -885
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Apple.pm +0 -153
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Audible.pm +0 -317
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/BMP.pm +0 -179
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/BPG.pm +0 -251
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/BZZ.pm +0 -472
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/BigTIFF.pm +0 -282
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/BuildTagLookup.pm +0 -2563
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Canon.pm +0 -8926
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/CanonCustom.pm +0 -2667
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/CanonRaw.pm +0 -910
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/CanonVRD.pm +0 -2273
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/CaptureOne.pm +0 -235
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Casio.pm +0 -2058
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Charset.pm +0 -423
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/DICOM.pm +0 -3874
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/DJI.pm +0 -71
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/DNG.pm +0 -835
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/DPX.pm +0 -182
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/DV.pm +0 -319
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/DarwinCore.pm +0 -322
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/DjVu.pm +0 -376
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/EXE.pm +0 -1401
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Exif.pm +0 -6038
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/FLAC.pm +0 -297
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/FLIF.pm +0 -345
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/FLIR.pm +0 -1533
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Fixup.pm +0 -366
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Flash.pm +0 -755
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/FlashPix.pm +0 -1935
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Font.pm +0 -647
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/FotoStation.pm +0 -261
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/FujiFilm.pm +0 -1257
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/GE.pm +0 -81
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/GIF.pm +0 -542
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/GIMP.pm +0 -258
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/GPS.pm +0 -558
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/GeoTiff.pm +0 -2263
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Geotag.pm +0 -1287
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/H264.pm +0 -1110
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/HP.pm +0 -263
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/HTML.pm +0 -576
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/HtmlDump.pm +0 -898
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/ICC_Profile.pm +0 -1013
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/ID3.pm +0 -1570
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/IPTC.pm +0 -1264
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/ISO.pm +0 -206
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/ITC.pm +0 -215
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Import.pm +0 -329
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/InDesign.pm +0 -277
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/JPEG.pm +0 -605
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/JPEGDigest.pm +0 -2616
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/JVC.pm +0 -130
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Jpeg2000.pm +0 -898
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Kodak.pm +0 -2096
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/KyoceraRaw.pm +0 -173
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/LNK.pm +0 -723
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/cs.pm +0 -1588
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/de.pm +0 -8692
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/en_ca.pm +0 -934
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/en_gb.pm +0 -977
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/es.pm +0 -4019
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/fi.pm +0 -2854
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/fr.pm +0 -4758
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/it.pm +0 -7918
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/ja.pm +0 -5835
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/ko.pm +0 -2330
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/nl.pm +0 -3222
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/pl.pm +0 -1276
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/ru.pm +0 -768
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/sv.pm +0 -638
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/tr.pm +0 -544
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/zh_cn.pm +0 -1330
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lang/zh_tw.pm +0 -801
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Leaf.pm +0 -517
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Lytro.pm +0 -217
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/M2TS.pm +0 -729
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/MIE.pm +0 -2564
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/MIEUnits.pod +0 -377
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/MIFF.pm +0 -279
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/MNG.pm +0 -684
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/MOI.pm +0 -158
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/MPC.pm +0 -156
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/MPEG.pm +0 -736
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/MPF.pm +0 -292
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/MWG.pm +0 -751
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/MXF.pm +0 -3031
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/MakerNotes.pm +0 -1745
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Matroska.pm +0 -932
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Microsoft.pm +0 -904
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Minolta.pm +0 -2993
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/MinoltaRaw.pm +0 -535
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Motorola.pm +0 -62
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Nikon.pm +0 -8155
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/NikonCapture.pm +0 -940
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/NikonCustom.pm +0 -8682
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Nintendo.pm +0 -128
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/OOXML.pm +0 -409
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Ogg.pm +0 -240
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Olympus.pm +0 -3989
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/OpenEXR.pm +0 -323
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Opus.pm +0 -98
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/PDF.pm +0 -2367
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/PGF.pm +0 -143
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/PICT.pm +0 -1260
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/PLIST.pm +0 -448
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/PLUS.pm +0 -2607
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/PNG.pm +0 -1255
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/PPM.pm +0 -169
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/PSP.pm +0 -306
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Palm.pm +0 -403
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Panasonic.pm +0 -2374
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/PanasonicRaw.pm +0 -643
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Pentax.pm +0 -6133
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/PhaseOne.pm +0 -707
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/PhotoCD.pm +0 -507
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/PhotoMechanic.pm +0 -256
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Photoshop.pm +0 -939
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/PostScript.pm +0 -699
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/PrintIM.pm +0 -125
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Qualcomm.pm +0 -1344
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/QuickTime.pm +0 -6697
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/README +0 -1000
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/RIFF.pm +0 -1587
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/RSRC.pm +0 -241
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/RTF.pm +0 -383
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Radiance.pm +0 -144
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Rawzor.pm +0 -189
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Real.pm +0 -739
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Reconyx.pm +0 -190
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Ricoh.pm +0 -1148
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Samsung.pm +0 -1269
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Sanyo.pm +0 -440
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Scalado.pm +0 -141
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Shift.pl +0 -627
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Shortcuts.pm +0 -338
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Sigma.pm +0 -760
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/SigmaRaw.pm +0 -670
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Sony.pm +0 -9634
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/SonyIDC.pm +0 -332
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Stim.pm +0 -196
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/TagInfoXML.pm +0 -827
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/TagLookup.pm +0 -9367
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/TagNames.pod +0 -30437
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Theora.pm +0 -145
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Torrent.pm +0 -317
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Unknown.pm +0 -66
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/VCard.pm +0 -405
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Vorbis.pm +0 -255
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/WriteCanonRaw.pl +0 -637
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/WriteExif.pl +0 -2472
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/WriteIPTC.pl +0 -706
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/WritePDF.pl +0 -771
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/WritePNG.pl +0 -390
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/WritePhotoshop.pl +0 -266
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/WritePostScript.pl +0 -772
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/WriteQuickTime.pl +0 -358
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/WriteXMP.pl +0 -1381
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/Writer.pl +0 -6260
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/XMP.pm +0 -4087
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/XMP2.pl +0 -1321
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/XMPStruct.pl +0 -843
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/ZIP.pm +0 -667
- data/bin/Image-ExifTool-10.31/lib/Image/ExifTool/iWork.pm +0 -223
- data/bin/Image-ExifTool-10.31/perl-Image-ExifTool.spec +0 -113
- data/bin/Image-ExifTool-10.31/t/BMP_2.out +0 -23
- data/bin/Image-ExifTool-10.31/t/CanonRaw_6.out +0 -233
- data/bin/Image-ExifTool-10.31/t/Canon_2.out +0 -358
- data/bin/Image-ExifTool-10.31/t/Casio_2.out +0 -72
- data/bin/Image-ExifTool-10.31/t/Casio_3.out +0 -102
- data/bin/Image-ExifTool-10.31/t/Casio_5.out +0 -80
- data/bin/Image-ExifTool-10.31/t/Casio_6.out +0 -117
- data/bin/Image-ExifTool-10.31/t/DNG_2.out +0 -329
- data/bin/Image-ExifTool-10.31/t/ExifTool_2.out +0 -427
- data/bin/Image-ExifTool-10.31/t/ExifTool_29.out +0 -426
- data/bin/Image-ExifTool-10.31/t/FLIF_2.out +0 -50
- data/bin/Image-ExifTool-10.31/t/FLIF_4.out +0 -17
- data/bin/Image-ExifTool-10.31/t/FLIR_2.out +0 -118
- data/bin/Image-ExifTool-10.31/t/FujiFilm_2.out +0 -89
- data/bin/Image-ExifTool-10.31/t/FujiFilm_3.out +0 -90
- data/bin/Image-ExifTool-10.31/t/FujiFilm_4.out +0 -143
- data/bin/Image-ExifTool-10.31/t/GE_2.out +0 -86
- data/bin/Image-ExifTool-10.31/t/GE_3.out +0 -86
- data/bin/Image-ExifTool-10.31/t/GPS_2.out +0 -96
- data/bin/Image-ExifTool-10.31/t/GPS_3.out +0 -98
- data/bin/Image-ExifTool-10.31/t/Kodak_2.out +0 -111
- data/bin/Image-ExifTool-10.31/t/Kodak_3.out +0 -121
- data/bin/Image-ExifTool-10.31/t/Lang.t +0 -40
- data/bin/Image-ExifTool-10.31/t/Lang_10.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_11.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_12.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_13.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_14.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_15.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_16.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_17.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_18.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_2.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_3.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_4.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_5.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_6.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_7.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_8.out +0 -46
- data/bin/Image-ExifTool-10.31/t/Lang_9.out +0 -46
- data/bin/Image-ExifTool-10.31/t/MIE_3.out +0 -136
- data/bin/Image-ExifTool-10.31/t/MWG.t +0 -90
- data/bin/Image-ExifTool-10.31/t/MWG_2.out +0 -13
- data/bin/Image-ExifTool-10.31/t/Minolta_2.out +0 -135
- data/bin/Image-ExifTool-10.31/t/Minolta_3.out +0 -148
- data/bin/Image-ExifTool-10.31/t/Minolta_4.out +0 -150
- data/bin/Image-ExifTool-10.31/t/Nikon_2.out +0 -84
- data/bin/Image-ExifTool-10.31/t/Nikon_3.out +0 -100
- data/bin/Image-ExifTool-10.31/t/Nikon_4.out +0 -176
- data/bin/Image-ExifTool-10.31/t/Nikon_5.out +0 -169
- data/bin/Image-ExifTool-10.31/t/Nikon_7.out +0 -261
- data/bin/Image-ExifTool-10.31/t/Olympus_2.out +0 -81
- data/bin/Image-ExifTool-10.31/t/Olympus_3.out +0 -83
- data/bin/Image-ExifTool-10.31/t/Olympus_4.out +0 -194
- data/bin/Image-ExifTool-10.31/t/Olympus_5.out +0 -266
- data/bin/Image-ExifTool-10.31/t/Olympus_6.out +0 -153
- data/bin/Image-ExifTool-10.31/t/Panasonic_2.out +0 -101
- data/bin/Image-ExifTool-10.31/t/Panasonic_3.out +0 -121
- data/bin/Image-ExifTool-10.31/t/Panasonic_4.out +0 -206
- data/bin/Image-ExifTool-10.31/t/Panasonic_5.out +0 -244
- data/bin/Image-ExifTool-10.31/t/Pentax_2.out +0 -225
- data/bin/Image-ExifTool-10.31/t/Pentax_3.out +0 -266
- data/bin/Image-ExifTool-10.31/t/Pentax_4.out +0 -131
- data/bin/Image-ExifTool-10.31/t/PhaseOne_2.out +0 -99
- data/bin/Image-ExifTool-10.31/t/PhaseOne_3.out +0 -170
- data/bin/Image-ExifTool-10.31/t/RIFF_3.out +0 -54
- data/bin/Image-ExifTool-10.31/t/Ricoh_2.out +0 -72
- data/bin/Image-ExifTool-10.31/t/Ricoh_3.out +0 -100
- data/bin/Image-ExifTool-10.31/t/Ricoh_4.out +0 -114
- data/bin/Image-ExifTool-10.31/t/Sanyo_2.out +0 -103
- data/bin/Image-ExifTool-10.31/t/Sanyo_3.out +0 -113
- data/bin/Image-ExifTool-10.31/t/Sigma_2.out +0 -93
- data/bin/Image-ExifTool-10.31/t/Sigma_3.out +0 -96
- data/bin/Image-ExifTool-10.31/t/Sigma_5.out +0 -194
- data/bin/Image-ExifTool-10.31/t/Sony_2.out +0 -86
- data/bin/Image-ExifTool-10.31/t/Sony_3.out +0 -87
- data/bin/Image-ExifTool-10.31/t/Sony_5.out +0 -34
- data/bin/Image-ExifTool-10.31/t/Unknown_2.out +0 -92
- data/bin/Image-ExifTool-10.31/t/Unknown_3.out +0 -92
- data/bin/Image-ExifTool-10.31/t/Writer.t +0 -999
- data/bin/Image-ExifTool-10.31/t/Writer_10.out +0 -246
- data/bin/Image-ExifTool-10.31/t/Writer_46.out +0 -107
- data/bin/Image-ExifTool-10.31/t/Writer_51.out +0 -414
- data/bin/Image-ExifTool-10.31/t/Writer_9.out +0 -243
@@ -1,2472 +0,0 @@
|
|
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
|
-
# some information may be stored in different IFD's with the same meaning.
|
18
|
-
# Use this lookup to decide when we should delete information that is stored
|
19
|
-
# in another IFD when we write it to the preferred IFD.
|
20
|
-
my %crossDelete = (
|
21
|
-
ExifIFD => 'IFD0',
|
22
|
-
IFD0 => 'ExifIFD',
|
23
|
-
);
|
24
|
-
|
25
|
-
# mandatory tag default values
|
26
|
-
my %mandatory = (
|
27
|
-
IFD0 => {
|
28
|
-
0x011a => 72, # XResolution
|
29
|
-
0x011b => 72, # YResolution
|
30
|
-
0x0128 => 2, # ResolutionUnit (inches)
|
31
|
-
0x0213 => 1, # YCbCrPositioning (centered)
|
32
|
-
# 0x8769 => ????, # ExifOffset
|
33
|
-
},
|
34
|
-
IFD1 => {
|
35
|
-
0x0103 => 6, # Compression (JPEG)
|
36
|
-
0x011a => 72, # XResolution
|
37
|
-
0x011b => 72, # YResolution
|
38
|
-
0x0128 => 2, # ResolutionUnit (inches)
|
39
|
-
},
|
40
|
-
ExifIFD => {
|
41
|
-
0x9000 => '0231', # ExifVersion
|
42
|
-
0x9101 => "1 2 3 0",# ComponentsConfiguration
|
43
|
-
0xa000 => '0100', # FlashpixVersion
|
44
|
-
0xa001 => 0xffff, # ColorSpace (uncalibrated)
|
45
|
-
# 0xa002 => ????, # ExifImageWidth
|
46
|
-
# 0xa003 => ????, # ExifImageHeight
|
47
|
-
},
|
48
|
-
GPS => {
|
49
|
-
0x0000 => '2 3 0 0',# GPSVersionID
|
50
|
-
},
|
51
|
-
InteropIFD => {
|
52
|
-
0x0002 => '0100', # InteropVersion
|
53
|
-
},
|
54
|
-
);
|
55
|
-
|
56
|
-
#------------------------------------------------------------------------------
|
57
|
-
# Inverse print conversion for LensInfo
|
58
|
-
# Inputs: 0) lens info string
|
59
|
-
# Returns: PrintConvInv of string
|
60
|
-
sub ConvertLensInfo($)
|
61
|
-
{
|
62
|
-
my $val = shift;
|
63
|
-
my @a = GetLensInfo($val, 1); # (allow unknown "?" values)
|
64
|
-
return @a ? join(' ', @a) : $val;
|
65
|
-
}
|
66
|
-
|
67
|
-
#------------------------------------------------------------------------------
|
68
|
-
# Get binary CFA Pattern from a text string
|
69
|
-
# Inputs: Print-converted CFA pattern (eg. '[Blue,Green][Green,Red]')
|
70
|
-
# Returns: CFA pattern as a string of numbers
|
71
|
-
sub GetCFAPattern($)
|
72
|
-
{
|
73
|
-
my $val = shift;
|
74
|
-
my @rows = split /\]\s*\[/, $val;
|
75
|
-
@rows or warn("Rows not properly bracketed by '[]'\n"), return undef;
|
76
|
-
my @cols = split /,/, $rows[0];
|
77
|
-
@cols or warn("Colors not separated by ','\n"), return undef;
|
78
|
-
my $ny = @cols;
|
79
|
-
my @a = (scalar(@rows), scalar(@cols));
|
80
|
-
my %cfaLookup = (red=>0, green=>1, blue=>2, cyan=>3, magenta=>4, yellow=>5, white=>6);
|
81
|
-
my $row;
|
82
|
-
foreach $row (@rows) {
|
83
|
-
@cols = split /,/, $row;
|
84
|
-
@cols == $ny or warn("Inconsistent number of colors in each row\n"), return undef;
|
85
|
-
foreach (@cols) {
|
86
|
-
tr/ \]\[//d; # remove remaining brackets and any spaces
|
87
|
-
my $c = $cfaLookup{lc($_)};
|
88
|
-
defined $c or warn("Unknown color '$_'\n"), return undef;
|
89
|
-
push @a, $c;
|
90
|
-
}
|
91
|
-
}
|
92
|
-
return "@a";
|
93
|
-
}
|
94
|
-
|
95
|
-
#------------------------------------------------------------------------------
|
96
|
-
# validate raw values for writing
|
97
|
-
# Inputs: 0) ExifTool ref, 1) tagInfo hash ref, 2) raw value ref
|
98
|
-
# Returns: error string or undef (and possibly changes value) on success
|
99
|
-
sub CheckExif($$$)
|
100
|
-
{
|
101
|
-
my ($et, $tagInfo, $valPtr) = @_;
|
102
|
-
my $format = $$tagInfo{Format} || $$tagInfo{Writable} || $$tagInfo{Table}{WRITABLE};
|
103
|
-
if (not $format or $format eq '1') {
|
104
|
-
if ($$tagInfo{Groups}{0} eq 'MakerNotes') {
|
105
|
-
return undef; # OK to have no format for makernotes
|
106
|
-
} else {
|
107
|
-
return 'No writable format';
|
108
|
-
}
|
109
|
-
}
|
110
|
-
return Image::ExifTool::CheckValue($valPtr, $format, $$tagInfo{Count});
|
111
|
-
}
|
112
|
-
|
113
|
-
#------------------------------------------------------------------------------
|
114
|
-
# encode exif ASCII/Unicode text from UTF8 or Latin
|
115
|
-
# Inputs: 0) ExifTool ref, 1) text string
|
116
|
-
# Returns: encoded string
|
117
|
-
# Note: MUST be called Raw conversion time so the EXIF byte order is known!
|
118
|
-
sub EncodeExifText($$)
|
119
|
-
{
|
120
|
-
my ($et, $val) = @_;
|
121
|
-
# does the string contain special characters?
|
122
|
-
if ($val =~ /[\x80-\xff]/) {
|
123
|
-
my $order = $et->GetNewValue('ExifUnicodeByteOrder');
|
124
|
-
return "UNICODE\0" . $et->Encode($val,'UTF16',$order);
|
125
|
-
} else {
|
126
|
-
return "ASCII\0\0\0$val";
|
127
|
-
}
|
128
|
-
}
|
129
|
-
|
130
|
-
#------------------------------------------------------------------------------
|
131
|
-
# rebuild maker notes to properly contain all value data
|
132
|
-
# (some manufacturers put value data outside maker notes!!)
|
133
|
-
# Inputs: 0) ExifTool object ref, 1) tag table ref, 2) dirInfo ref
|
134
|
-
# Returns: new maker note data (and creates MAKER_NOTE_FIXUP), or undef on error
|
135
|
-
sub RebuildMakerNotes($$$)
|
136
|
-
{
|
137
|
-
my ($et, $tagTablePtr, $dirInfo) = @_;
|
138
|
-
my $dirStart = $$dirInfo{DirStart};
|
139
|
-
my $dirLen = $$dirInfo{DirLen};
|
140
|
-
my $dataPt = $$dirInfo{DataPt};
|
141
|
-
my $dataPos = $$dirInfo{DataPos} || 0;
|
142
|
-
my $rtnValue;
|
143
|
-
my %subdirInfo = %$dirInfo;
|
144
|
-
|
145
|
-
delete $$et{MAKER_NOTE_FIXUP};
|
146
|
-
|
147
|
-
# don't need to rebuild text, BinaryData or PreviewImage maker notes
|
148
|
-
my $tagInfo = $$dirInfo{TagInfo};
|
149
|
-
my $subdir = $$tagInfo{SubDirectory};
|
150
|
-
my $proc = $$subdir{ProcessProc} || $$tagTablePtr{PROCESS_PROC} || \&ProcessExif;
|
151
|
-
if (($proc ne \&ProcessExif and $$tagInfo{Name} =~ /Text/) or
|
152
|
-
$proc eq \&Image::ExifTool::ProcessBinaryData or
|
153
|
-
($$tagInfo{PossiblePreview} and $dirLen > 6 and
|
154
|
-
substr($$dataPt, $dirStart, 3) eq "\xff\xd8\xff"))
|
155
|
-
{
|
156
|
-
return substr($$dataPt, $dirStart, $dirLen);
|
157
|
-
}
|
158
|
-
my $saveOrder = GetByteOrder();
|
159
|
-
my $loc = Image::ExifTool::MakerNotes::LocateIFD($et,\%subdirInfo);
|
160
|
-
if (defined $loc) {
|
161
|
-
my $makerFixup = $subdirInfo{Fixup} = new Image::ExifTool::Fixup;
|
162
|
-
# create new exiftool object to rewrite the directory without changing it
|
163
|
-
my $newTool = new Image::ExifTool;
|
164
|
-
$newTool->Options(
|
165
|
-
IgnoreMinorErrors => $$et{OPTIONS}{IgnoreMinorErrors},
|
166
|
-
FixBase => $$et{OPTIONS}{FixBase},
|
167
|
-
);
|
168
|
-
$newTool->Init(); # must do this before calling WriteDirectory()!
|
169
|
-
# don't copy over preview image
|
170
|
-
$newTool->SetNewValue(PreviewImage => '');
|
171
|
-
# copy all transient members over in case they are used for writing
|
172
|
-
# (Make, Model, etc)
|
173
|
-
foreach (grep /[a-z]/, keys %$et) {
|
174
|
-
$$newTool{$_} = $$et{$_};
|
175
|
-
}
|
176
|
-
# fix base offsets if specified
|
177
|
-
$newTool->Options(FixBase => $et->Options('FixBase'));
|
178
|
-
# set GENERATE_PREVIEW_INFO flag so PREVIEW_INFO will be generated
|
179
|
-
$$newTool{GENERATE_PREVIEW_INFO} = 1;
|
180
|
-
# drop any large tags
|
181
|
-
$$newTool{DROP_TAGS} = 1;
|
182
|
-
# initialize other necessary data members
|
183
|
-
$$newTool{FILE_TYPE} = $$et{FILE_TYPE};
|
184
|
-
$$newTool{TIFF_TYPE} = $$et{TIFF_TYPE};
|
185
|
-
# rewrite maker notes
|
186
|
-
$rtnValue = $newTool->WriteDirectory(\%subdirInfo, $tagTablePtr);
|
187
|
-
if (defined $rtnValue and length $rtnValue) {
|
188
|
-
# add the dummy/empty preview image if necessary
|
189
|
-
if ($$newTool{PREVIEW_INFO}) {
|
190
|
-
$makerFixup->SetMarkerPointers(\$rtnValue, 'PreviewImage', length($rtnValue));
|
191
|
-
$rtnValue .= $$newTool{PREVIEW_INFO}{Data};
|
192
|
-
delete $$newTool{PREVIEW_INFO};
|
193
|
-
}
|
194
|
-
# add makernote header
|
195
|
-
if ($loc) {
|
196
|
-
my $hdr = substr($$dataPt, $dirStart, $loc);
|
197
|
-
# special case: convert Pentax/Samsung DNG maker notes to JPEG style
|
198
|
-
# (in JPEG, Pentax makernotes are absolute and start with "AOC\0" for some
|
199
|
-
# models, but in DNG images they are stored in tag 0xc634 of IFD0 and
|
200
|
-
# start with either "PENTAX \0" or "SAMSUNG\0")
|
201
|
-
if ($$dirInfo{Parent} eq 'IFD0' and $hdr =~ /^(PENTAX |SAMSUNG)\0/) {
|
202
|
-
# convert to JPEG-style AOC maker notes if used by this model
|
203
|
-
# (Note: this expression also appears in Exif.pm)
|
204
|
-
if ($$et{Model} =~ /\b(K(-[57mrx]|(10|20|100|110|200)D|2000)|GX(10|20))\b/) {
|
205
|
-
$hdr =~ s/^(PENTAX |SAMSUNG)\0/AOC\0/;
|
206
|
-
# save fixup because AOC maker notes have absolute offsets
|
207
|
-
$$et{MAKER_NOTE_FIXUP} = $makerFixup;
|
208
|
-
}
|
209
|
-
}
|
210
|
-
$rtnValue = $hdr . $rtnValue;
|
211
|
-
# adjust fixup for shift in start position
|
212
|
-
$$makerFixup{Start} += length $hdr;
|
213
|
-
}
|
214
|
-
# shift offsets according to original position of maker notes,
|
215
|
-
# and relative to the makernotes Base
|
216
|
-
$$makerFixup{Shift} += $dataPos + $dirStart +
|
217
|
-
$$dirInfo{Base} - $subdirInfo{Base};
|
218
|
-
# repair incorrect offsets if offsets were fixed
|
219
|
-
$$makerFixup{Shift} += $subdirInfo{FixedBy} || 0;
|
220
|
-
# fix up pointers to the specified offset
|
221
|
-
$makerFixup->ApplyFixup(\$rtnValue);
|
222
|
-
# save fixup information unless offsets were relative
|
223
|
-
unless ($subdirInfo{Relative}) {
|
224
|
-
# set shift so offsets are all relative to start of maker notes
|
225
|
-
$$makerFixup{Shift} -= $dataPos + $dirStart;
|
226
|
-
$$et{MAKER_NOTE_FIXUP} = $makerFixup; # save fixup for later
|
227
|
-
}
|
228
|
-
}
|
229
|
-
}
|
230
|
-
SetByteOrder($saveOrder);
|
231
|
-
|
232
|
-
return $rtnValue;
|
233
|
-
}
|
234
|
-
|
235
|
-
#------------------------------------------------------------------------------
|
236
|
-
# Sort IFD directory entries
|
237
|
-
# Inputs: 0) data reference, 1) directory start, 2) number of entries,
|
238
|
-
# 3) flag to treat 0 as a valid tag ID (as opposed to an empty IFD entry)
|
239
|
-
sub SortIFD($$$;$)
|
240
|
-
{
|
241
|
-
my ($dataPt, $dirStart, $numEntries, $allowZero) = @_;
|
242
|
-
my ($index, %entries);
|
243
|
-
# split the directory into separate entries
|
244
|
-
for ($index=0; $index<$numEntries; ++$index) {
|
245
|
-
my $entry = $dirStart + 2 + 12 * $index;
|
246
|
-
my $tagID = Get16u($dataPt, $entry);
|
247
|
-
my $entryData = substr($$dataPt, $entry, 12);
|
248
|
-
# silly software can pad directories with zero entries -- put these at the end
|
249
|
-
$tagID = 0x10000 unless $tagID or $index == 0 or $allowZero;
|
250
|
-
# add new entry (allow for duplicate tag ID's, which shouldn't normally happen)
|
251
|
-
if ($entries{$tagID}) {
|
252
|
-
$entries{$tagID} .= $entryData;
|
253
|
-
} else {
|
254
|
-
$entries{$tagID} = $entryData;
|
255
|
-
}
|
256
|
-
}
|
257
|
-
# sort the directory entries
|
258
|
-
my @sortedTags = sort { $a <=> $b } keys %entries;
|
259
|
-
# generate the sorted IFD
|
260
|
-
my $newDir = '';
|
261
|
-
foreach (@sortedTags) {
|
262
|
-
$newDir .= $entries{$_};
|
263
|
-
}
|
264
|
-
# replace original directory with new, sorted one
|
265
|
-
substr($$dataPt, $dirStart + 2, 12 * $numEntries) = $newDir;
|
266
|
-
}
|
267
|
-
|
268
|
-
#------------------------------------------------------------------------------
|
269
|
-
# Validate IFD entries (strict validation to test possible chained IFD's)
|
270
|
-
# Inputs: 0) dirInfo ref (must have RAF set), 1) optional DirStart
|
271
|
-
# Returns: true if IFD looks OK
|
272
|
-
sub ValidateIFD($;$)
|
273
|
-
{
|
274
|
-
my ($dirInfo, $dirStart) = @_;
|
275
|
-
my $raf = $$dirInfo{RAF} or return 0;
|
276
|
-
my $base = $$dirInfo{Base};
|
277
|
-
$dirStart = $$dirInfo{DirStart} || 0 unless defined $dirStart;
|
278
|
-
my $offset = $dirStart + ($$dirInfo{DataPos} || 0);
|
279
|
-
my ($buff, $index);
|
280
|
-
$raf->Seek($offset + $base, 0) and $raf->Read($buff,2) == 2 or return 0;
|
281
|
-
my $numEntries = Get16u(\$buff,0);
|
282
|
-
$numEntries > 1 and $numEntries < 64 or return 0;
|
283
|
-
my $len = 12 * $numEntries;
|
284
|
-
$raf->Read($buff, $len) == $len or return 0;
|
285
|
-
my $lastID = -1;
|
286
|
-
for ($index=0; $index<$numEntries; ++$index) {
|
287
|
-
my $entry = 12 * $index;
|
288
|
-
my $tagID = Get16u(\$buff, $entry);
|
289
|
-
$tagID > $lastID or $$dirInfo{AllowOutOfOrderTags} or return 0;
|
290
|
-
my $format = Get16u(\$buff, $entry+2);
|
291
|
-
$format > 0 and $format <= 13 or return 0;
|
292
|
-
my $count = Get32u(\$buff, $entry+4);
|
293
|
-
$count > 0 or return 0;
|
294
|
-
$lastID = $tagID;
|
295
|
-
}
|
296
|
-
return 1;
|
297
|
-
}
|
298
|
-
|
299
|
-
#------------------------------------------------------------------------------
|
300
|
-
# Get sorted list of offsets used in IFD
|
301
|
-
# Inputs: 0) data ref, 1) directory start, 2) dataPos, 3) IFD entries, 4) tag table ref
|
302
|
-
# Returns: 0) sorted list of offsets (only offsets after the end of the IFD)
|
303
|
-
# 1) hash of list indices keyed by offset value
|
304
|
-
# Notes: This is used in a patch to fix the count for tags in Kodak SubIFD3
|
305
|
-
sub GetOffList($$$$$)
|
306
|
-
{
|
307
|
-
my ($dataPt, $dirStart, $dataPos, $numEntries, $tagTablePtr) = @_;
|
308
|
-
my $ifdEnd = $dirStart + 2 + 12 * $numEntries + $dataPos;
|
309
|
-
my ($index, $offset, %offHash);
|
310
|
-
for ($index=0; $index<$numEntries; ++$index) {
|
311
|
-
my $entry = $dirStart + 2 + 12 * $index;
|
312
|
-
my $format = Get16u($dataPt, $entry + 2);
|
313
|
-
next if $format < 1 or $format > 13;
|
314
|
-
my $count = Get16u($dataPt, $entry + 4);
|
315
|
-
my $size = $formatSize[$format] * $count;
|
316
|
-
if ($size <= 4) {
|
317
|
-
my $tagID = Get16u($dataPt, $entry);
|
318
|
-
next unless ref $$tagTablePtr{$tagID} eq 'HASH' and $$tagTablePtr{$tagID}{FixCount};
|
319
|
-
}
|
320
|
-
my $offset = Get16u($dataPt, $entry + 8);
|
321
|
-
$offHash{$offset} = 1 if $offset >= $ifdEnd;
|
322
|
-
}
|
323
|
-
# set offset hash values to indices in list
|
324
|
-
my @offList = sort keys %offHash;
|
325
|
-
$index = 0;
|
326
|
-
foreach $offset (@offList) {
|
327
|
-
$offHash{$offset} = $index++;
|
328
|
-
}
|
329
|
-
return(\@offList, \%offHash);
|
330
|
-
}
|
331
|
-
|
332
|
-
#------------------------------------------------------------------------------
|
333
|
-
# Update TIFF_END member if defined
|
334
|
-
# Inputs: 0) ExifTool ref, 1) end of valid TIFF data
|
335
|
-
sub UpdateTiffEnd($$)
|
336
|
-
{
|
337
|
-
my ($et, $end) = @_;
|
338
|
-
if (defined $$et{TIFF_END} and
|
339
|
-
$$et{TIFF_END} < $end)
|
340
|
-
{
|
341
|
-
$$et{TIFF_END} = $end;
|
342
|
-
}
|
343
|
-
}
|
344
|
-
|
345
|
-
#------------------------------------------------------------------------------
|
346
|
-
# Handle error while writing EXIF
|
347
|
-
# Inputs: 0) ExifTool ref, 1) error string, 2) tag table ref
|
348
|
-
# Returns: undef on fatal error, or '' if minor error is ignored
|
349
|
-
sub ExifErr($$$)
|
350
|
-
{
|
351
|
-
my ($et, $errStr, $tagTablePtr) = @_;
|
352
|
-
# MakerNote errors are minor by default
|
353
|
-
my $minor = ($$tagTablePtr{GROUPS}{0} eq 'MakerNotes');
|
354
|
-
if ($$tagTablePtr{VARS} and $$tagTablePtr{VARS}{MINOR_ERRORS}) {
|
355
|
-
$et->Warn("$errStr. IFD dropped.") and return '' if $minor;
|
356
|
-
$minor = 1;
|
357
|
-
}
|
358
|
-
return undef if $et->Error($errStr, $minor);
|
359
|
-
return '';
|
360
|
-
}
|
361
|
-
|
362
|
-
#------------------------------------------------------------------------------
|
363
|
-
# Read/Write IFD with TIFF-like header (used by DNG 1.2)
|
364
|
-
# Inputs: 0) ExifTool object ref, 1) dirInfo ref, 2) tag table ref
|
365
|
-
# Returns: Reading: 1 on success, otherwise returns 0 and sets a Warning
|
366
|
-
# Writing: new data block or undef on error
|
367
|
-
sub ProcessTiffIFD($$$)
|
368
|
-
{
|
369
|
-
my ($et, $dirInfo, $tagTablePtr) = @_;
|
370
|
-
$et or return 1; # allow dummy access
|
371
|
-
my $raf = $$dirInfo{RAF};
|
372
|
-
my $base = $$dirInfo{Base} || 0;
|
373
|
-
my $dirName = $$dirInfo{DirName};
|
374
|
-
my $magic = $$dirInfo{Subdir}{Magic} || 0x002a;
|
375
|
-
my $buff;
|
376
|
-
|
377
|
-
# structured with a TIFF-like header and relative offsets
|
378
|
-
$raf->Seek($base, 0) and $raf->Read($buff, 8) == 8 or return 0;
|
379
|
-
unless (SetByteOrder(substr($buff,0,2)) and Get16u(\$buff, 2) == $magic) {
|
380
|
-
my $msg = "Invalid $dirName header";
|
381
|
-
if ($$dirInfo{IsWriting}) {
|
382
|
-
$et->Error($msg);
|
383
|
-
return undef;
|
384
|
-
} else {
|
385
|
-
$et->Warn($msg);
|
386
|
-
return 0;
|
387
|
-
}
|
388
|
-
}
|
389
|
-
my $offset = Get32u(\$buff, 4);
|
390
|
-
my %dirInfo = (
|
391
|
-
DirName => $$dirInfo{DirName},
|
392
|
-
Parent => $$dirInfo{Parent},
|
393
|
-
Base => $base,
|
394
|
-
DataPt => \$buff,
|
395
|
-
DataLen => length $buff,
|
396
|
-
DataPos => 0,
|
397
|
-
DirStart => $offset,
|
398
|
-
DirLen => length($buff) - $offset,
|
399
|
-
RAF => $raf,
|
400
|
-
NewDataPos => 8,
|
401
|
-
);
|
402
|
-
if ($$dirInfo{IsWriting}) {
|
403
|
-
# rewrite the Camera Profile IFD
|
404
|
-
my $newDir = WriteExif($et, \%dirInfo, $tagTablePtr);
|
405
|
-
# don't add header if error writing directory ($newDir is undef)
|
406
|
-
# or if directory is being deleted ($newDir is empty)
|
407
|
-
return $newDir unless $newDir;
|
408
|
-
# return directory with TIFF-like header
|
409
|
-
return GetByteOrder() . Set16u($magic) . Set32u(8) . $newDir;
|
410
|
-
}
|
411
|
-
if ($$et{HTML_DUMP}) {
|
412
|
-
my $tip = sprintf("Byte order: %s endian\nIdentifier: 0x%.4x\n%s offset: 0x%.4x",
|
413
|
-
(GetByteOrder() eq 'II') ? 'Little' : 'Big', $magic, $dirName, $offset);
|
414
|
-
$et->HDump($base, 8, "$dirName header", $tip, 0);
|
415
|
-
}
|
416
|
-
return ProcessExif($et, \%dirInfo, $tagTablePtr);
|
417
|
-
}
|
418
|
-
|
419
|
-
#------------------------------------------------------------------------------
|
420
|
-
# Write EXIF directory
|
421
|
-
# Inputs: 0) ExifTool object ref, 1) source dirInfo ref, 2) tag table ref
|
422
|
-
# Returns: Exif data block (may be empty if no Exif data) or undef on error
|
423
|
-
# Notes: Increments ExifTool CHANGED flag for each tag changed. Also updates
|
424
|
-
# TIFF_END if defined with location of end of original TIFF image.
|
425
|
-
# Returns IFD data in the following order:
|
426
|
-
# 1. IFD0 directory followed by its data
|
427
|
-
# 2. SubIFD directory followed by its data, thumbnail and image
|
428
|
-
# 3. GlobalParameters, EXIF, GPS, Interop IFD's each with their data
|
429
|
-
# 4. IFD1,IFD2,... directories each followed by their data
|
430
|
-
# 5. Thumbnail and/or image data for each IFD, with IFD0 image last
|
431
|
-
sub WriteExif($$$)
|
432
|
-
{
|
433
|
-
my ($et, $dirInfo, $tagTablePtr) = @_;
|
434
|
-
$et or return 1; # allow dummy access to autoload this package
|
435
|
-
my $origDirInfo = $dirInfo; # save original dirInfo
|
436
|
-
my $dataPt = $$dirInfo{DataPt};
|
437
|
-
unless ($dataPt) {
|
438
|
-
my $emptyData = '';
|
439
|
-
$dataPt = \$emptyData;
|
440
|
-
}
|
441
|
-
my $dataPos = $$dirInfo{DataPos} || 0;
|
442
|
-
my $dirStart = $$dirInfo{DirStart} || 0;
|
443
|
-
my $dataLen = $$dirInfo{DataLen} || length($$dataPt);
|
444
|
-
my $dirLen = $$dirInfo{DirLen} || ($dataLen - $dirStart);
|
445
|
-
my $base = $$dirInfo{Base} || 0;
|
446
|
-
my $firstBase = $base;
|
447
|
-
my $raf = $$dirInfo{RAF};
|
448
|
-
my $dirName = $$dirInfo{DirName} || 'unknown';
|
449
|
-
my $fixup = $$dirInfo{Fixup} || new Image::ExifTool::Fixup;
|
450
|
-
my $imageDataFlag = $$dirInfo{ImageData} || '';
|
451
|
-
my $verbose = $et->Options('Verbose');
|
452
|
-
my $out = $et->Options('TextOut');
|
453
|
-
my ($nextIfdPos, %offsetData, $inMakerNotes);
|
454
|
-
my (@offsetInfo, %xDelete, $strEnc);
|
455
|
-
my $deleteAll = 0;
|
456
|
-
my $newData = ''; # initialize buffer to receive new directory data
|
457
|
-
my @imageData; # image data blocks to copy later if requested
|
458
|
-
my $name = $$dirInfo{Name};
|
459
|
-
$name = $dirName unless $name and $dirName eq 'MakerNotes' and $name !~ /^MakerNote/;
|
460
|
-
|
461
|
-
# set encoding for strings
|
462
|
-
$strEnc = $et->Options('CharsetEXIF') if $$tagTablePtr{GROUPS}{0} eq 'EXIF';
|
463
|
-
|
464
|
-
# allow multiple IFD's in IFD0-IFD1-IFD2... chain
|
465
|
-
$$dirInfo{Multi} = 1 if $dirName =~ /^(IFD0|SubIFD)$/ and not defined $$dirInfo{Multi};
|
466
|
-
$inMakerNotes = 1 if $$tagTablePtr{GROUPS}{0} eq 'MakerNotes';
|
467
|
-
my $ifd;
|
468
|
-
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
469
|
-
# loop through each IFD
|
470
|
-
#
|
471
|
-
for ($ifd=0; ; ++$ifd) { # loop through multiple IFD's
|
472
|
-
|
473
|
-
# save pointer to start of this IFD within the newData
|
474
|
-
my $newStart = length($newData);
|
475
|
-
my @subdirs; # list of subdirectory data and tag table pointers
|
476
|
-
# determine if directory is contained within our data
|
477
|
-
my $mustRead;
|
478
|
-
if ($dirStart < 0 or $dirStart > $dataLen-2) {
|
479
|
-
$mustRead = 1;
|
480
|
-
} elsif ($dirLen > 2) {
|
481
|
-
my $len = 2 + 12 * Get16u($dataPt, $dirStart);
|
482
|
-
$mustRead = 1 if $dirStart + $len > $dataLen;
|
483
|
-
}
|
484
|
-
# read IFD from file if necessary
|
485
|
-
if ($mustRead) {
|
486
|
-
if ($raf) {
|
487
|
-
# read the count of entries in this IFD
|
488
|
-
my $offset = $dirStart + $dataPos;
|
489
|
-
my ($buff, $buf2);
|
490
|
-
unless ($raf->Seek($offset + $base, 0) and $raf->Read($buff,2) == 2) {
|
491
|
-
return ExifErr($et, "Bad IFD or truncated file in $name", $tagTablePtr);
|
492
|
-
}
|
493
|
-
my $len = 12 * Get16u(\$buff,0);
|
494
|
-
# (also read next IFD pointer if available)
|
495
|
-
unless ($raf->Read($buf2, $len+4) >= $len) {
|
496
|
-
return ExifErr($et, "Error reading $name", $tagTablePtr);
|
497
|
-
}
|
498
|
-
$buff .= $buf2;
|
499
|
-
# make copy of dirInfo since we're going to modify it
|
500
|
-
my %newDirInfo = %$dirInfo;
|
501
|
-
$dirInfo = \%newDirInfo;
|
502
|
-
# update directory parameters for the newly loaded IFD
|
503
|
-
$dataPt = $$dirInfo{DataPt} = \$buff;
|
504
|
-
$dirStart = $$dirInfo{DirStart} = 0;
|
505
|
-
$dataPos = $$dirInfo{DataPos} = $offset;
|
506
|
-
$dataLen = $$dirInfo{DataLen} = length $buff;
|
507
|
-
$dirLen = $$dirInfo{DirLen} = $dataLen;
|
508
|
-
# only account for nextIFD pointer if we are going to use it
|
509
|
-
$len += 4 if $dataLen==$len+6 and ($$dirInfo{Multi} or $buff =~ /\0{4}$/);
|
510
|
-
UpdateTiffEnd($et, $offset+$base+2+$len);
|
511
|
-
} elsif ($dirLen) {
|
512
|
-
# error if we can't load IFD (unless we are creating
|
513
|
-
# from scratch, in which case dirLen will be zero)
|
514
|
-
my $str = $et->Options('IgnoreMinorErrors') ? 'Deleted bad' : 'Bad';
|
515
|
-
$et->Error("$str $name directory", 1);
|
516
|
-
}
|
517
|
-
}
|
518
|
-
my ($index, $dirEnd, $numEntries);
|
519
|
-
if ($dirStart + 4 < $dataLen) {
|
520
|
-
$numEntries = Get16u($dataPt, $dirStart);
|
521
|
-
$dirEnd = $dirStart + 2 + 12 * $numEntries;
|
522
|
-
if ($dirEnd > $dataLen) {
|
523
|
-
return ExifErr($et, "Truncated $name directory", $tagTablePtr);
|
524
|
-
}
|
525
|
-
# sort entries if necessary (but not in maker notes IFDs)
|
526
|
-
unless ($inMakerNotes) {
|
527
|
-
my $lastID = -1;
|
528
|
-
for ($index=0; $index<$numEntries; ++$index) {
|
529
|
-
my $tagID = Get16u($dataPt, $dirStart + 2 + 12 * $index);
|
530
|
-
# check for proper sequence (but ignore null entries at end)
|
531
|
-
if ($tagID < $lastID and ($tagID or $$tagTablePtr{0})) {
|
532
|
-
SortIFD($dataPt, $dirStart, $numEntries, $$tagTablePtr{0});
|
533
|
-
$et->Warn("Entries in $name were out of sequence. Fixed.",1);
|
534
|
-
last;
|
535
|
-
}
|
536
|
-
$lastID = $tagID;
|
537
|
-
}
|
538
|
-
}
|
539
|
-
} else {
|
540
|
-
$numEntries = 0;
|
541
|
-
$dirEnd = $dirStart;
|
542
|
-
}
|
543
|
-
|
544
|
-
# loop through new values and accumulate all information for this IFD
|
545
|
-
my (%set, %mayDelete, $tagInfo);
|
546
|
-
my $wrongDir = $crossDelete{$dirName};
|
547
|
-
foreach $tagInfo ($et->GetNewTagInfoList($tagTablePtr)) {
|
548
|
-
my $tagID = $$tagInfo{TagID};
|
549
|
-
# evaluate conditional lists now if necessary
|
550
|
-
if (ref $$tagTablePtr{$tagID} eq 'ARRAY' or $$tagInfo{Condition}) {
|
551
|
-
my $curInfo = $et->GetTagInfo($tagTablePtr, $tagID);
|
552
|
-
if (defined $curInfo and not $curInfo) {
|
553
|
-
# need value to evaluate the condition
|
554
|
-
my $val = $et->GetNewValue($tagInfo);
|
555
|
-
# must convert to binary for evaluating in Condition
|
556
|
-
my $fmt = $$tagInfo{Writable} || $$tagInfo{Format};
|
557
|
-
if ($fmt and defined $val) {
|
558
|
-
$val = WriteValue($val, $fmt, $$tagInfo{Count});
|
559
|
-
}
|
560
|
-
if (defined $val) {
|
561
|
-
$fmt or $fmt = 'undef';
|
562
|
-
my $cnt = $$tagInfo{Count} || 1;
|
563
|
-
# always use old format/count for Condition in maker notes
|
564
|
-
if ($inMakerNotes) {
|
565
|
-
for ($index=0; $index<$numEntries; ++$index) {
|
566
|
-
my $entry = $dirStart + 2 + 12 * $index;
|
567
|
-
my $id = Get16u($dataPt, $entry);
|
568
|
-
if ($id eq $tagID) {
|
569
|
-
my $f = Get16u($dataPt, $entry + 2);
|
570
|
-
if ($formatName[$f]) {
|
571
|
-
$fmt = $formatName[$f];
|
572
|
-
$cnt = Get32u($dataPt, $entry + 4);
|
573
|
-
}
|
574
|
-
last;
|
575
|
-
}
|
576
|
-
}
|
577
|
-
}
|
578
|
-
$curInfo = $et->GetTagInfo($tagTablePtr, $tagID, \$val, $fmt, $cnt);
|
579
|
-
} else {
|
580
|
-
# may want to delete this, but we need to see the value first
|
581
|
-
$mayDelete{$tagID} = 1;
|
582
|
-
}
|
583
|
-
}
|
584
|
-
# don't set this tag unless valid for the current condition
|
585
|
-
next unless defined $curInfo and $curInfo eq $tagInfo;
|
586
|
-
}
|
587
|
-
if ($$tagInfo{WriteCondition}) {
|
588
|
-
my $self = $et; # set $self to be used in eval
|
589
|
-
#### eval WriteCondition ($self)
|
590
|
-
unless (eval $$tagInfo{WriteCondition}) {
|
591
|
-
$@ and warn $@;
|
592
|
-
next;
|
593
|
-
}
|
594
|
-
}
|
595
|
-
my $nvHash = $et->GetNewValueHash($tagInfo, $dirName);
|
596
|
-
unless ($nvHash) {
|
597
|
-
next unless $wrongDir;
|
598
|
-
# delete stuff from the wrong directory if setting somewhere else
|
599
|
-
$nvHash = $et->GetNewValueHash($tagInfo, $wrongDir);
|
600
|
-
# don't cross delete if not overwriting
|
601
|
-
next unless $et->IsOverwriting($nvHash);
|
602
|
-
# don't cross delete if specifically deleting from the other directory
|
603
|
-
# (Note: don't call GetValue() here because it shouldn't be called
|
604
|
-
# if IsOverwriting returns < 0 -- eg. when shifting)
|
605
|
-
next if not defined $$nvHash{Value} and $$nvHash{WantGroup} and
|
606
|
-
lc($$nvHash{WantGroup}) eq lc($wrongDir);
|
607
|
-
# remove this tag if found in this IFD
|
608
|
-
$xDelete{$tagID} = 1;
|
609
|
-
}
|
610
|
-
if ($set{$tagID}) {
|
611
|
-
# this tag is being set twice, which can happen if two Condition's
|
612
|
-
# were true for this tag. Hopefully the only case where this can
|
613
|
-
# happen is the MakerNotes tag since it may store two very different
|
614
|
-
# types of information (MakerNotes and PreviewImage), but we want
|
615
|
-
# to store the MakerNotes if both are available
|
616
|
-
if ($tagID == 0x927c and $dirName =~ /^(ExifIFD|IFD0)$/) {
|
617
|
-
next if $$tagInfo{Name} eq 'PreviewImage';
|
618
|
-
} else {
|
619
|
-
$et->Warn(sprintf("Multiple new values for $name tag 0x%.4x",$tagID));
|
620
|
-
}
|
621
|
-
}
|
622
|
-
$set{$tagID} = $tagInfo;
|
623
|
-
}
|
624
|
-
|
625
|
-
# fix base offsets (some cameras incorrectly write maker notes in IFD0)
|
626
|
-
if ($dirName eq 'MakerNotes' and $$dirInfo{Parent} =~ /^(ExifIFD|IFD0)$/ and
|
627
|
-
$$et{TIFF_TYPE} !~ /^(ARW|SR2)$/ and not $$et{LeicaTrailerPos} and
|
628
|
-
Image::ExifTool::MakerNotes::FixBase($et, $dirInfo))
|
629
|
-
{
|
630
|
-
# update local variables from fixed values
|
631
|
-
$base = $$dirInfo{Base};
|
632
|
-
$dataPos = $$dirInfo{DataPos};
|
633
|
-
}
|
634
|
-
|
635
|
-
# initialize variables to handle mandatory tags
|
636
|
-
my $mandatory = $mandatory{$dirName};
|
637
|
-
my ($allMandatory, $addMandatory);
|
638
|
-
if ($mandatory) {
|
639
|
-
# use X/Y resolution values from JFIF if available
|
640
|
-
if ($dirName eq 'IFD0' and defined $$et{JFIFYResolution}) {
|
641
|
-
my %ifd0Vals = %$mandatory;
|
642
|
-
$ifd0Vals{0x011a} = $$et{JFIFXResolution};
|
643
|
-
$ifd0Vals{0x011b} = $$et{JFIFYResolution};
|
644
|
-
$ifd0Vals{0x0128} = $$et{JFIFResolutionUnit} + 1;
|
645
|
-
$mandatory = \%ifd0Vals;
|
646
|
-
}
|
647
|
-
$allMandatory = $addMandatory = 0; # initialize to zero
|
648
|
-
# add mandatory tags if creating a new directory
|
649
|
-
unless ($numEntries) {
|
650
|
-
foreach (keys %$mandatory) {
|
651
|
-
$set{$_} or $set{$_} = $$tagTablePtr{$_};
|
652
|
-
}
|
653
|
-
}
|
654
|
-
} else {
|
655
|
-
undef $deleteAll; # don't remove directory (no mandatory entries)
|
656
|
-
}
|
657
|
-
my ($addDirs, @newTags);
|
658
|
-
if ($inMakerNotes) {
|
659
|
-
$addDirs = { }; # can't currently add new directories in MakerNotes
|
660
|
-
# allow non-permanent makernotes tags to be added
|
661
|
-
# (note: we may get into trouble if there are too many of these
|
662
|
-
# because we allow out-of-order tags in MakerNote IFD's but our
|
663
|
-
# logic to add new tags relies on ordered entries)
|
664
|
-
foreach (keys %set) {
|
665
|
-
my $perm = $set{$_}{Permanent};
|
666
|
-
push @newTags, $_ if defined $perm and not $perm;
|
667
|
-
}
|
668
|
-
@newTags = sort { $a <=> $b } @newTags if @newTags > 1;
|
669
|
-
} else {
|
670
|
-
# get a hash of directories we will be writing in this one
|
671
|
-
$addDirs = $et->GetAddDirHash($tagTablePtr, $dirName);
|
672
|
-
# make a union of tags & dirs (can set whole dirs, like MakerNotes)
|
673
|
-
my %allTags = ( %set, %$addDirs );
|
674
|
-
# make sorted list of new tags to be added
|
675
|
-
@newTags = sort { $a <=> $b } keys(%allTags);
|
676
|
-
}
|
677
|
-
my $dirBuff = ''; # buffer for directory data
|
678
|
-
my $valBuff = ''; # buffer for value data
|
679
|
-
my @valFixups; # list of fixups for offsets in valBuff
|
680
|
-
# fixup for offsets in dirBuff
|
681
|
-
my $dirFixup = new Image::ExifTool::Fixup;
|
682
|
-
my $entryBasedFixup;
|
683
|
-
my $lastTagID = -1;
|
684
|
-
my ($oldInfo, $oldFormat, $oldFormName, $oldCount, $oldSize, $oldValue, $oldImageData);
|
685
|
-
my ($readFormat, $readFormName, $readCount); # format for reading old value(s)
|
686
|
-
my ($entry, $valueDataPt, $valueDataPos, $valueDataLen, $valuePtr, $valEnd);
|
687
|
-
my ($offList, $offHash, $ignoreCount, $fixCount);
|
688
|
-
my $oldID = -1;
|
689
|
-
my $newID = -1;
|
690
|
-
|
691
|
-
# patch for Canon EOS 40D firmware 1.0.4 bug (incorrect directory counts)
|
692
|
-
if ($inMakerNotes and $$et{Model} eq 'Canon EOS 40D') {
|
693
|
-
my $fmt = Get16u($dataPt, $dirStart + 2 + 12 * ($numEntries - 1) + 2);
|
694
|
-
if ($fmt < 1 or $fmt > 13) {
|
695
|
-
# adjust the number of directory entries
|
696
|
-
--$numEntries;
|
697
|
-
$dirEnd -= 12;
|
698
|
-
$ignoreCount = 1;
|
699
|
-
}
|
700
|
-
}
|
701
|
-
#..............................................................................
|
702
|
-
# loop through entries in new directory
|
703
|
-
#
|
704
|
-
$index = 0;
|
705
|
-
Entry: for (;;) {
|
706
|
-
|
707
|
-
if (defined $oldID and $oldID == $newID) {
|
708
|
-
#
|
709
|
-
# read next entry from existing directory
|
710
|
-
#
|
711
|
-
if ($index < $numEntries) {
|
712
|
-
$entry = $dirStart + 2 + 12 * $index;
|
713
|
-
$oldID = Get16u($dataPt, $entry);
|
714
|
-
$readFormat = $oldFormat = Get16u($dataPt, $entry+2);
|
715
|
-
$readCount = $oldCount = Get32u($dataPt, $entry+4);
|
716
|
-
undef $oldImageData;
|
717
|
-
if ($oldFormat < 1 or $oldFormat > 13) {
|
718
|
-
my $msg = "Bad format ($oldFormat) for $name entry $index";
|
719
|
-
# patch to preserve invalid directory entries in SubIFD3 of
|
720
|
-
# various Kodak Z-series cameras (Z812, Z1085IS, Z1275)
|
721
|
-
# and some Sony cameras such as the DSC-P10
|
722
|
-
if ($dirName eq 'MakerNotes' and (($$et{Make}=~/KODAK/i and
|
723
|
-
$$dirInfo{Name} and $$dirInfo{Name} eq 'SubIFD3') or
|
724
|
-
($numEntries == 12 and $$et{Make} eq 'SONY' and $index >= 8)))
|
725
|
-
{
|
726
|
-
$dirBuff .= substr($$dataPt, $entry, 12);
|
727
|
-
++$index;
|
728
|
-
$newID = $oldID; # we wrote this
|
729
|
-
$et->Warn($msg, 1);
|
730
|
-
next;
|
731
|
-
}
|
732
|
-
# don't write out null directory entry
|
733
|
-
if ($oldFormat==0 and $index and $oldCount==0) {
|
734
|
-
$ignoreCount = ($ignoreCount || 0) + 1;
|
735
|
-
# must keep same directory size to avoid messing up our fixed offsets
|
736
|
-
$dirBuff .= ("\0" x 12) if $$dirInfo{FixBase};
|
737
|
-
++$index;
|
738
|
-
$newID = $oldID; # pretend we wrote this
|
739
|
-
next;
|
740
|
-
}
|
741
|
-
return ExifErr($et, $msg, $tagTablePtr);
|
742
|
-
}
|
743
|
-
$readFormName = $oldFormName = $formatName[$oldFormat];
|
744
|
-
$valueDataPt = $dataPt;
|
745
|
-
$valueDataPos = $dataPos;
|
746
|
-
$valueDataLen = $dataLen;
|
747
|
-
$valuePtr = $entry + 8;
|
748
|
-
# try direct method first for speed
|
749
|
-
$oldInfo = $$tagTablePtr{$oldID};
|
750
|
-
if (ref $oldInfo ne 'HASH' or $$oldInfo{Condition}) {
|
751
|
-
# must get unknown tags too
|
752
|
-
# (necessary so we don't miss a tag we want to Drop)
|
753
|
-
my $unk = $et->Options(Unknown => 1);
|
754
|
-
$oldInfo = $et->GetTagInfo($tagTablePtr, $oldID);
|
755
|
-
$et->Options(Unknown => $unk);
|
756
|
-
}
|
757
|
-
# patch incorrect count in Kodak SubIFD3 tags
|
758
|
-
if ($oldCount < 2 and $oldInfo and $$oldInfo{FixCount}) {
|
759
|
-
$offList or ($offList, $offHash) = GetOffList($dataPt, $dirStart, $dataPos,
|
760
|
-
$numEntries, $tagTablePtr);
|
761
|
-
my $i = $$offHash{Get32u($dataPt, $valuePtr)};
|
762
|
-
if (defined $i and $i < $#$offList) {
|
763
|
-
$oldCount = int(($$offList[$i+1] - $$offList[$i]) / $formatSize[$oldFormat]);
|
764
|
-
$fixCount = ($fixCount || 0) + 1 if $oldCount != $readCount;
|
765
|
-
}
|
766
|
-
}
|
767
|
-
$oldSize = $oldCount * $formatSize[$oldFormat];
|
768
|
-
my $readFromFile;
|
769
|
-
if ($oldSize > 4) {
|
770
|
-
$valuePtr = Get32u($dataPt, $valuePtr);
|
771
|
-
# fix valuePtr if necessary
|
772
|
-
if ($$dirInfo{FixOffsets}) {
|
773
|
-
$valEnd or $valEnd = $dataPos + $dirStart + 2 + 12 * $numEntries + 4;
|
774
|
-
my ($tagID, $size, $wFlag) = ($oldID, $oldSize, 1);
|
775
|
-
#### eval FixOffsets ($valuePtr, $valEnd, $size, $tagID, $wFlag)
|
776
|
-
eval $$dirInfo{FixOffsets};
|
777
|
-
unless (defined $valuePtr) {
|
778
|
-
unless ($$et{DROP_TAGS}) {
|
779
|
-
my $tagStr = $oldInfo ? $$oldInfo{Name} : sprintf("tag 0x%.4x",$oldID);
|
780
|
-
return undef if $et->Error("Bad $name offset for $tagStr", $inMakerNotes);
|
781
|
-
}
|
782
|
-
++$index; $oldID = $newID; next; # drop this tag
|
783
|
-
}
|
784
|
-
}
|
785
|
-
# offset shouldn't point into TIFF or IFD header
|
786
|
-
my $suspect = ($valuePtr < 8);
|
787
|
-
# convert offset to pointer in $$dataPt
|
788
|
-
if ($$dirInfo{EntryBased} or (ref $$tagTablePtr{$oldID} eq 'HASH' and
|
789
|
-
$$tagTablePtr{$oldID}{EntryBased}))
|
790
|
-
{
|
791
|
-
$valuePtr += $entry;
|
792
|
-
} else {
|
793
|
-
$valuePtr -= $dataPos;
|
794
|
-
}
|
795
|
-
# value shouldn't overlap our directory
|
796
|
-
$suspect = 1 if $valuePtr < $dirEnd and $valuePtr+$oldSize > $dirStart;
|
797
|
-
# get value by seeking in file if we are allowed
|
798
|
-
if ($valuePtr < 0 or $valuePtr+$oldSize > $dataLen) {
|
799
|
-
my ($pos, $tagStr, $invalidPreview, $tmpInfo, $leicaTrailer);
|
800
|
-
if ($oldInfo) {
|
801
|
-
$tagStr = $$oldInfo{Name};
|
802
|
-
$leicaTrailer = $$oldInfo{LeicaTrailer};
|
803
|
-
} elsif (defined $oldInfo) {
|
804
|
-
$tmpInfo = $et->GetTagInfo($tagTablePtr, $oldID, \ '', $oldFormName, $oldCount);
|
805
|
-
if ($tmpInfo) {
|
806
|
-
$tagStr = $$tmpInfo{Name};
|
807
|
-
$leicaTrailer = $$tmpInfo{LeicaTrailer};
|
808
|
-
}
|
809
|
-
}
|
810
|
-
$tagStr or $tagStr = sprintf("tag 0x%.4x",$oldID);
|
811
|
-
# allow PreviewImage to run outside EXIF segment in JPEG images
|
812
|
-
if (not $raf) {
|
813
|
-
if ($tagStr eq 'PreviewImage') {
|
814
|
-
$raf = $$et{RAF};
|
815
|
-
if ($raf) {
|
816
|
-
$pos = $raf->Tell();
|
817
|
-
if ($oldInfo and $$oldInfo{ChangeBase}) {
|
818
|
-
# adjust base offset for this tag only
|
819
|
-
#### eval ChangeBase ($dirStart,$dataPos)
|
820
|
-
my $newBase = eval $$oldInfo{ChangeBase};
|
821
|
-
$valuePtr += $newBase;
|
822
|
-
}
|
823
|
-
} else {
|
824
|
-
$invalidPreview = 1;
|
825
|
-
}
|
826
|
-
} elsif ($leicaTrailer) {
|
827
|
-
# save information about Leica makernote trailer
|
828
|
-
$$et{LeicaTrailer} = {
|
829
|
-
TagInfo => $oldInfo || $tmpInfo,
|
830
|
-
Offset => $base + $valuePtr + $dataPos,
|
831
|
-
Size => $oldSize,
|
832
|
-
Fixup => new Image::ExifTool::Fixup,
|
833
|
-
},
|
834
|
-
$invalidPreview = 2;
|
835
|
-
# remove SubDirectory to prevent processing (for now)
|
836
|
-
my %copy = %{$oldInfo || $tmpInfo};
|
837
|
-
delete $copy{SubDirectory};
|
838
|
-
delete $copy{MakerNotes};
|
839
|
-
$oldInfo = \%copy;
|
840
|
-
}
|
841
|
-
}
|
842
|
-
if ($oldSize > BINARY_DATA_LIMIT and $$origDirInfo{ImageData} and
|
843
|
-
(not defined $oldInfo or ($oldInfo and not $$oldInfo{SubDirectory})))
|
844
|
-
{
|
845
|
-
# copy huge data blocks later instead of loading into memory
|
846
|
-
$oldValue = ''; # dummy empty value
|
847
|
-
# copy this value later unless writing a new value
|
848
|
-
unless ($set{$oldID}) {
|
849
|
-
my $pad = $oldSize & 0x01 ? 1 : 0;
|
850
|
-
# save block information to copy later (set directory offset later)
|
851
|
-
$oldImageData = [$base+$valuePtr+$dataPos, $oldSize, $pad];
|
852
|
-
}
|
853
|
-
} elsif ($raf) {
|
854
|
-
my $success = ($raf->Seek($base+$valuePtr+$dataPos, 0) and
|
855
|
-
$raf->Read($oldValue, $oldSize) == $oldSize);
|
856
|
-
if (defined $pos) {
|
857
|
-
$raf->Seek($pos, 0);
|
858
|
-
undef $raf;
|
859
|
-
# (sony A700 has 32-byte header on PreviewImage)
|
860
|
-
unless ($success and $oldValue =~ /^(\xff\xd8\xff|(.|.{33})\xd8\xff\xdb)/s) {
|
861
|
-
$invalidPreview = 1;
|
862
|
-
$success = 1; # continue writing directory anyway
|
863
|
-
}
|
864
|
-
}
|
865
|
-
unless ($success) {
|
866
|
-
return undef if $et->Error("Error reading value for $name entry $index", $inMakerNotes);
|
867
|
-
++$index; $oldID = $newID; next; # drop this tag
|
868
|
-
}
|
869
|
-
} elsif (not $invalidPreview) {
|
870
|
-
return undef if $et->Error("Bad $name offset for $tagStr", $inMakerNotes);
|
871
|
-
++$index; $oldID = $newID; next; # drop this tag
|
872
|
-
}
|
873
|
-
if ($invalidPreview) {
|
874
|
-
# set value for invalid preview
|
875
|
-
if ($$et{FILE_TYPE} eq 'JPEG') {
|
876
|
-
# define dummy value for preview (or Leica MakerNote) to write later
|
877
|
-
# (value must be larger than 4 bytes to generate PREVIEW_INFO,
|
878
|
-
# and an even number of bytes so it won't be padded)
|
879
|
-
$oldValue = 'LOAD_PREVIEW';
|
880
|
-
} else {
|
881
|
-
$oldValue = 'none';
|
882
|
-
$oldSize = length $oldValue;
|
883
|
-
}
|
884
|
-
$valuePtr = 0;
|
885
|
-
} else {
|
886
|
-
UpdateTiffEnd($et, $base+$valuePtr+$dataPos+$oldSize);
|
887
|
-
}
|
888
|
-
# update pointers for value just read from file
|
889
|
-
$valueDataPt = \$oldValue;
|
890
|
-
$valueDataPos = $valuePtr + $dataPos;
|
891
|
-
$valueDataLen = $oldSize;
|
892
|
-
$valuePtr = 0;
|
893
|
-
$readFromFile = 1;
|
894
|
-
}
|
895
|
-
if ($suspect) {
|
896
|
-
my $tagStr = $oldInfo ? $$oldInfo{Name} : sprintf('tag 0x%.4x', $oldID);
|
897
|
-
my $str = "Suspicious $name offset for $tagStr";
|
898
|
-
if ($inMakerNotes) {
|
899
|
-
$et->Warn($str, 1);
|
900
|
-
} else {
|
901
|
-
return undef if $et->Error($str, 1);
|
902
|
-
}
|
903
|
-
}
|
904
|
-
}
|
905
|
-
# read value if we haven't already
|
906
|
-
$oldValue = substr($$valueDataPt, $valuePtr, $oldSize) unless $readFromFile;
|
907
|
-
# get tagInfo using value if necessary
|
908
|
-
if (defined $oldInfo and not $oldInfo) {
|
909
|
-
my $unk = $et->Options(Unknown => 1);
|
910
|
-
$oldInfo = $et->GetTagInfo($tagTablePtr, $oldID, \$oldValue, $oldFormName, $oldCount);
|
911
|
-
$et->Options(Unknown => $unk);
|
912
|
-
# now that we have the value, we can resolve the Condition to finally
|
913
|
-
# determine whether we want to delete this tag or not
|
914
|
-
if ($mayDelete{$oldID} and $oldInfo and (not @newTags or $newTags[0] != $oldID)) {
|
915
|
-
my $nvHash = $et->GetNewValueHash($oldInfo, $dirName);
|
916
|
-
if (not $nvHash and $wrongDir) {
|
917
|
-
# delete from wrong directory if necessary
|
918
|
-
$nvHash = $et->GetNewValueHash($oldInfo, $wrongDir);
|
919
|
-
$nvHash and $xDelete{$oldID} = 1;
|
920
|
-
}
|
921
|
-
if ($nvHash) {
|
922
|
-
# we want to delete this tag after all, so insert it into our list
|
923
|
-
$set{$oldID} = $oldInfo;
|
924
|
-
unshift @newTags, $oldID;
|
925
|
-
}
|
926
|
-
}
|
927
|
-
}
|
928
|
-
# make sure we are handling the 'ifd' format properly
|
929
|
-
if (($oldFormat == 13 or $oldFormat == 18) and
|
930
|
-
(not $oldInfo or not $$oldInfo{SubIFD}))
|
931
|
-
{
|
932
|
-
my $str = sprintf('%s tag 0x%.4x IFD format not handled', $name, $oldID);
|
933
|
-
$et->Error($str, $inMakerNotes);
|
934
|
-
}
|
935
|
-
# override format we use to read the value if specified
|
936
|
-
if ($oldInfo) {
|
937
|
-
# check for tags which must be integers
|
938
|
-
if (($$oldInfo{IsOffset} or $$oldInfo{SubIFD}) and
|
939
|
-
not $intFormat{$oldFormName})
|
940
|
-
{
|
941
|
-
$et->Error("Invalid format ($oldFormName) for $name $$oldInfo{Name}", $inMakerNotes);
|
942
|
-
++$index; $oldID = $newID; next; # drop this tag
|
943
|
-
}
|
944
|
-
if ($$oldInfo{Drop} and $$et{DROP_TAGS} and
|
945
|
-
($$oldInfo{Drop} == 1 or $$oldInfo{Drop} < $oldSize))
|
946
|
-
{
|
947
|
-
++$index; $oldID = $newID; next; # drop this tag
|
948
|
-
}
|
949
|
-
if ($$oldInfo{Format}) {
|
950
|
-
$readFormName = $$oldInfo{Format};
|
951
|
-
$readFormat = $formatNumber{$readFormName};
|
952
|
-
unless ($readFormat) {
|
953
|
-
# we aren't reading in a standard EXIF format, so rewrite in old format
|
954
|
-
$readFormName = $oldFormName;
|
955
|
-
$readFormat = $oldFormat;
|
956
|
-
}
|
957
|
-
if ($$oldInfo{FixedSize}) {
|
958
|
-
$oldSize = $$oldInfo{FixedSize} if $$oldInfo{FixedSize};
|
959
|
-
$oldValue = substr($$valueDataPt, $valuePtr, $oldSize);
|
960
|
-
}
|
961
|
-
# adjust number of items to read if format size changed
|
962
|
-
$readCount = $oldSize / $formatSize[$readFormat];
|
963
|
-
}
|
964
|
-
}
|
965
|
-
if ($oldID <= $lastTagID and not $inMakerNotes) {
|
966
|
-
my $str = $oldInfo ? "$$oldInfo{Name} tag" : sprintf('tag 0x%x',$oldID);
|
967
|
-
if ($oldID == $lastTagID) {
|
968
|
-
$et->Warn("Duplicate $str in $name");;
|
969
|
-
} else {
|
970
|
-
$et->Warn("\u$str out of sequence in $name");
|
971
|
-
}
|
972
|
-
}
|
973
|
-
$lastTagID = $oldID;
|
974
|
-
++$index; # increment index for next time
|
975
|
-
} else {
|
976
|
-
undef $oldID; # no more existing entries
|
977
|
-
}
|
978
|
-
}
|
979
|
-
#
|
980
|
-
# write out all new tags, up to and including this one
|
981
|
-
#
|
982
|
-
$newID = $newTags[0];
|
983
|
-
my $isNew; # -1=tag is old, 0=tag same as existing, 1=tag is new
|
984
|
-
if (not defined $oldID) {
|
985
|
-
last unless defined $newID;
|
986
|
-
$isNew = 1;
|
987
|
-
} elsif (not defined $newID) {
|
988
|
-
# maker notes will have no new tags defined
|
989
|
-
if ($set{$oldID}) {
|
990
|
-
$newID = $oldID;
|
991
|
-
$isNew = 0;
|
992
|
-
} else {
|
993
|
-
$isNew = -1;
|
994
|
-
}
|
995
|
-
} else {
|
996
|
-
$isNew = $oldID <=> $newID;
|
997
|
-
}
|
998
|
-
my $newInfo = $oldInfo;
|
999
|
-
my $newFormat = $oldFormat;
|
1000
|
-
my $newFormName = $oldFormName;
|
1001
|
-
my $newCount = $oldCount;
|
1002
|
-
my $ifdFormName;
|
1003
|
-
my $newValue;
|
1004
|
-
my $newValuePt = $isNew >= 0 ? \$newValue : \$oldValue;
|
1005
|
-
my $isOverwriting;
|
1006
|
-
|
1007
|
-
if ($isNew >= 0) {
|
1008
|
-
# add, edit or delete this tag
|
1009
|
-
shift @newTags; # remove from list
|
1010
|
-
if ($set{$newID}) {
|
1011
|
-
#
|
1012
|
-
# set the new tag value (or 'next' if deleting tag)
|
1013
|
-
#
|
1014
|
-
$newInfo = $set{$newID};
|
1015
|
-
$newCount = $$newInfo{Count};
|
1016
|
-
my ($val, $newVal, $n);
|
1017
|
-
my $nvHash = $et->GetNewValueHash($newInfo, $dirName);
|
1018
|
-
if ($isNew > 0) {
|
1019
|
-
# don't create new entry unless requested
|
1020
|
-
if ($nvHash) {
|
1021
|
-
next unless $$nvHash{IsCreating};
|
1022
|
-
if ($$newInfo{IsOverwriting}) {
|
1023
|
-
my $proc = $$newInfo{IsOverwriting};
|
1024
|
-
$isOverwriting = &$proc($et, $nvHash, $val, \$newVal);
|
1025
|
-
} else {
|
1026
|
-
$isOverwriting = $et->IsOverwriting($nvHash);
|
1027
|
-
}
|
1028
|
-
} else {
|
1029
|
-
next if $xDelete{$newID}; # don't create if cross deleting
|
1030
|
-
$newVal = $$mandatory{$newID}; # get value for mandatory tag
|
1031
|
-
$isOverwriting = 1;
|
1032
|
-
}
|
1033
|
-
# convert using new format
|
1034
|
-
if ($$newInfo{Format}) {
|
1035
|
-
$newFormName = $$newInfo{Format};
|
1036
|
-
# use Writable flag to specify IFD format code
|
1037
|
-
$ifdFormName = $$newInfo{Writable};
|
1038
|
-
} else {
|
1039
|
-
$newFormName = $$newInfo{Writable};
|
1040
|
-
unless ($newFormName) {
|
1041
|
-
warn("No format for $name $$newInfo{Name}\n");
|
1042
|
-
next;
|
1043
|
-
}
|
1044
|
-
}
|
1045
|
-
$newFormat = $formatNumber{$newFormName};
|
1046
|
-
} elsif ($nvHash or $xDelete{$newID}) {
|
1047
|
-
unless ($nvHash) {
|
1048
|
-
$nvHash = $et->GetNewValueHash($newInfo, $wrongDir);
|
1049
|
-
}
|
1050
|
-
# read value
|
1051
|
-
if (length $oldValue >= $oldSize) {
|
1052
|
-
$val = ReadValue(\$oldValue, 0, $readFormName, $readCount, $oldSize);
|
1053
|
-
} else {
|
1054
|
-
$val = '';
|
1055
|
-
}
|
1056
|
-
# determine write format (by default, use 'Writable' format)
|
1057
|
-
my $writable = $$newInfo{Writable};
|
1058
|
-
# (or use existing format if 'Writable' not specified)
|
1059
|
-
$writable = $oldFormName unless $writable and $writable ne '1';
|
1060
|
-
# (and override write format with 'Format' if specified)
|
1061
|
-
my $writeForm = $$newInfo{Format} || $writable;
|
1062
|
-
if ($writeForm ne $newFormName) {
|
1063
|
-
# write in specified format
|
1064
|
-
$newFormName = $writeForm;
|
1065
|
-
$newFormat = $formatNumber{$newFormName};
|
1066
|
-
# use different IFD format code if necessary
|
1067
|
-
if ($inMakerNotes) {
|
1068
|
-
# always preserve IFD format in maker notes
|
1069
|
-
$ifdFormName = $oldFormName;
|
1070
|
-
} elsif ($writable ne $newFormName) {
|
1071
|
-
# use specified IFD format
|
1072
|
-
$ifdFormName = $writable;
|
1073
|
-
}
|
1074
|
-
}
|
1075
|
-
if ($inMakerNotes and $readFormName ne 'string' and $readFormName ne 'undef') {
|
1076
|
-
# keep same size in maker notes unless string or binary
|
1077
|
-
$newCount = $oldCount * $formatSize[$oldFormat] / $formatSize[$newFormat];
|
1078
|
-
}
|
1079
|
-
if ($$newInfo{IsOverwriting}) {
|
1080
|
-
my $proc = $$newInfo{IsOverwriting};
|
1081
|
-
$isOverwriting = &$proc($et, $nvHash, $val, \$newVal);
|
1082
|
-
} else {
|
1083
|
-
$isOverwriting = $et->IsOverwriting($nvHash, $val);
|
1084
|
-
}
|
1085
|
-
}
|
1086
|
-
if ($isOverwriting) {
|
1087
|
-
$newVal = $et->GetNewValue($nvHash) unless defined $newVal;
|
1088
|
-
# value undefined if deleting this tag
|
1089
|
-
# (also delete tag if cross-deleting and this isn't a date/time shift)
|
1090
|
-
if (not defined $newVal or ($xDelete{$newID} and not defined $$nvHash{Shift})) {
|
1091
|
-
if ($$newInfo{RawConvInv} and defined $$nvHash{Value}) {
|
1092
|
-
# error in RawConvInv, so rewrite existing tag
|
1093
|
-
goto NoOverwrite; # GOTO!
|
1094
|
-
}
|
1095
|
-
unless ($isNew) {
|
1096
|
-
++$$et{CHANGED};
|
1097
|
-
$et->VerboseValue("- $dirName:$$newInfo{Name}", $val);
|
1098
|
-
}
|
1099
|
-
next;
|
1100
|
-
}
|
1101
|
-
if ($newCount and $newCount < 0) {
|
1102
|
-
# set count to number of values if variable
|
1103
|
-
my @vals = split ' ',$newVal;
|
1104
|
-
$newCount = @vals;
|
1105
|
-
}
|
1106
|
-
# convert to binary format
|
1107
|
-
$newValue = WriteValue($newVal, $newFormName, $newCount);
|
1108
|
-
unless (defined $newValue) {
|
1109
|
-
$et->Warn("Invalid value for $dirName:$$newInfo{Name}");
|
1110
|
-
goto NoOverwrite; # GOTO!
|
1111
|
-
}
|
1112
|
-
if (length $newValue) {
|
1113
|
-
# limit maximum value length in JPEG images
|
1114
|
-
# (max segment size is 65533 bytes and the min EXIF size is 96 incl an additional IFD entry)
|
1115
|
-
if ($$et{FILE_TYPE} eq 'JPEG' and length($newValue) > 65436 and
|
1116
|
-
$$newInfo{Name} ne 'PreviewImage')
|
1117
|
-
{
|
1118
|
-
my $name = $$newInfo{MakerNotes} ? 'MakerNotes' : $$newInfo{Name};
|
1119
|
-
$et->Warn("$name too large to write in JPEG segment");
|
1120
|
-
goto NoOverwrite; # GOTO!
|
1121
|
-
}
|
1122
|
-
# re-code if necessary
|
1123
|
-
if ($strEnc and $newFormName eq 'string') {
|
1124
|
-
$newValue = $et->Encode($newValue, $strEnc);
|
1125
|
-
}
|
1126
|
-
} else {
|
1127
|
-
$et->Warn("Can't write zero length $$newInfo{Name} in $$tagTablePtr{GROUPS}{1}");
|
1128
|
-
goto NoOverwrite; # GOTO!
|
1129
|
-
}
|
1130
|
-
if ($isNew >= 0) {
|
1131
|
-
$newCount = length($newValue) / $formatSize[$newFormat];
|
1132
|
-
++$$et{CHANGED};
|
1133
|
-
if (defined $allMandatory) {
|
1134
|
-
# not all mandatory if we are writing any tag specifically
|
1135
|
-
if ($nvHash) {
|
1136
|
-
undef $allMandatory;
|
1137
|
-
undef $deleteAll;
|
1138
|
-
} else {
|
1139
|
-
++$addMandatory; # count mandatory tags that we added
|
1140
|
-
}
|
1141
|
-
}
|
1142
|
-
if ($verbose > 1) {
|
1143
|
-
$et->VerboseValue("- $dirName:$$newInfo{Name}", $val) unless $isNew;
|
1144
|
-
my $str = $nvHash ? '' : ' (mandatory)';
|
1145
|
-
$et->VerboseValue("+ $dirName:$$newInfo{Name}", $newVal, $str);
|
1146
|
-
}
|
1147
|
-
}
|
1148
|
-
} else {
|
1149
|
-
NoOverwrite: next if $isNew > 0;
|
1150
|
-
$isNew = -1; # rewrite existing tag
|
1151
|
-
}
|
1152
|
-
# set format for EXIF IFD if different than conversion format
|
1153
|
-
if ($ifdFormName) {
|
1154
|
-
$newFormName = $ifdFormName;
|
1155
|
-
$newFormat = $formatNumber{$newFormName};
|
1156
|
-
}
|
1157
|
-
|
1158
|
-
} elsif ($isNew > 0) {
|
1159
|
-
#
|
1160
|
-
# create new subdirectory
|
1161
|
-
#
|
1162
|
-
# newInfo may not be defined if we try to add a mandatory tag
|
1163
|
-
# to a directory that doesn't support it (eg. IFD1 in RW2 images)
|
1164
|
-
$newInfo = $$addDirs{$newID} or next;
|
1165
|
-
# make sure we don't try to generate a new MakerNotes directory
|
1166
|
-
# or a SubIFD
|
1167
|
-
next if $$newInfo{MakerNotes} or $$newInfo{Name} eq 'SubIFD';
|
1168
|
-
my $subTable;
|
1169
|
-
if ($$newInfo{SubDirectory}{TagTable}) {
|
1170
|
-
$subTable = Image::ExifTool::GetTagTable($$newInfo{SubDirectory}{TagTable});
|
1171
|
-
} else {
|
1172
|
-
$subTable = $tagTablePtr;
|
1173
|
-
}
|
1174
|
-
# create empty source directory
|
1175
|
-
my %sourceDir = (
|
1176
|
-
Parent => $dirName,
|
1177
|
-
Fixup => new Image::ExifTool::Fixup,
|
1178
|
-
);
|
1179
|
-
$sourceDir{DirName} = $$newInfo{Groups}{1} if $$newInfo{SubIFD};
|
1180
|
-
$newValue = $et->WriteDirectory(\%sourceDir, $subTable);
|
1181
|
-
# only add new directory if it isn't empty
|
1182
|
-
next unless defined $newValue and length($newValue);
|
1183
|
-
# set the fixup start location
|
1184
|
-
if ($$newInfo{SubIFD}) {
|
1185
|
-
# subdirectory is referenced by an offset in value buffer
|
1186
|
-
my $subdir = $newValue;
|
1187
|
-
$newValue = Set32u(0xfeedf00d);
|
1188
|
-
push @subdirs, {
|
1189
|
-
DataPt => \$subdir,
|
1190
|
-
Table => $subTable,
|
1191
|
-
Fixup => $sourceDir{Fixup},
|
1192
|
-
Offset => length($dirBuff) + 8,
|
1193
|
-
Where => 'dirBuff',
|
1194
|
-
};
|
1195
|
-
$newFormName = 'int32u';
|
1196
|
-
$newFormat = $formatNumber{$newFormName};
|
1197
|
-
} else {
|
1198
|
-
# subdirectory goes directly into value buffer
|
1199
|
-
$sourceDir{Fixup}{Start} += length($valBuff);
|
1200
|
-
# use Writable to set format, otherwise 'undef'
|
1201
|
-
$newFormName = $$newInfo{Writable};
|
1202
|
-
unless ($newFormName and $formatNumber{$newFormName}) {
|
1203
|
-
$newFormName = 'undef';
|
1204
|
-
}
|
1205
|
-
$newFormat = $formatNumber{$newFormName};
|
1206
|
-
push @valFixups, $sourceDir{Fixup};
|
1207
|
-
}
|
1208
|
-
} elsif ($$newInfo{Format} and $$newInfo{Writable} and $$newInfo{Writable} ne '1') {
|
1209
|
-
# use specified write format
|
1210
|
-
$newFormName = $$newInfo{Writable};
|
1211
|
-
$newFormat = $formatNumber{$newFormName};
|
1212
|
-
} elsif ($$addDirs{$newID} and $newInfo ne $$addDirs{$newID}) {
|
1213
|
-
# this can happen if we are trying to add a directory that doesn't exist
|
1214
|
-
# in this type of file (eg. try adding a SubIFD tag to an A100 image)
|
1215
|
-
$isNew = -1;
|
1216
|
-
}
|
1217
|
-
}
|
1218
|
-
if ($isNew < 0) {
|
1219
|
-
# just rewrite existing tag
|
1220
|
-
$newID = $oldID;
|
1221
|
-
$newValue = $oldValue;
|
1222
|
-
$newFormat = $oldFormat; # (just in case it changed)
|
1223
|
-
$newFormName = $oldFormName;
|
1224
|
-
# set offset of this entry in the directory so we can update the pointer
|
1225
|
-
# and save block information to copy this large block later
|
1226
|
-
if ($oldImageData) {
|
1227
|
-
$$oldImageData[3] = $newStart + length($dirBuff) + 2;
|
1228
|
-
push @imageData, $oldImageData;
|
1229
|
-
$$origDirInfo{ImageData} = \@imageData;
|
1230
|
-
}
|
1231
|
-
}
|
1232
|
-
if ($newInfo) {
|
1233
|
-
#
|
1234
|
-
# load necessary data for this tag (thumbnail image, etc)
|
1235
|
-
#
|
1236
|
-
if ($$newInfo{DataTag} and $isNew >= 0) {
|
1237
|
-
my $dataTag = $$newInfo{DataTag};
|
1238
|
-
# load data for this tag
|
1239
|
-
unless (defined $offsetData{$dataTag} or $dataTag eq 'LeicaTrailer') {
|
1240
|
-
# prefer tag from Composite table if it exists (otherwise
|
1241
|
-
# PreviewImage data would be taken from Extra tag)
|
1242
|
-
my $compInfo = $Image::ExifTool::Composite{$dataTag};
|
1243
|
-
$offsetData{$dataTag} = $et->GetNewValue($compInfo || $dataTag);
|
1244
|
-
my $err;
|
1245
|
-
if (defined $offsetData{$dataTag}) {
|
1246
|
-
my $len = length $offsetData{$dataTag};
|
1247
|
-
if ($dataTag eq 'PreviewImage') {
|
1248
|
-
# must set DEL_PREVIEW flag now if preview fit into IFD
|
1249
|
-
$$et{DEL_PREVIEW} = 1 if $len <= 4;
|
1250
|
-
} elsif ($$et{FILE_TYPE} eq 'JPEG' and $len > 60000) {
|
1251
|
-
delete $offsetData{$dataTag};
|
1252
|
-
$err = "$dataTag not written (too large for JPEG segment)";
|
1253
|
-
}
|
1254
|
-
} else {
|
1255
|
-
$err = "$dataTag not found";
|
1256
|
-
}
|
1257
|
-
if ($err) {
|
1258
|
-
$et->Warn($err) if $$newInfo{IsOffset};
|
1259
|
-
delete $set{$newID}; # remove from list of tags we are setting
|
1260
|
-
next;
|
1261
|
-
}
|
1262
|
-
}
|
1263
|
-
}
|
1264
|
-
#
|
1265
|
-
# write maker notes
|
1266
|
-
#
|
1267
|
-
if ($$newInfo{MakerNotes}) {
|
1268
|
-
# don't write new makernotes if we are deleting this group
|
1269
|
-
if ($$et{DEL_GROUP}{MakerNotes} and
|
1270
|
-
($$et{DEL_GROUP}{MakerNotes} != 2 or $isNew <= 0))
|
1271
|
-
{
|
1272
|
-
if ($isNew <= 0) {
|
1273
|
-
++$$et{CHANGED};
|
1274
|
-
$verbose and print $out " Deleting MakerNotes\n";
|
1275
|
-
}
|
1276
|
-
next;
|
1277
|
-
}
|
1278
|
-
my $saveOrder = GetByteOrder();
|
1279
|
-
if ($isNew >= 0 and $set{$newID}) {
|
1280
|
-
# we are writing a whole new maker note block
|
1281
|
-
# --> add fixup information if necessary
|
1282
|
-
my $nvHash = $et->GetNewValueHash($newInfo, $dirName);
|
1283
|
-
if ($nvHash and $$nvHash{MAKER_NOTE_FIXUP}) {
|
1284
|
-
# must clone fixup because we will be shifting it
|
1285
|
-
my $makerFixup = $$nvHash{MAKER_NOTE_FIXUP}->Clone();
|
1286
|
-
my $valLen = length($valBuff);
|
1287
|
-
$$makerFixup{Start} += $valLen;
|
1288
|
-
push @valFixups, $makerFixup;
|
1289
|
-
}
|
1290
|
-
} else {
|
1291
|
-
# update maker notes if possible
|
1292
|
-
my %subdirInfo = (
|
1293
|
-
Base => $base,
|
1294
|
-
DataPt => $valueDataPt,
|
1295
|
-
DataPos => $valueDataPos,
|
1296
|
-
DataLen => $valueDataLen,
|
1297
|
-
DirStart => $valuePtr,
|
1298
|
-
DirLen => $oldSize,
|
1299
|
-
DirName => 'MakerNotes',
|
1300
|
-
Name => $$newInfo{Name},
|
1301
|
-
Parent => $dirName,
|
1302
|
-
TagInfo => $newInfo,
|
1303
|
-
RAF => $raf,
|
1304
|
-
);
|
1305
|
-
my ($subTable, $subdir, $loc, $writeProc, $notIFD);
|
1306
|
-
if ($$newInfo{SubDirectory}) {
|
1307
|
-
my $sub = $$newInfo{SubDirectory};
|
1308
|
-
$subdirInfo{FixBase} = 1 if $$sub{FixBase};
|
1309
|
-
$subdirInfo{FixOffsets} = $$sub{FixOffsets};
|
1310
|
-
$subdirInfo{EntryBased} = $$sub{EntryBased};
|
1311
|
-
$subdirInfo{NoFixBase} = 1 if defined $$sub{Base};
|
1312
|
-
$subdirInfo{AutoFix} = $$sub{AutoFix};
|
1313
|
-
}
|
1314
|
-
# get the proper tag table for these maker notes
|
1315
|
-
if ($oldInfo and $$oldInfo{SubDirectory}) {
|
1316
|
-
$subTable = $$oldInfo{SubDirectory}{TagTable};
|
1317
|
-
$subTable and $subTable = Image::ExifTool::GetTagTable($subTable);
|
1318
|
-
$writeProc = $$oldInfo{SubDirectory}{WriteProc};
|
1319
|
-
$notIFD = $$oldInfo{NotIFD};
|
1320
|
-
} else {
|
1321
|
-
$et->Warn('Internal problem getting maker notes tag table');
|
1322
|
-
}
|
1323
|
-
$writeProc or $writeProc = $$subTable{WRITE_PROC} if $subTable;
|
1324
|
-
$subTable or $subTable = $tagTablePtr;
|
1325
|
-
if ($writeProc and
|
1326
|
-
$writeProc eq \&Image::ExifTool::MakerNotes::WriteUnknownOrPreview and
|
1327
|
-
$oldValue =~ /^\xff\xd8\xff/)
|
1328
|
-
{
|
1329
|
-
$loc = 0;
|
1330
|
-
} elsif (not $notIFD) {
|
1331
|
-
# look for IFD-style maker notes
|
1332
|
-
$loc = Image::ExifTool::MakerNotes::LocateIFD($et,\%subdirInfo);
|
1333
|
-
}
|
1334
|
-
if (defined $loc) {
|
1335
|
-
# we need fixup data for this subdirectory
|
1336
|
-
$subdirInfo{Fixup} = new Image::ExifTool::Fixup;
|
1337
|
-
# rewrite maker notes
|
1338
|
-
my $changed = $$et{CHANGED};
|
1339
|
-
$subdir = $et->WriteDirectory(\%subdirInfo, $subTable, $writeProc);
|
1340
|
-
if ($changed == $$et{CHANGED} and $subdirInfo{Fixup}->IsEmpty()) {
|
1341
|
-
# return original data if nothing changed and no fixups
|
1342
|
-
undef $subdir;
|
1343
|
-
}
|
1344
|
-
} elsif ($$subTable{PROCESS_PROC} and
|
1345
|
-
$$subTable{PROCESS_PROC} eq \&Image::ExifTool::ProcessBinaryData)
|
1346
|
-
{
|
1347
|
-
my $sub = $$oldInfo{SubDirectory};
|
1348
|
-
if (defined $$sub{Start}) {
|
1349
|
-
#### eval Start ($valuePtr)
|
1350
|
-
my $start = eval $$sub{Start};
|
1351
|
-
$loc = $start - $valuePtr;
|
1352
|
-
$subdirInfo{DirStart} = $start;
|
1353
|
-
$subdirInfo{DirLen} -= $loc;
|
1354
|
-
} else {
|
1355
|
-
$loc = 0;
|
1356
|
-
}
|
1357
|
-
# rewrite maker notes
|
1358
|
-
$subdir = $et->WriteDirectory(\%subdirInfo, $subTable);
|
1359
|
-
} elsif ($notIFD) {
|
1360
|
-
if ($writeProc) {
|
1361
|
-
$loc = 0;
|
1362
|
-
$subdir = $et->WriteDirectory(\%subdirInfo, $subTable);
|
1363
|
-
}
|
1364
|
-
} else {
|
1365
|
-
my $msg = 'Maker notes could not be parsed';
|
1366
|
-
if ($$et{FILE_TYPE} eq 'JPEG') {
|
1367
|
-
$et->Warn($msg, 1);
|
1368
|
-
} else {
|
1369
|
-
$et->Error($msg, 1);
|
1370
|
-
}
|
1371
|
-
}
|
1372
|
-
if (defined $subdir) {
|
1373
|
-
next unless length $subdir;
|
1374
|
-
my $valLen = length($valBuff);
|
1375
|
-
# restore existing header and substitute the new
|
1376
|
-
# maker notes for the old value
|
1377
|
-
$newValue = substr($oldValue, 0, $loc) . $subdir;
|
1378
|
-
my $makerFixup = $subdirInfo{Fixup};
|
1379
|
-
my $previewInfo = $$et{PREVIEW_INFO};
|
1380
|
-
if ($subdirInfo{Relative}) {
|
1381
|
-
# apply a one-time fixup to $loc since offsets are relative
|
1382
|
-
$$makerFixup{Start} += $loc;
|
1383
|
-
# shift all offsets to be relative to new base
|
1384
|
-
my $baseShift = $valueDataPos + $valuePtr + $base - $subdirInfo{Base};
|
1385
|
-
$$makerFixup{Shift} += $baseShift;
|
1386
|
-
$makerFixup->ApplyFixup(\$newValue);
|
1387
|
-
if ($previewInfo) {
|
1388
|
-
# remove all but PreviewImage fixup (since others shouldn't change)
|
1389
|
-
foreach (keys %{$$makerFixup{Pointers}}) {
|
1390
|
-
/_PreviewImage$/ or delete $$makerFixup{Pointers}{$_};
|
1391
|
-
}
|
1392
|
-
# zero pointer so we can see how it gets shifted later
|
1393
|
-
$makerFixup->SetMarkerPointers(\$newValue, 'PreviewImage', 0);
|
1394
|
-
# set the pointer to the start of the EXIF information
|
1395
|
-
# add preview image fixup to list of value fixups
|
1396
|
-
$$makerFixup{Start} += $valLen;
|
1397
|
-
push @valFixups, $makerFixup;
|
1398
|
-
$$previewInfo{BaseShift} = $baseShift;
|
1399
|
-
$$previewInfo{Relative} = 1;
|
1400
|
-
}
|
1401
|
-
# don't shift anything if relative flag set to zero (Pentax patch)
|
1402
|
-
} elsif (not defined $subdirInfo{Relative}) {
|
1403
|
-
# shift offset base if shifted in the original image or if FixBase
|
1404
|
-
# was used, but be careful of automatic FixBase with negative shifts
|
1405
|
-
# since they may lead to negative (invalid) offsets (casio_edit_problem.jpg)
|
1406
|
-
my $baseShift = $base - $subdirInfo{Base};
|
1407
|
-
if ($subdirInfo{AutoFix}) {
|
1408
|
-
$baseShift = 0;
|
1409
|
-
} elsif ($subdirInfo{FixBase} and $baseShift < 0 and
|
1410
|
-
# allow negative base shift if offsets are bigger (PentaxOptioWP.jpg)
|
1411
|
-
(not $subdirInfo{MinOffset} or $subdirInfo{MinOffset} + $baseShift < 0))
|
1412
|
-
{
|
1413
|
-
my $fixBase = $et->Options('FixBase');
|
1414
|
-
if (not defined $fixBase) {
|
1415
|
-
my $str = $et->Options('IgnoreMinorErrors') ? 'ignored' : 'fix or ignore?';
|
1416
|
-
$et->Error("MakerNotes offsets may be incorrect ($str)", 1);
|
1417
|
-
} elsif ($fixBase eq '') {
|
1418
|
-
$et->Warn('Fixed incorrect MakerNotes offsets');
|
1419
|
-
$baseShift = 0;
|
1420
|
-
}
|
1421
|
-
}
|
1422
|
-
$$makerFixup{Start} += $valLen + $loc;
|
1423
|
-
$$makerFixup{Shift} += $baseShift;
|
1424
|
-
# permanently fix makernote offset errors
|
1425
|
-
$$makerFixup{Shift} += $subdirInfo{FixedBy} || 0;
|
1426
|
-
push @valFixups, $makerFixup;
|
1427
|
-
if ($previewInfo and not $$previewInfo{NoBaseShift}) {
|
1428
|
-
$$previewInfo{BaseShift} = $baseShift;
|
1429
|
-
}
|
1430
|
-
}
|
1431
|
-
$newValuePt = \$newValue; # write new value
|
1432
|
-
}
|
1433
|
-
}
|
1434
|
-
SetByteOrder($saveOrder);
|
1435
|
-
|
1436
|
-
# process existing subdirectory unless we are overwriting it entirely
|
1437
|
-
} elsif ($$newInfo{SubDirectory} and $isNew <= 0 and not $isOverwriting
|
1438
|
-
# don't edit directory if Writable is set to 0
|
1439
|
-
and (not defined $$newInfo{Writable} or $$newInfo{Writable}))
|
1440
|
-
{
|
1441
|
-
|
1442
|
-
my $subdir = $$newInfo{SubDirectory};
|
1443
|
-
if ($$newInfo{SubIFD}) {
|
1444
|
-
#
|
1445
|
-
# rewrite existing sub IFD's
|
1446
|
-
#
|
1447
|
-
my $subTable = $tagTablePtr;
|
1448
|
-
if ($$subdir{TagTable}) {
|
1449
|
-
$subTable = Image::ExifTool::GetTagTable($$subdir{TagTable});
|
1450
|
-
}
|
1451
|
-
# determine directory name for this IFD
|
1452
|
-
my $subdirName = $$newInfo{Groups}{1} || $$newInfo{Name};
|
1453
|
-
# all makernotes directory names must be 'MakerNotes'
|
1454
|
-
$subdirName = 'MakerNotes' if $$subTable{GROUPS}{0} eq 'MakerNotes';
|
1455
|
-
# must handle sub-IFD's specially since the values
|
1456
|
-
# are actually offsets to subdirectories
|
1457
|
-
unless ($readCount) { # can't have zero count
|
1458
|
-
return undef if $et->Error("$name entry $index has zero count", 2);
|
1459
|
-
next;
|
1460
|
-
}
|
1461
|
-
my $writeCount = 0;
|
1462
|
-
my $i;
|
1463
|
-
$newValue = ''; # reset value because we regenerate it below
|
1464
|
-
for ($i=0; $i<$readCount; ++$i) {
|
1465
|
-
my $off = $i * $formatSize[$readFormat];
|
1466
|
-
my $val = ReadValue($valueDataPt, $valuePtr + $off,
|
1467
|
-
$readFormName, 1, $oldSize - $off);
|
1468
|
-
my $subdirStart = $val - $dataPos;
|
1469
|
-
my $subdirBase = $base;
|
1470
|
-
my $hdrLen;
|
1471
|
-
if (defined $$subdir{Start}) {
|
1472
|
-
#### eval Start ($val)
|
1473
|
-
my $newStart = eval $$subdir{Start};
|
1474
|
-
unless (Image::ExifTool::IsInt($newStart)) {
|
1475
|
-
$et->Error("Bad subdirectory start for $$newInfo{Name}");
|
1476
|
-
next;
|
1477
|
-
}
|
1478
|
-
$newStart -= $dataPos;
|
1479
|
-
$hdrLen = $newStart - $subdirStart;
|
1480
|
-
$subdirStart = $newStart;
|
1481
|
-
}
|
1482
|
-
if ($$subdir{Base}) {
|
1483
|
-
my $start = $subdirStart + $dataPos;
|
1484
|
-
#### eval Base ($start,$base)
|
1485
|
-
$subdirBase += eval $$subdir{Base};
|
1486
|
-
}
|
1487
|
-
# add IFD number if more than one
|
1488
|
-
$subdirName =~ s/\d*$/$i/ if $i;
|
1489
|
-
my %subdirInfo = (
|
1490
|
-
Base => $subdirBase,
|
1491
|
-
DataPt => $dataPt,
|
1492
|
-
DataPos => $dataPos - $subdirBase + $base,
|
1493
|
-
DataLen => $dataLen,
|
1494
|
-
DirStart => $subdirStart,
|
1495
|
-
DirName => $subdirName,
|
1496
|
-
Name => $$newInfo{Name},
|
1497
|
-
TagInfo => $newInfo,
|
1498
|
-
Parent => $dirName,
|
1499
|
-
Fixup => new Image::ExifTool::Fixup,
|
1500
|
-
RAF => $raf,
|
1501
|
-
Subdir => $subdir,
|
1502
|
-
# set ImageData only for 1st level SubIFD's
|
1503
|
-
ImageData=> $imageDataFlag eq 'Main' ? 'SubIFD' : undef,
|
1504
|
-
);
|
1505
|
-
# pass on header pointer only for certain sub IFD's
|
1506
|
-
$subdirInfo{HeaderPtr} = $$dirInfo{HeaderPtr} if $$newInfo{SubIFD} == 2;
|
1507
|
-
if ($$subdir{RelativeBase}) {
|
1508
|
-
# apply one-time fixup if offsets are relative (Sony IDC hack)
|
1509
|
-
delete $subdirInfo{Fixup};
|
1510
|
-
delete $subdirInfo{ImageData};
|
1511
|
-
}
|
1512
|
-
# is the subdirectory outside our current data?
|
1513
|
-
if ($subdirStart < 0 or $subdirStart + 2 > $dataLen) {
|
1514
|
-
if ($raf) {
|
1515
|
-
# reset SubDirectory buffer (we will load it later)
|
1516
|
-
my $buff = '';
|
1517
|
-
$subdirInfo{DataPt} = \$buff;
|
1518
|
-
$subdirInfo{DataLen} = 0;
|
1519
|
-
} else {
|
1520
|
-
my @err = ("Can't read $subdirName data", $inMakerNotes);
|
1521
|
-
if ($$subTable{VARS} and $$subTable{VARS}{MINOR_ERRORS}) {
|
1522
|
-
$et->Warn($err[0] . '. Ignored.');
|
1523
|
-
} elsif ($et->Error(@err)) {
|
1524
|
-
return undef;
|
1525
|
-
}
|
1526
|
-
next Entry; # don't write this directory
|
1527
|
-
}
|
1528
|
-
}
|
1529
|
-
my $subdirData = $et->WriteDirectory(\%subdirInfo, $subTable, $$subdir{WriteProc});
|
1530
|
-
unless (defined $subdirData) {
|
1531
|
-
# WriteDirectory should have issued an error, but check just in case
|
1532
|
-
$et->Error("Error writing $subdirName") unless $$et{VALUE}{Error};
|
1533
|
-
return undef;
|
1534
|
-
}
|
1535
|
-
# add back original header if necessary (eg. Ricoh GR)
|
1536
|
-
if ($hdrLen and $hdrLen > 0 and $subdirStart <= $dataLen) {
|
1537
|
-
$subdirData = substr($$dataPt, $subdirStart - $hdrLen, $hdrLen) . $subdirData;
|
1538
|
-
$subdirInfo{Fixup}{Start} += $hdrLen;
|
1539
|
-
}
|
1540
|
-
unless (length $subdirData) {
|
1541
|
-
next unless $inMakerNotes;
|
1542
|
-
# don't delete MakerNote Sub-IFD's, write empty IFD instead
|
1543
|
-
$subdirData = "\0" x 6;
|
1544
|
-
# reset SubIFD ImageData and Fixup just to be safe
|
1545
|
-
delete $subdirInfo{ImageData};
|
1546
|
-
delete $subdirInfo{Fixup};
|
1547
|
-
}
|
1548
|
-
# handle data blocks that we will transfer later
|
1549
|
-
if (ref $subdirInfo{ImageData}) {
|
1550
|
-
push @imageData, @{$subdirInfo{ImageData}};
|
1551
|
-
$$origDirInfo{ImageData} = \@imageData;
|
1552
|
-
}
|
1553
|
-
# temporarily set value to subdirectory index
|
1554
|
-
# (will set to actual offset later when we know what it is)
|
1555
|
-
$newValue .= Set32u(0xfeedf00d);
|
1556
|
-
my ($offset, $where);
|
1557
|
-
if ($readCount > 1) {
|
1558
|
-
$offset = length($valBuff) + $i * 4;
|
1559
|
-
$where = 'valBuff';
|
1560
|
-
} else {
|
1561
|
-
$offset = length($dirBuff) + 8;
|
1562
|
-
$where = 'dirBuff';
|
1563
|
-
}
|
1564
|
-
# add to list of subdirectories we will append later
|
1565
|
-
push @subdirs, {
|
1566
|
-
DataPt => \$subdirData,
|
1567
|
-
Table => $subTable,
|
1568
|
-
Fixup => $subdirInfo{Fixup},
|
1569
|
-
Offset => $offset,
|
1570
|
-
Where => $where,
|
1571
|
-
ImageData => $subdirInfo{ImageData},
|
1572
|
-
};
|
1573
|
-
++$writeCount; # count number of subdirs written
|
1574
|
-
}
|
1575
|
-
next unless length $newValue;
|
1576
|
-
# must change location of subdir offset if we deleted
|
1577
|
-
# a directory and only one remains
|
1578
|
-
if ($writeCount < $readCount and $writeCount == 1) {
|
1579
|
-
$subdirs[-1]{Where} = 'dirBuff';
|
1580
|
-
$subdirs[-1]{Offset} = length($dirBuff) + 8;
|
1581
|
-
}
|
1582
|
-
# set new format to int32u for IFD
|
1583
|
-
$newFormName = $$newInfo{FixFormat} || 'int32u';
|
1584
|
-
$newFormat = $formatNumber{$newFormName};
|
1585
|
-
$newValuePt = \$newValue;
|
1586
|
-
|
1587
|
-
} elsif ((not defined $$subdir{Start} or
|
1588
|
-
$$subdir{Start} =~ /\$valuePtr/) and
|
1589
|
-
$$subdir{TagTable})
|
1590
|
-
{
|
1591
|
-
#
|
1592
|
-
# rewrite other existing subdirectories ('$valuePtr' type only)
|
1593
|
-
#
|
1594
|
-
# set subdirectory Start and Base
|
1595
|
-
my $subdirStart = $valuePtr;
|
1596
|
-
if ($$subdir{Start}) {
|
1597
|
-
#### eval Start ($valuePtr)
|
1598
|
-
$subdirStart = eval $$subdir{Start};
|
1599
|
-
# must adjust directory size if start changed
|
1600
|
-
$oldSize -= $subdirStart - $valuePtr;
|
1601
|
-
}
|
1602
|
-
my $subdirBase = $base;
|
1603
|
-
if ($$subdir{Base}) {
|
1604
|
-
my $start = $subdirStart + $valueDataPos;
|
1605
|
-
#### eval Base ($start,$base)
|
1606
|
-
$subdirBase += eval $$subdir{Base};
|
1607
|
-
}
|
1608
|
-
my $subFixup = new Image::ExifTool::Fixup;
|
1609
|
-
my %subdirInfo = (
|
1610
|
-
Base => $subdirBase,
|
1611
|
-
DataPt => $valueDataPt,
|
1612
|
-
DataPos => $valueDataPos - $subdirBase + $base,
|
1613
|
-
DataLen => $valueDataLen,
|
1614
|
-
DirStart => $subdirStart,
|
1615
|
-
DirName => $$subdir{DirName},
|
1616
|
-
DirLen => $oldSize,
|
1617
|
-
Parent => $dirName,
|
1618
|
-
Fixup => $subFixup,
|
1619
|
-
RAF => $raf,
|
1620
|
-
TagInfo => $newInfo,
|
1621
|
-
);
|
1622
|
-
unless ($oldSize) {
|
1623
|
-
# replace with dummy data if empty to prevent WriteDirectory
|
1624
|
-
# routines from accessing data they shouldn't
|
1625
|
-
my $tmp = '';
|
1626
|
-
$subdirInfo{DataPt} = \$tmp;
|
1627
|
-
$subdirInfo{DataLen} = 0;
|
1628
|
-
$subdirInfo{DirStart} = 0;
|
1629
|
-
$subdirInfo{DataPos} += $subdirStart;
|
1630
|
-
}
|
1631
|
-
my $subTable = Image::ExifTool::GetTagTable($$subdir{TagTable});
|
1632
|
-
my $oldOrder = GetByteOrder();
|
1633
|
-
SetByteOrder($$subdir{ByteOrder}) if $$subdir{ByteOrder};
|
1634
|
-
$newValue = $et->WriteDirectory(\%subdirInfo, $subTable, $$subdir{WriteProc});
|
1635
|
-
SetByteOrder($oldOrder);
|
1636
|
-
if (defined $newValue) {
|
1637
|
-
my $hdrLen = $subdirStart - $valuePtr;
|
1638
|
-
if ($hdrLen) {
|
1639
|
-
$newValue = substr($$valueDataPt, $valuePtr, $hdrLen) . $newValue;
|
1640
|
-
$$subFixup{Start} += $hdrLen;
|
1641
|
-
}
|
1642
|
-
$newValuePt = \$newValue;
|
1643
|
-
} else {
|
1644
|
-
$newValuePt = \$oldValue;
|
1645
|
-
}
|
1646
|
-
unless (length $$newValuePt) {
|
1647
|
-
# don't delete a previously empty makernote directory
|
1648
|
-
next if $oldSize or not $inMakerNotes;
|
1649
|
-
}
|
1650
|
-
if ($$subFixup{Pointers} and $subdirInfo{Base} == $base) {
|
1651
|
-
$$subFixup{Start} += length $valBuff;
|
1652
|
-
push @valFixups, $subFixup;
|
1653
|
-
} else {
|
1654
|
-
# apply fixup in case we added a header ($hdrLen above)
|
1655
|
-
$subFixup->ApplyFixup(\$newValue);
|
1656
|
-
}
|
1657
|
-
}
|
1658
|
-
|
1659
|
-
} elsif ($$newInfo{OffsetPair}) {
|
1660
|
-
#
|
1661
|
-
# keep track of offsets
|
1662
|
-
#
|
1663
|
-
my $dataTag = $$newInfo{DataTag} || '';
|
1664
|
-
if ($dataTag eq 'CanonVRD') {
|
1665
|
-
# must decide now if we will write CanonVRD information
|
1666
|
-
my $hasVRD;
|
1667
|
-
if ($$et{NEW_VALUE}{$Image::ExifTool::Extra{CanonVRD}}) {
|
1668
|
-
# adding or deleting as a block
|
1669
|
-
$hasVRD = $et->GetNewValue('CanonVRD') ? 1 : 0;
|
1670
|
-
} elsif ($$et{DEL_GROUP}{CanonVRD} or
|
1671
|
-
$$et{DEL_GROUP}{Trailer})
|
1672
|
-
{
|
1673
|
-
$hasVRD = 0; # deleting as a group
|
1674
|
-
} else {
|
1675
|
-
$hasVRD = ($$newValuePt ne "\0\0\0\0");
|
1676
|
-
}
|
1677
|
-
if ($hasVRD) {
|
1678
|
-
# add a fixup, and set this offset later
|
1679
|
-
$dirFixup->AddFixup(length($dirBuff) + 8, $dataTag);
|
1680
|
-
} else {
|
1681
|
-
# there is (or will soon be) no VRD information, so set pointer to zero
|
1682
|
-
$newValue = "\0" x length($$newValuePt);
|
1683
|
-
$newValuePt = \$newValue;
|
1684
|
-
}
|
1685
|
-
} elsif ($dataTag eq 'OriginalDecisionData') {
|
1686
|
-
# handle Canon OriginalDecisionData (no associated length tag)
|
1687
|
-
# - I'm going out of my way here to preserve data which is
|
1688
|
-
# invalidated anyway by our edits
|
1689
|
-
my $odd;
|
1690
|
-
my $oddInfo = $Image::ExifTool::Composite{OriginalDecisionData};
|
1691
|
-
if ($oddInfo and $$et{NEW_VALUE}{$oddInfo}) {
|
1692
|
-
$odd = $et->GetNewValue($dataTag);
|
1693
|
-
if ($verbose > 1) {
|
1694
|
-
print $out " - $dirName:$dataTag\n" if $$newValuePt ne "\0\0\0\0";
|
1695
|
-
print $out " + $dirName:$dataTag\n" if $odd;
|
1696
|
-
}
|
1697
|
-
++$$et{CHANGED};
|
1698
|
-
} elsif ($$newValuePt ne "\0\0\0\0") {
|
1699
|
-
if (length($$newValuePt) == 4) {
|
1700
|
-
require Image::ExifTool::Canon;
|
1701
|
-
my $offset = Get32u($newValuePt,0);
|
1702
|
-
# absolute offset in JPEG images only
|
1703
|
-
$offset += $base unless $$et{FILE_TYPE} eq 'JPEG';
|
1704
|
-
$odd = Image::ExifTool::Canon::ReadODD($et, $offset);
|
1705
|
-
$odd = $$odd if ref $odd;
|
1706
|
-
} else {
|
1707
|
-
$et->Error("Invalid $$newInfo{Name}",1);
|
1708
|
-
}
|
1709
|
-
}
|
1710
|
-
if ($odd) {
|
1711
|
-
my $newOffset = length($valBuff);
|
1712
|
-
# (ODD offset is absolute in JPEG, so add base offset!)
|
1713
|
-
$newOffset += $base if $$et{FILE_TYPE} eq 'JPEG';
|
1714
|
-
$newValue = Set32u($newOffset);
|
1715
|
-
$dirFixup->AddFixup(length($dirBuff) + 8, $dataTag);
|
1716
|
-
$valBuff .= $odd; # add original decision data
|
1717
|
-
} else {
|
1718
|
-
$newValue = "\0\0\0\0";
|
1719
|
-
}
|
1720
|
-
$newValuePt = \$newValue;
|
1721
|
-
} else {
|
1722
|
-
my $offsetInfo = $offsetInfo[$ifd];
|
1723
|
-
# save original values (for updating TIFF_END later)
|
1724
|
-
my @vals;
|
1725
|
-
if ($isNew <= 0) {
|
1726
|
-
my $oldOrder = GetByteOrder();
|
1727
|
-
# Minolta A200 stores these in the wrong byte order!
|
1728
|
-
SetByteOrder($$newInfo{ByteOrder}) if $$newInfo{ByteOrder};
|
1729
|
-
@vals = ReadValue(\$oldValue, 0, $readFormName, $readCount, $oldSize);
|
1730
|
-
SetByteOrder($oldOrder);
|
1731
|
-
}
|
1732
|
-
# only support int32 pointers (for now)
|
1733
|
-
if ($formatSize[$newFormat] != 4 and $$newInfo{IsOffset}) {
|
1734
|
-
$isNew > 0 and warn("Internal error (Offset not int32)"), return undef;
|
1735
|
-
$newCount != $readCount and warn("Wrong count!"), return undef;
|
1736
|
-
# change to int32
|
1737
|
-
$newFormName = 'int32u';
|
1738
|
-
$newFormat = $formatNumber{$newFormName};
|
1739
|
-
$newValue = WriteValue(join(' ',@vals), $newFormName, $newCount);
|
1740
|
-
unless (defined $newValue) {
|
1741
|
-
warn "Internal error writing offsets for $$newInfo{Name}\n";
|
1742
|
-
return undef;
|
1743
|
-
}
|
1744
|
-
}
|
1745
|
-
$offsetInfo or $offsetInfo = $offsetInfo[$ifd] = { };
|
1746
|
-
# save location of valuePtr in new directory
|
1747
|
-
# (notice we add 10 instead of 8 for valuePtr because
|
1748
|
-
# we will put a 2-byte count at start of directory later)
|
1749
|
-
my $ptr = $newStart + length($dirBuff) + 10;
|
1750
|
-
$newCount or $newCount = 1; # make sure count is set for offsetInfo
|
1751
|
-
# save value pointer and value count for each tag
|
1752
|
-
$$offsetInfo{$newID} = [$newInfo, $ptr, $newCount, \@vals, $newFormat];
|
1753
|
-
}
|
1754
|
-
|
1755
|
-
} elsif ($$newInfo{DataMember}) {
|
1756
|
-
|
1757
|
-
# save any necessary data members (Make, Model, etc)
|
1758
|
-
my $formatStr = $newFormName;
|
1759
|
-
my $count = $newCount;
|
1760
|
-
# change to specified format if necessary
|
1761
|
-
if ($$newInfo{Format} and $$newInfo{Format} ne $formatStr) {
|
1762
|
-
$formatStr = $$newInfo{Format};
|
1763
|
-
my $format = $formatNumber{$formatStr};
|
1764
|
-
# adjust number of items for new format size
|
1765
|
-
$count = int(length($$newValuePt) / $formatSize[$format]) if $format;
|
1766
|
-
}
|
1767
|
-
my $val = ReadValue($newValuePt,0,$formatStr,$count,length($$newValuePt));
|
1768
|
-
my $conv = $$newInfo{RawConv};
|
1769
|
-
if ($conv) {
|
1770
|
-
# let the RawConv store the (possibly converted) data member
|
1771
|
-
if (ref $conv eq 'CODE') {
|
1772
|
-
&$conv($val, $et);
|
1773
|
-
} else {
|
1774
|
-
my ($self, $tag, $taginfo) = ($et, $$newInfo{Name}, $newInfo);
|
1775
|
-
#### eval RawConv ($self, $val, $tag, $tagInfo)
|
1776
|
-
eval $conv;
|
1777
|
-
}
|
1778
|
-
} else {
|
1779
|
-
$$et{$$newInfo{DataMember}} = $val;
|
1780
|
-
}
|
1781
|
-
}
|
1782
|
-
}
|
1783
|
-
#
|
1784
|
-
# write out the directory entry
|
1785
|
-
#
|
1786
|
-
my $newSize = length($$newValuePt);
|
1787
|
-
my $fsize = $formatSize[$newFormat];
|
1788
|
-
my $offsetVal;
|
1789
|
-
# set proper count
|
1790
|
-
$newCount = int(($newSize + $fsize - 1) / $fsize) unless $oldInfo and $$oldInfo{FixedSize};
|
1791
|
-
if ($newSize > 4) {
|
1792
|
-
# zero-pad to an even number of bytes (required by EXIF standard)
|
1793
|
-
# and make sure we are a multiple of the format size
|
1794
|
-
while ($newSize & 0x01 or $newSize < $newCount * $fsize) {
|
1795
|
-
$$newValuePt .= "\0";
|
1796
|
-
++$newSize;
|
1797
|
-
}
|
1798
|
-
my $entryBased;
|
1799
|
-
if ($$dirInfo{EntryBased} or ($newInfo and $$newInfo{EntryBased})) {
|
1800
|
-
$entryBased = 1;
|
1801
|
-
$offsetVal = Set32u(length($valBuff) - length($dirBuff));
|
1802
|
-
} else {
|
1803
|
-
$offsetVal = Set32u(length $valBuff);
|
1804
|
-
}
|
1805
|
-
my ($dataTag, $putFirst);
|
1806
|
-
($dataTag, $putFirst) = @$newInfo{'DataTag','PutFirst'} if $newInfo;
|
1807
|
-
if ($dataTag) {
|
1808
|
-
if ($dataTag eq 'PreviewImage' and ($$et{FILE_TYPE} eq 'JPEG' or
|
1809
|
-
$$et{GENERATE_PREVIEW_INFO}))
|
1810
|
-
{
|
1811
|
-
# hold onto the PreviewImage until we can determine if it fits
|
1812
|
-
$$et{PREVIEW_INFO} or $$et{PREVIEW_INFO} = {
|
1813
|
-
Data => $$newValuePt,
|
1814
|
-
Fixup => new Image::ExifTool::Fixup,
|
1815
|
-
};
|
1816
|
-
$$et{PREVIEW_INFO}{ChangeBase} = 1 if $$newInfo{ChangeBase};
|
1817
|
-
if ($$newInfo{IsOffset} and $$newInfo{IsOffset} eq '2') {
|
1818
|
-
$$et{PREVIEW_INFO}{NoBaseShift} = 1;
|
1819
|
-
}
|
1820
|
-
# use original preview size if we will attempt to load it later
|
1821
|
-
$newCount = $oldCount if $$newValuePt eq 'LOAD_PREVIEW';
|
1822
|
-
$$newValuePt = '';
|
1823
|
-
} elsif ($dataTag eq 'LeicaTrailer' and $$et{LeicaTrailer}) {
|
1824
|
-
$$newValuePt = '';
|
1825
|
-
}
|
1826
|
-
}
|
1827
|
-
if ($putFirst and $$dirInfo{HeaderPtr}) {
|
1828
|
-
my $hdrPtr = $$dirInfo{HeaderPtr};
|
1829
|
-
# place this value immediately after the TIFF header (eg. IIQ maker notes)
|
1830
|
-
$offsetVal = Set32u(length $$hdrPtr);
|
1831
|
-
$$hdrPtr .= $$newValuePt;
|
1832
|
-
} else {
|
1833
|
-
$valBuff .= $$newValuePt; # add value data to buffer
|
1834
|
-
# must save a fixup pointer for every pointer in the directory
|
1835
|
-
if ($entryBased) {
|
1836
|
-
$entryBasedFixup or $entryBasedFixup = new Image::ExifTool::Fixup;
|
1837
|
-
$entryBasedFixup->AddFixup(length($dirBuff) + 8, $dataTag);
|
1838
|
-
} else {
|
1839
|
-
$dirFixup->AddFixup(length($dirBuff) + 8, $dataTag);
|
1840
|
-
}
|
1841
|
-
}
|
1842
|
-
} else {
|
1843
|
-
$offsetVal = $$newValuePt; # save value in offset if 4 bytes or less
|
1844
|
-
# must pad value with zeros if less than 4 bytes
|
1845
|
-
$newSize < 4 and $offsetVal .= "\0" x (4 - $newSize);
|
1846
|
-
}
|
1847
|
-
# write the directory entry
|
1848
|
-
$dirBuff .= Set16u($newID) . Set16u($newFormat) .
|
1849
|
-
Set32u($newCount) . $offsetVal;
|
1850
|
-
# update flag to keep track of mandatory tags
|
1851
|
-
while (defined $allMandatory) {
|
1852
|
-
if (defined $$mandatory{$newID}) {
|
1853
|
-
# values must correspond to mandatory values
|
1854
|
-
my $form = $$newInfo{Format} || $newFormName;
|
1855
|
-
my $mandVal = WriteValue($$mandatory{$newID}, $form, $newCount);
|
1856
|
-
if (defined $mandVal and $mandVal eq $$newValuePt) {
|
1857
|
-
++$allMandatory; # count mandatory tags
|
1858
|
-
last;
|
1859
|
-
}
|
1860
|
-
}
|
1861
|
-
undef $deleteAll;
|
1862
|
-
undef $allMandatory;
|
1863
|
-
}
|
1864
|
-
}
|
1865
|
-
if ($ignoreCount) {
|
1866
|
-
my $y = $ignoreCount > 1 ? 'ies' : 'y';
|
1867
|
-
my $verb = $$dirInfo{FixBase} ? 'Ignored' : 'Removed';
|
1868
|
-
$et->Warn("$verb $ignoreCount invalid entr$y from $name", 1);
|
1869
|
-
}
|
1870
|
-
if ($fixCount) {
|
1871
|
-
my $s = $fixCount > 1 ? 's' : '';
|
1872
|
-
$et->Warn("Fixed invalid count$s for $fixCount $name tag$s", 1);
|
1873
|
-
}
|
1874
|
-
#..............................................................................
|
1875
|
-
# write directory counts and nextIFD pointer and add value data to end of IFD
|
1876
|
-
#
|
1877
|
-
# determine now if there is or will be another IFD after this one
|
1878
|
-
my $nextIfdOffset;
|
1879
|
-
if ($dirEnd + 4 <= $dataLen) {
|
1880
|
-
$nextIfdOffset = Get32u($dataPt, $dirEnd);
|
1881
|
-
} else {
|
1882
|
-
$nextIfdOffset = 0;
|
1883
|
-
}
|
1884
|
-
my $isNextIFD = ($$dirInfo{Multi} and ($nextIfdOffset or
|
1885
|
-
# account for the case where we will create the next IFD
|
1886
|
-
# (IFD1 only, but not in TIFF-format images)
|
1887
|
-
($dirName eq 'IFD0' and $$et{ADD_DIRS}{'IFD1'} and
|
1888
|
-
$$et{FILE_TYPE} ne 'TIFF')));
|
1889
|
-
# calculate number of entries in new directory
|
1890
|
-
my $newEntries = length($dirBuff) / 12;
|
1891
|
-
# delete entire directory if we deleted a tag and only mandatory tags remain or we
|
1892
|
-
# attempted to create a directory with only mandatory tags and there is no nextIFD
|
1893
|
-
if ($allMandatory and not $isNextIFD and ($newEntries < $numEntries or $numEntries == 0)) {
|
1894
|
-
$newEntries = 0;
|
1895
|
-
$dirBuff = '';
|
1896
|
-
$valBuff = '';
|
1897
|
-
undef $dirFixup; # no fixups in this directory
|
1898
|
-
++$deleteAll if defined $deleteAll;
|
1899
|
-
$verbose > 1 and print $out " - $allMandatory mandatory tag(s)\n";
|
1900
|
-
$$et{CHANGED} -= $addMandatory; # didn't change these after all
|
1901
|
-
}
|
1902
|
-
if ($ifd and not $newEntries) {
|
1903
|
-
$verbose and print $out " Deleting IFD1\n";
|
1904
|
-
last; # don't write IFD1 if empty
|
1905
|
-
}
|
1906
|
-
# apply one-time fixup for entry-based offsets
|
1907
|
-
if ($entryBasedFixup) {
|
1908
|
-
$$entryBasedFixup{Shift} = length($dirBuff) + 4;
|
1909
|
-
$entryBasedFixup->ApplyFixup(\$dirBuff);
|
1910
|
-
undef $entryBasedFixup;
|
1911
|
-
}
|
1912
|
-
# initialize next IFD pointer to zero
|
1913
|
-
my $nextIFD = Set32u(0);
|
1914
|
-
# some cameras use a different amount of padding after the makernote IFD
|
1915
|
-
if ($dirName eq 'MakerNotes' and $$dirInfo{Parent} =~ /^(ExifIFD|IFD0)$/) {
|
1916
|
-
my ($rel, $pad) = Image::ExifTool::MakerNotes::GetMakerNoteOffset($et);
|
1917
|
-
$nextIFD = "\0" x $pad if defined $pad and ($pad==0 or ($pad>4 and $pad<=32));
|
1918
|
-
}
|
1919
|
-
# add directory entry count to start of IFD and next IFD pointer to end
|
1920
|
-
$newData .= Set16u($newEntries) . $dirBuff . $nextIFD;
|
1921
|
-
# get position of value data in newData
|
1922
|
-
my $valPos = length($newData);
|
1923
|
-
# go back now and set next IFD pointer if this isn't the first IFD
|
1924
|
-
if ($nextIfdPos) {
|
1925
|
-
# set offset to next IFD
|
1926
|
-
Set32u($newStart, \$newData, $nextIfdPos);
|
1927
|
-
$fixup->AddFixup($nextIfdPos,'NextIFD'); # add fixup for this offset in newData
|
1928
|
-
}
|
1929
|
-
# remember position of 'next IFD' pointer so we can set it next time around
|
1930
|
-
$nextIfdPos = length($nextIFD) ? $valPos - length($nextIFD) : undef;
|
1931
|
-
# add value data after IFD
|
1932
|
-
$newData .= $valBuff;
|
1933
|
-
#
|
1934
|
-
# add any subdirectories, adding fixup information
|
1935
|
-
#
|
1936
|
-
if (@subdirs) {
|
1937
|
-
my $subdir;
|
1938
|
-
foreach $subdir (@subdirs) {
|
1939
|
-
my $len = length($newData); # position of subdirectory in data
|
1940
|
-
my $subdirFixup = $$subdir{Fixup};
|
1941
|
-
if ($subdirFixup) {
|
1942
|
-
$$subdirFixup{Start} += $len;
|
1943
|
-
$fixup->AddFixup($subdirFixup);
|
1944
|
-
}
|
1945
|
-
my $imageData = $$subdir{ImageData};
|
1946
|
-
my $blockSize = 0;
|
1947
|
-
# must also update start position for ImageData fixups
|
1948
|
-
if (ref $imageData) {
|
1949
|
-
my $blockInfo;
|
1950
|
-
foreach $blockInfo (@$imageData) {
|
1951
|
-
my ($pos, $size, $pad, $entry, $subFix) = @$blockInfo;
|
1952
|
-
if ($subFix) {
|
1953
|
-
$$subFix{Start} += $len;
|
1954
|
-
# save expected image data offset for calculating shift later
|
1955
|
-
$$subFix{BlockLen} = length(${$$subdir{DataPt}}) + $blockSize;
|
1956
|
-
}
|
1957
|
-
$blockSize += $size + $pad;
|
1958
|
-
}
|
1959
|
-
}
|
1960
|
-
$newData .= ${$$subdir{DataPt}}; # add subdirectory to our data
|
1961
|
-
undef ${$$subdir{DataPt}}; # free memory now
|
1962
|
-
# set the pointer
|
1963
|
-
my $offset = $$subdir{Offset};
|
1964
|
-
# if offset is in valBuff, it was added to the end of dirBuff
|
1965
|
-
# (plus 4 bytes for nextIFD pointer)
|
1966
|
-
$offset += length($dirBuff) + 4 if $$subdir{Where} eq 'valBuff';
|
1967
|
-
$offset += $newStart + 2; # get offset in newData
|
1968
|
-
# check to be sure we got the right offset
|
1969
|
-
unless (Get32u(\$newData, $offset) == 0xfeedf00d) {
|
1970
|
-
$et->Error("Internal error while rewriting $name");
|
1971
|
-
return undef;
|
1972
|
-
}
|
1973
|
-
# set the offset to the subdirectory data
|
1974
|
-
Set32u($len, \$newData, $offset);
|
1975
|
-
$fixup->AddFixup($offset); # add fixup for this offset in newData
|
1976
|
-
}
|
1977
|
-
}
|
1978
|
-
# add fixup for all offsets in directory according to value data position
|
1979
|
-
# (which is at the end of this directory)
|
1980
|
-
if ($dirFixup) {
|
1981
|
-
$$dirFixup{Start} = $newStart + 2;
|
1982
|
-
$$dirFixup{Shift} = $valPos - $$dirFixup{Start};
|
1983
|
-
$fixup->AddFixup($dirFixup);
|
1984
|
-
}
|
1985
|
-
# add valueData fixups, adjusting for position of value data
|
1986
|
-
my $valFixup;
|
1987
|
-
foreach $valFixup (@valFixups) {
|
1988
|
-
$$valFixup{Start} += $valPos;
|
1989
|
-
$fixup->AddFixup($valFixup);
|
1990
|
-
}
|
1991
|
-
# stop if no next IFD pointer
|
1992
|
-
last unless $isNextIFD; # stop unless scanning for multiple IFD's
|
1993
|
-
if ($nextIfdOffset) {
|
1994
|
-
# continue with next IFD
|
1995
|
-
$dirStart = $nextIfdOffset - $dataPos;
|
1996
|
-
} else {
|
1997
|
-
# create IFD1 if necessary
|
1998
|
-
$verbose and print $out " Creating IFD1\n";
|
1999
|
-
my $ifd1 = "\0" x 2; # empty IFD1 data (zero entry count)
|
2000
|
-
$dataPt = \$ifd1;
|
2001
|
-
$dirStart = 0;
|
2002
|
-
$dirLen = $dataLen = 2;
|
2003
|
-
}
|
2004
|
-
# increment IFD name
|
2005
|
-
my $ifdNum = $dirName =~ s/(\d+)$// ? $1 : 0;
|
2006
|
-
$dirName .= $ifdNum + 1;
|
2007
|
-
$name =~ s/\d+$//;
|
2008
|
-
$name .= $ifdNum + 1;
|
2009
|
-
$$et{DIR_NAME} = $$et{PATH}[-1] = $dirName;
|
2010
|
-
next unless $nextIfdOffset;
|
2011
|
-
|
2012
|
-
# guard against writing the same directory twice
|
2013
|
-
my $addr = $nextIfdOffset + $base;
|
2014
|
-
if ($$et{PROCESSED}{$addr}) {
|
2015
|
-
$et->Error("$name pointer references previous $$et{PROCESSED}{$addr} directory", 1);
|
2016
|
-
last;
|
2017
|
-
}
|
2018
|
-
$$et{PROCESSED}{$addr} = $name;
|
2019
|
-
|
2020
|
-
if ($dirName eq 'SubIFD1' and not ValidateIFD($dirInfo, $dirStart)) {
|
2021
|
-
if ($$et{TIFF_TYPE} eq 'TIFF') {
|
2022
|
-
$et->Error('Ignored bad IFD linked from SubIFD', 1);
|
2023
|
-
} elsif ($verbose) {
|
2024
|
-
$et->Warn('Ignored bad IFD linked from SubIFD');
|
2025
|
-
}
|
2026
|
-
last; # don't write bad IFD
|
2027
|
-
}
|
2028
|
-
if ($$et{DEL_GROUP}{$dirName}) {
|
2029
|
-
$verbose and print $out " Deleting $dirName\n";
|
2030
|
-
$raf and $et->Error("Deleting $dirName also deletes subsequent" .
|
2031
|
-
" IFD's and possibly image data", 1);
|
2032
|
-
++$$et{CHANGED};
|
2033
|
-
if ($$et{DEL_GROUP}{$dirName} == 2 and
|
2034
|
-
$$et{ADD_DIRS}{$dirName})
|
2035
|
-
{
|
2036
|
-
my $emptyIFD = "\0" x 2; # start with empty IFD
|
2037
|
-
$dataPt = \$emptyIFD;
|
2038
|
-
$dirStart = 0;
|
2039
|
-
$dirLen = $dataLen = 2;
|
2040
|
-
} else {
|
2041
|
-
last; # don't write this IFD (or any subsequent IFD)
|
2042
|
-
}
|
2043
|
-
} else {
|
2044
|
-
$verbose and print $out " Rewriting $name\n";
|
2045
|
-
}
|
2046
|
-
}
|
2047
|
-
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2048
|
-
|
2049
|
-
# do our fixups now so we can more easily calculate offsets below
|
2050
|
-
$fixup->ApplyFixup(\$newData);
|
2051
|
-
#
|
2052
|
-
# determine total block size for deferred data
|
2053
|
-
#
|
2054
|
-
my $numBlocks = scalar @imageData; # save this so we scan only existing blocks later
|
2055
|
-
my $blockSize = 0; # total size of blocks to copy later
|
2056
|
-
my $blockInfo;
|
2057
|
-
foreach $blockInfo (@imageData) {
|
2058
|
-
my ($pos, $size, $pad) = @$blockInfo;
|
2059
|
-
$blockSize += $size + $pad;
|
2060
|
-
}
|
2061
|
-
#
|
2062
|
-
# copy over image data for IFD's, starting with the last IFD first
|
2063
|
-
#
|
2064
|
-
if (@offsetInfo) {
|
2065
|
-
my $ttwLen; # length of MRW TTW segment
|
2066
|
-
my @writeLater; # write image data last
|
2067
|
-
for ($ifd=$#offsetInfo; $ifd>=-1; --$ifd) {
|
2068
|
-
# build list of offsets to process
|
2069
|
-
my @offsetList;
|
2070
|
-
if ($ifd >= 0) {
|
2071
|
-
my $offsetInfo = $offsetInfo[$ifd] or next;
|
2072
|
-
# patch Panasonic RAW/RW2 StripOffsets/StripByteCounts if necessary
|
2073
|
-
my $stripOffsets = $$offsetInfo{0x111};
|
2074
|
-
if ($stripOffsets and $$stripOffsets[0]{PanasonicHack}) {
|
2075
|
-
require Image::ExifTool::PanasonicRaw;
|
2076
|
-
my $err = Image::ExifTool::PanasonicRaw::PatchRawDataOffset($offsetInfo, $raf, $ifd);
|
2077
|
-
$err and $et->Error($err);
|
2078
|
-
}
|
2079
|
-
my $tagID;
|
2080
|
-
# loop through all tags in reverse order so we save thumbnail
|
2081
|
-
# data before main image data if both exist in the same IFD
|
2082
|
-
foreach $tagID (reverse sort keys %$offsetInfo) {
|
2083
|
-
my $tagInfo = $$offsetInfo{$tagID}[0];
|
2084
|
-
next unless $$tagInfo{IsOffset}; # handle byte counts with offsets
|
2085
|
-
my $sizeInfo = $$offsetInfo{$$tagInfo{OffsetPair}};
|
2086
|
-
$sizeInfo or $et->Error("No size tag for $dirName:$$tagInfo{Name}"), next;
|
2087
|
-
my $dataTag = $$tagInfo{DataTag};
|
2088
|
-
# write TIFF image data (strips or tiles) later if requested
|
2089
|
-
if ($raf and defined $$origDirInfo{ImageData} and
|
2090
|
-
($tagID == 0x111 or $tagID == 0x144 or
|
2091
|
-
# also defer writing of other big data such as JpgFromRaw in NEF
|
2092
|
-
($$sizeInfo[3][0] and
|
2093
|
-
# (calculate approximate combined size of all blocks)
|
2094
|
-
$$sizeInfo[3][0] * scalar(@{$$sizeInfo[3]}) > 1000000)) and
|
2095
|
-
# but don't defer writing if replacing with new value
|
2096
|
-
(not defined $dataTag or not defined $offsetData{$dataTag}))
|
2097
|
-
{
|
2098
|
-
push @writeLater, [ $$offsetInfo{$tagID}, $sizeInfo ];
|
2099
|
-
} else {
|
2100
|
-
push @offsetList, [ $$offsetInfo{$tagID}, $sizeInfo ];
|
2101
|
-
}
|
2102
|
-
}
|
2103
|
-
} else {
|
2104
|
-
last unless @writeLater;
|
2105
|
-
@offsetList = @writeLater;
|
2106
|
-
}
|
2107
|
-
my $offsetPair;
|
2108
|
-
foreach $offsetPair (@offsetList) {
|
2109
|
-
my ($tagInfo, $offsets, $count, $oldOffset) = @{$$offsetPair[0]};
|
2110
|
-
my ($cntInfo, $byteCounts, $count2, $oldSize, $format) = @{$$offsetPair[1]};
|
2111
|
-
# must be the same number of offset and byte count values
|
2112
|
-
unless ($count == $count2) {
|
2113
|
-
$et->Error("Offsets/ByteCounts disagree on count for $$tagInfo{Name}");
|
2114
|
-
return undef;
|
2115
|
-
}
|
2116
|
-
my $formatStr = $formatName[$format];
|
2117
|
-
# follow pointer to value data if necessary
|
2118
|
-
$count > 1 and $offsets = Get32u(\$newData, $offsets);
|
2119
|
-
my $n = $count * $formatSize[$format];
|
2120
|
-
$n > 4 and $byteCounts = Get32u(\$newData, $byteCounts);
|
2121
|
-
if ($byteCounts < 0 or $byteCounts + $n > length($newData)) {
|
2122
|
-
$et->Error("Error reading $$tagInfo{Name} byte counts");
|
2123
|
-
return undef;
|
2124
|
-
}
|
2125
|
-
# get offset base and data pos (abnormal for some preview images)
|
2126
|
-
my ($dbase, $dpos, $wrongBase, $subIfdDataFixup);
|
2127
|
-
if ($$tagInfo{IsOffset} eq '2') {
|
2128
|
-
$dbase = $firstBase;
|
2129
|
-
$dpos = $dataPos + $base - $firstBase;
|
2130
|
-
} else {
|
2131
|
-
$dbase = $base;
|
2132
|
-
$dpos = $dataPos;
|
2133
|
-
}
|
2134
|
-
# use different base if necessary for some offsets (Minolta A200)
|
2135
|
-
if ($$tagInfo{WrongBase}) {
|
2136
|
-
my $self = $et;
|
2137
|
-
#### eval WrongBase ($self)
|
2138
|
-
$wrongBase = eval $$tagInfo{WrongBase} || 0;
|
2139
|
-
$dbase += $wrongBase;
|
2140
|
-
$dpos -= $wrongBase;
|
2141
|
-
} else {
|
2142
|
-
$wrongBase = 0;
|
2143
|
-
}
|
2144
|
-
my $oldOrder = GetByteOrder();
|
2145
|
-
my $dataTag = $$tagInfo{DataTag};
|
2146
|
-
# use different byte order for values of this offset pair if required (Minolta A200)
|
2147
|
-
SetByteOrder($$tagInfo{ByteOrder}) if $$tagInfo{ByteOrder};
|
2148
|
-
# transfer the data referenced by all offsets of this tag
|
2149
|
-
for ($n=0; $n<$count; ++$n) {
|
2150
|
-
my ($oldEnd, $size);
|
2151
|
-
if (@$oldOffset and @$oldSize) {
|
2152
|
-
# calculate end offset of this block
|
2153
|
-
$oldEnd = $$oldOffset[$n] + $$oldSize[$n];
|
2154
|
-
# update TIFF_END as if we read this data from file
|
2155
|
-
UpdateTiffEnd($et, $oldEnd + $dbase);
|
2156
|
-
}
|
2157
|
-
my $offsetPos = $offsets + $n * 4;
|
2158
|
-
my $byteCountPos = $byteCounts + $n * $formatSize[$format];
|
2159
|
-
if ($$tagInfo{PanasonicHack}) {
|
2160
|
-
# use actual raw data length (may be different than StripByteCounts!)
|
2161
|
-
$size = $$oldSize[$n];
|
2162
|
-
} else {
|
2163
|
-
# use size of new data
|
2164
|
-
$size = ReadValue(\$newData, $byteCountPos, $formatStr, 1, 4);
|
2165
|
-
}
|
2166
|
-
my $offset = $$oldOffset[$n];
|
2167
|
-
if (defined $offset) {
|
2168
|
-
$offset -= $dpos;
|
2169
|
-
} elsif ($size != 0xfeedfeed) {
|
2170
|
-
$et->Error('Internal error (no offset)');
|
2171
|
-
return undef;
|
2172
|
-
}
|
2173
|
-
my $newOffset = length($newData) - $wrongBase;
|
2174
|
-
my $buff;
|
2175
|
-
# look for 'feed' code to use our new data
|
2176
|
-
if ($size == 0xfeedfeed) {
|
2177
|
-
unless (defined $dataTag) {
|
2178
|
-
$et->Error("No DataTag defined for $$tagInfo{Name}");
|
2179
|
-
return undef;
|
2180
|
-
}
|
2181
|
-
unless (defined $offsetData{$dataTag}) {
|
2182
|
-
$et->Error("Internal error (no $dataTag)");
|
2183
|
-
return undef;
|
2184
|
-
}
|
2185
|
-
if ($count > 1) {
|
2186
|
-
$et->Error("Can't modify $$tagInfo{Name} with count $count");
|
2187
|
-
return undef;
|
2188
|
-
}
|
2189
|
-
$buff = $offsetData{$dataTag};
|
2190
|
-
if ($formatSize[$format] != 4) {
|
2191
|
-
$et->Error("$$cntInfo{Name} is not int32");
|
2192
|
-
return undef;
|
2193
|
-
}
|
2194
|
-
# set the data size
|
2195
|
-
$size = length($buff);
|
2196
|
-
Set32u($size, \$newData, $byteCountPos);
|
2197
|
-
} elsif ($ifd < 0) {
|
2198
|
-
# pad if necessary (but don't pad contiguous image blocks)
|
2199
|
-
my $pad = 0;
|
2200
|
-
++$pad if $size & 0x01 and ($n+1 >= $count or not $oldEnd or
|
2201
|
-
$oldEnd != $$oldOffset[$n+1]);
|
2202
|
-
# preserve original image padding if specified
|
2203
|
-
if ($$origDirInfo{PreserveImagePadding} and $n+1 < $count and
|
2204
|
-
$oldEnd and $$oldOffset[$n+1] > $oldEnd)
|
2205
|
-
{
|
2206
|
-
$pad = $$oldOffset[$n+1] - $oldEnd;
|
2207
|
-
}
|
2208
|
-
# copy data later
|
2209
|
-
push @imageData, [$offset+$dbase+$dpos, $size, $pad];
|
2210
|
-
$newOffset += $blockSize; # data comes after other deferred data
|
2211
|
-
# create fixup for SubIFD ImageData
|
2212
|
-
if ($imageDataFlag eq 'SubIFD' and not $subIfdDataFixup) {
|
2213
|
-
$subIfdDataFixup = new Image::ExifTool::Fixup;
|
2214
|
-
$imageData[-1][4] = $subIfdDataFixup;
|
2215
|
-
}
|
2216
|
-
$size += $pad; # account for pad byte if necessary
|
2217
|
-
# return ImageData list
|
2218
|
-
$$origDirInfo{ImageData} = \@imageData;
|
2219
|
-
} elsif ($offset >= 0 and $offset+$size <= $dataLen) {
|
2220
|
-
# take data from old dir data buffer
|
2221
|
-
$buff = substr($$dataPt, $offset, $size);
|
2222
|
-
} elsif ($$et{TIFF_TYPE} eq 'MRW') {
|
2223
|
-
# TTW segment must be an even 4 bytes long, so pad now if necessary
|
2224
|
-
my $n = length $newData;
|
2225
|
-
$buff = ($n & 0x03) ? "\0" x (4 - ($n & 0x03)) : '';
|
2226
|
-
$size = length($buff);
|
2227
|
-
# data exists after MRW TTW segment
|
2228
|
-
$ttwLen = length($newData) + $size unless defined $ttwLen;
|
2229
|
-
$newOffset = $offset + $dpos + $ttwLen - $dataLen;
|
2230
|
-
} elsif ($raf and $raf->Seek($offset+$dbase+$dpos,0) and
|
2231
|
-
$raf->Read($buff,$size) == $size)
|
2232
|
-
{
|
2233
|
-
# (data was read OK)
|
2234
|
-
# patch incorrect ThumbnailOffset in Sony A100 1.00 ARW images
|
2235
|
-
if ($$et{TIFF_TYPE} eq 'ARW' and $$tagInfo{Name} eq 'ThumbnailOffset' and
|
2236
|
-
$$et{Model} eq 'DSLR-A100' and $buff !~ /^\xff\xd8\xff/)
|
2237
|
-
{
|
2238
|
-
my $pos = $offset + $dbase + $dpos;
|
2239
|
-
my $try;
|
2240
|
-
if ($pos < 0x10000 and $raf->Seek($pos+0x10000,0) and
|
2241
|
-
$raf->Read($try,$size) == $size and $try =~ /^\xff\xd8\xff/)
|
2242
|
-
{
|
2243
|
-
$buff = $try;
|
2244
|
-
$et->Warn('Adjusted incorrect A100 ThumbnailOffset', 1);
|
2245
|
-
} else {
|
2246
|
-
$et->Error('Invalid ThumbnailImage');
|
2247
|
-
}
|
2248
|
-
}
|
2249
|
-
} elsif ($$tagInfo{Name} eq 'ThumbnailOffset' and $offset>=0 and $offset<$dataLen) {
|
2250
|
-
# Grrr. The Canon 350D writes the thumbnail with an incorrect byte count
|
2251
|
-
my $diff = $offset + $size - $dataLen;
|
2252
|
-
$et->Warn("ThumbnailImage runs outside EXIF data by $diff bytes (truncated)",1);
|
2253
|
-
# set the size to the available data
|
2254
|
-
$size -= $diff;
|
2255
|
-
unless (WriteValue($size, $formatStr, 1, \$newData, $byteCountPos)) {
|
2256
|
-
warn 'Internal error writing thumbnail size';
|
2257
|
-
}
|
2258
|
-
# get the truncated image
|
2259
|
-
$buff = substr($$dataPt, $offset, $size);
|
2260
|
-
} elsif ($$tagInfo{Name} eq 'PreviewImageStart' and $$et{FILE_TYPE} eq 'JPEG') {
|
2261
|
-
# try to load the preview image using the specified offset
|
2262
|
-
undef $buff;
|
2263
|
-
my $r = $$et{RAF};
|
2264
|
-
if ($r and not $raf) {
|
2265
|
-
my $tell = $r->Tell();
|
2266
|
-
# read and validate
|
2267
|
-
undef $buff unless $r->Seek($offset+$base+$dataPos,0) and
|
2268
|
-
$r->Read($buff,$size) == $size and
|
2269
|
-
$buff =~ /^.\xd8\xff[\xc4\xdb\xe0-\xef]/s;
|
2270
|
-
$r->Seek($tell, 0) or $et->Error('Seek error'), return undef;
|
2271
|
-
}
|
2272
|
-
# set flag if we must load PreviewImage
|
2273
|
-
$buff = 'LOAD_PREVIEW' unless defined $buff;
|
2274
|
-
} else {
|
2275
|
-
my $dataName = $dataTag || $$tagInfo{Name};
|
2276
|
-
return undef if $et->Error("Error reading $dataName data in $name", $inMakerNotes);
|
2277
|
-
$buff = '';
|
2278
|
-
}
|
2279
|
-
if ($$tagInfo{Name} eq 'PreviewImageStart') {
|
2280
|
-
if ($$et{FILE_TYPE} eq 'JPEG' and not $$tagInfo{MakerPreview}) {
|
2281
|
-
# hold onto the PreviewImage until we can determine if it fits
|
2282
|
-
$$et{PREVIEW_INFO} or $$et{PREVIEW_INFO} = {
|
2283
|
-
Data => $buff,
|
2284
|
-
Fixup => new Image::ExifTool::Fixup,
|
2285
|
-
};
|
2286
|
-
if ($$tagInfo{IsOffset} and $$tagInfo{IsOffset} eq '2') {
|
2287
|
-
$$et{PREVIEW_INFO}{NoBaseShift} = 1;
|
2288
|
-
}
|
2289
|
-
if ($offset >= 0 and $offset+$size <= $dataLen) {
|
2290
|
-
# set flag indicating this preview wasn't in a trailer
|
2291
|
-
$$et{PREVIEW_INFO}{WasContained} = 1;
|
2292
|
-
}
|
2293
|
-
$buff = '';
|
2294
|
-
} elsif ($$et{TIFF_TYPE} eq 'ARW' and $$et{Model} eq 'DSLR-A100') {
|
2295
|
-
# the A100 double-references the same preview, so ignore the
|
2296
|
-
# second one (the offset and size will be patched later)
|
2297
|
-
next if $$et{A100PreviewLength};
|
2298
|
-
$$et{A100PreviewLength} = length $buff if defined $buff;
|
2299
|
-
}
|
2300
|
-
}
|
2301
|
-
# update offset accordingly and add to end of new data
|
2302
|
-
Set32u($newOffset, \$newData, $offsetPos);
|
2303
|
-
# add a pointer to fix up this offset value (marked with DataTag name)
|
2304
|
-
$fixup->AddFixup($offsetPos, $dataTag);
|
2305
|
-
# also add to subIfdDataFixup if necessary
|
2306
|
-
$subIfdDataFixup->AddFixup($offsetPos, $dataTag) if $subIfdDataFixup;
|
2307
|
-
# must also (sometimes) update StripOffsets in Panasonic RW2 images
|
2308
|
-
my $otherPos = $$offsetPair[0][5];
|
2309
|
-
if ($otherPos and $$tagInfo{PanasonicHack}) {
|
2310
|
-
Set32u($newOffset, \$newData, $otherPos);
|
2311
|
-
$fixup->AddFixup($otherPos, $dataTag);
|
2312
|
-
}
|
2313
|
-
if ($ifd >= 0) {
|
2314
|
-
# buff length must be even (Note: may have changed since $size was set)
|
2315
|
-
$buff .= "\0" if length($buff) & 0x01;
|
2316
|
-
$newData .= $buff; # add this strip to the data
|
2317
|
-
} else {
|
2318
|
-
$blockSize += $size; # keep track of total size
|
2319
|
-
}
|
2320
|
-
}
|
2321
|
-
SetByteOrder($oldOrder);
|
2322
|
-
}
|
2323
|
-
}
|
2324
|
-
# verify that nothing else got written after determining TTW length
|
2325
|
-
if (defined $ttwLen and $ttwLen != length($newData)) {
|
2326
|
-
$et->Error('Internal error writing MRW TTW');
|
2327
|
-
}
|
2328
|
-
}
|
2329
|
-
#
|
2330
|
-
# set offsets and generate fixups for tag values which were too large for memory
|
2331
|
-
#
|
2332
|
-
$blockSize = 0;
|
2333
|
-
foreach $blockInfo (@imageData) {
|
2334
|
-
my ($pos, $size, $pad, $entry, $subFix) = @$blockInfo;
|
2335
|
-
if (defined $entry) {
|
2336
|
-
my $format = Get16u(\$newData, $entry + 2);
|
2337
|
-
if ($format < 1 or $format > 13) {
|
2338
|
-
$et->Error('Internal error copying huge value');
|
2339
|
-
last;
|
2340
|
-
} else {
|
2341
|
-
# set count and offset in directory entry
|
2342
|
-
Set32u($size / $formatSize[$format], \$newData, $entry + 4);
|
2343
|
-
Set32u(length($newData)+$blockSize, \$newData, $entry + 8);
|
2344
|
-
$fixup->AddFixup($entry + 8);
|
2345
|
-
# create special fixup for SubIFD data
|
2346
|
-
if ($imageDataFlag eq 'SubIFD') {
|
2347
|
-
my $subIfdDataFixup = new Image::ExifTool::Fixup;
|
2348
|
-
$subIfdDataFixup->AddFixup($entry + 8);
|
2349
|
-
# save fixup in imageData list
|
2350
|
-
$$blockInfo[4] = $subIfdDataFixup;
|
2351
|
-
}
|
2352
|
-
# must reset entry pointer so we don't use it again in a parent IFD!
|
2353
|
-
$$blockInfo[3] = undef;
|
2354
|
-
}
|
2355
|
-
}
|
2356
|
-
# apply additional shift required for contained SubIFD image data offsets
|
2357
|
-
if ($subFix and defined $$subFix{BlockLen} and $numBlocks > 0) {
|
2358
|
-
# our offset expects the data at the end of the SubIFD block (BlockLen + Start),
|
2359
|
-
# but it will actually be at length($newData) + $blockSize. So adjust
|
2360
|
-
# accordingly (and subtract an extra Start because this shift is applied later)
|
2361
|
-
$$subFix{Shift} += length($newData) - $$subFix{BlockLen} - 2 * $$subFix{Start} + $blockSize;
|
2362
|
-
$subFix->ApplyFixup(\$newData);
|
2363
|
-
}
|
2364
|
-
$blockSize += $size + $pad;
|
2365
|
-
--$numBlocks;
|
2366
|
-
}
|
2367
|
-
#
|
2368
|
-
# apply final shift to new data position if this is the top level IFD
|
2369
|
-
#
|
2370
|
-
unless ($$dirInfo{Fixup}) {
|
2371
|
-
my $hdrPtr = $$dirInfo{HeaderPtr};
|
2372
|
-
my $newDataPos = $hdrPtr ? length $$hdrPtr : $$dirInfo{NewDataPos} || 0;
|
2373
|
-
# adjust CanonVRD offset to point to end of regular TIFF if necessary
|
2374
|
-
# (NOTE: This will be incorrect if multiple trailers exist,
|
2375
|
-
# but it is unlikely that it could ever be correct in this case anyway.
|
2376
|
-
# Also, this doesn't work for JPEG images (but CanonDPP doesn't set
|
2377
|
-
# this when editing JPEG images anyway))
|
2378
|
-
$fixup->SetMarkerPointers(\$newData, 'CanonVRD', length($newData) + $blockSize);
|
2379
|
-
if ($newDataPos) {
|
2380
|
-
$$fixup{Shift} += $newDataPos;
|
2381
|
-
$fixup->ApplyFixup(\$newData);
|
2382
|
-
}
|
2383
|
-
# save fixup for adjusting Leica trailer offset if necessary
|
2384
|
-
$$et{LeicaTrailer}{Fixup}->AddFixup($fixup) if $$et{LeicaTrailer};
|
2385
|
-
# save fixup for PreviewImage in JPEG file if necessary
|
2386
|
-
my $previewInfo = $$et{PREVIEW_INFO};
|
2387
|
-
if ($previewInfo) {
|
2388
|
-
my $pt = \$$previewInfo{Data}; # image data or 'LOAD_PREVIEW' flag
|
2389
|
-
# now that we know the size of the EXIF data, first test to see if our new image fits
|
2390
|
-
# inside the EXIF segment (remember about the TIFF and EXIF headers: 8+6 bytes)
|
2391
|
-
if (($$pt ne 'LOAD_PREVIEW' and length($$pt) + length($newData) + 14 <= 0xfffd and
|
2392
|
-
not $$previewInfo{IsTrailer}) or
|
2393
|
-
$$previewInfo{IsShort}) # must fit in this segment if using short pointers
|
2394
|
-
{
|
2395
|
-
# It fits! (or must exist in EXIF segment), so fixup the
|
2396
|
-
# PreviewImage pointers and stuff the preview image in here
|
2397
|
-
my $newPos = length($newData) + $newDataPos;
|
2398
|
-
$newPos += ($$previewInfo{BaseShift} || 0);
|
2399
|
-
if ($$previewInfo{Relative}) {
|
2400
|
-
# calculate our base by looking at how far the pointer got shifted
|
2401
|
-
$newPos -= ($fixup->GetMarkerPointers(\$newData, 'PreviewImage') || 0);
|
2402
|
-
}
|
2403
|
-
$fixup->SetMarkerPointers(\$newData, 'PreviewImage', $newPos);
|
2404
|
-
$newData .= $$pt;
|
2405
|
-
# set flag to delete old preview unless it was contained in the EXIF
|
2406
|
-
$$et{DEL_PREVIEW} = 1 unless $$et{PREVIEW_INFO}{WasContained};
|
2407
|
-
delete $$et{PREVIEW_INFO}; # done with our preview data
|
2408
|
-
} else {
|
2409
|
-
# Doesn't fit, or we still don't know, so save fixup information
|
2410
|
-
# and put the preview at the end of the file
|
2411
|
-
$$previewInfo{Fixup} or $$previewInfo{Fixup} = new Image::ExifTool::Fixup;
|
2412
|
-
$$previewInfo{Fixup}->AddFixup($fixup);
|
2413
|
-
}
|
2414
|
-
} elsif (defined $newData and $deleteAll) {
|
2415
|
-
$newData = ''; # delete both IFD0 and IFD1 since only mandatory tags remain
|
2416
|
-
} elsif ($$et{A100PreviewLength}) {
|
2417
|
-
# save preview image start for patching A100 quirks later
|
2418
|
-
$$et{A100PreviewStart} = $fixup->GetMarkerPointers(\$newData, 'PreviewImage');
|
2419
|
-
}
|
2420
|
-
# save location of last IFD for use in Canon RAW header
|
2421
|
-
if ($newDataPos == 16) {
|
2422
|
-
my @ifdPos = $fixup->GetMarkerPointers(\$newData,'NextIFD');
|
2423
|
-
$$origDirInfo{LastIFD} = pop @ifdPos;
|
2424
|
-
}
|
2425
|
-
# recrypt SR2 SubIFD data if necessary
|
2426
|
-
my $key = $$et{SR2SubIFDKey};
|
2427
|
-
if ($key) {
|
2428
|
-
my $start = $fixup->GetMarkerPointers(\$newData, 'SR2SubIFDOffset');
|
2429
|
-
my $len = $$et{SR2SubIFDLength};
|
2430
|
-
# (must subtract 8 for size of TIFF header)
|
2431
|
-
if ($start and $start - 8 + $len <= length $newData) {
|
2432
|
-
require Image::ExifTool::Sony;
|
2433
|
-
Image::ExifTool::Sony::Decrypt(\$newData, $start - 8, $len, $key);
|
2434
|
-
}
|
2435
|
-
}
|
2436
|
-
}
|
2437
|
-
# return empty string if no entries in directory
|
2438
|
-
# (could be up to 10 bytes and still be empty)
|
2439
|
-
$newData = '' if defined $newData and length($newData) < 12;
|
2440
|
-
|
2441
|
-
return $newData; # return our directory data
|
2442
|
-
}
|
2443
|
-
|
2444
|
-
1; # end
|
2445
|
-
|
2446
|
-
__END__
|
2447
|
-
|
2448
|
-
=head1 NAME
|
2449
|
-
|
2450
|
-
Image::ExifTool::WriteExif.pl - Write EXIF meta information
|
2451
|
-
|
2452
|
-
=head1 SYNOPSIS
|
2453
|
-
|
2454
|
-
This file is autoloaded by Image::ExifTool::Exif.
|
2455
|
-
|
2456
|
-
=head1 DESCRIPTION
|
2457
|
-
|
2458
|
-
This file contains routines to write EXIF metadata.
|
2459
|
-
|
2460
|
-
=head1 AUTHOR
|
2461
|
-
|
2462
|
-
Copyright 2003-2016, Phil Harvey (phil at owl.phy.queensu.ca)
|
2463
|
-
|
2464
|
-
This library is free software; you can redistribute it and/or modify it
|
2465
|
-
under the same terms as Perl itself.
|
2466
|
-
|
2467
|
-
=head1 SEE ALSO
|
2468
|
-
|
2469
|
-
L<Image::ExifTool::Exif(3pm)|Image::ExifTool::Exif>,
|
2470
|
-
L<Image::ExifTool(3pm)|Image::ExifTool>
|
2471
|
-
|
2472
|
-
=cut
|