I prefer using OrderedDict from the collections module, but I use a regular dictionary in the code below. Then splitlines and add each line/tag to a dictionary. This method will return the exiftool.exe output as a string. To load EXIF data from an image file, use the check_output method in the subprocess module. The solution I found was running exiftool.exe with the subprocess module.Įxiftool.exe supports many file types. I needed something to get everything I could out of a NIKON *.jpg file.
Rather likely, this archive has some superfluous files but the effort to identify them safely is too high. I chose these files: perl-5.30.2.1_for_ExifTool.zip.
Save the patched script to in the exiftool_files folder together with the other ExifTool files and directories (keep the structure).īuild the "Perl launcher" exiftool.exe with the sources found in Portable-Perl-Applications (or extract it from the zip file offered above).Īdd a stripped set of files from the portable Strawberry Perl distribution.
How to build the installer yourself - if you don't trust me or want to modify it: You can use it like any Perl for Windows, but the installer will not add this directory to your path.
The "exiftool_files" directory contains a stripped version of Strawberry Perl (portable) with just the modules necessary to run ExifTool, including the original Perl.exe. That's no protected folder, so you need no administrative rights (See ) Using Perl alone If you select "for me only", the installation path defaults to %LocalAppData%\Programs\ExifTool. The advantage is that the ExifTool installation is then protected against unintentional or malicious modification.
If you select "for all", the installer requests administrative rights and suggests to install to the protected folder %ProgramFiles(x86)%\ExifTool for the 32 bit version or %ProgramFiles%\ExifTool for the 64 bit version. You may install "for me only" or "for all users". Use the ZIP archive if you don't trust InnoSetup. Please report these errors to your AV spupplier. Please note that a few virus scanners signal false positives for Inno Setup created installers. Latest build, based on Strawberry Perl 5.30.2.1 and libraries as of 2020-02:ĮxifTool_install_12.47_32.exe Windows Installer, 32 bit versionĮxifTool_install_12.47_64.exe Windows Installer, 64 bit versionĮxiftool-12.47_32.zip package without installer, 32 bit versionĮxiftool-12.47_64.zip package without installer, 64 bit version What you get is "plain ExifTool" plus a stripped "portable Strawberry Perl" plus my own tiny launcher, provided as a Windows installer or just packed together in a ZIP file: It passes the built-in automated self tests and additional tests, and I'm using it successfully on my own system with Photools IMatch, a great Digital Asset Management (DAM) for Windows and on the command line.