exinfo-read

 (25.8.2014, keywords: exif, reading, script)

This Perl script outputs EXIF data from image files:

EXIF-keys are defined in script but they are easy to replace if needed. Data output is a list which you can format (list, tab delimited and csv).

Disclaimer: This script is a part of my photo workflow. It might fit (modified) for you or it may be not. If this script breaks something, you can keep all the pieces. I might add that my cameras are made by Olympus, so script functioning is leaning a bit towards this brand.

requirements

  1. linux (ubuntu, debian, debian-derivates, centos, redhat etc.)
  2. perl 5
  3. GNU coreutils 7.4
  4. exiv2

setup

  1. Ensure that exiv2 is installed in your machine (yum, aptitude, synaptic et al.)
  2. Load script (and check contents that you know what you're getting).
  3. In terminal copy script to directory /usr/local/bin (input bold, backslash means that next line is part of the current one):



    user@teac:~/Downloads$ sudo cp exinfo-read.pl \
    /usr/local/bin/exinfo-read

    [sudo] password for user: [your-passwd-here]




  4. Set script rights for execution:



    user@teac:~/Downloads$ sudo chmod ugo+x /usr/local/bin/exinfo-read
    user@teac:~/Downloads$ ls -l /usr/local/bin
    total 28
    :
    -rwxr-xr-x. 1 root root 29910 Aug 24  2014 exinfo-read
    :




  5. Make a test run:



    user@teac:~/Downloads$ exinfo-read -v -c

    doing dependency check:  passed

    user@teac:~/Downloads$



    If something else pops up (usually an error message), you have to fix enviroment accordingly. Script checks that exiftool program is found and complains if it's not. Google/Bing/etc. are probably your best friend here.

    You can get help by providing option -h:



    user@teac:~/Downloads$ exinfo-read -h


usage

With this script you can check image(s) author, copyright, title, description, location, date and keywords. This is necessary if you want to check them from command line or use data in somewhere else (like with csv format).

For example:


user@teac:~/Pictures/DCIM-temp$ exinfo-read -f csv -t exif new-pics/


You can get best view of command line options by reading the help and trying the script out. You can read either one image file or all image files in directory.

This scriptwas made mainly to compliment my photo editing workflow, so it must be tested and modified if necessary.

script

Version 20140702-1

As file: exinfo-read.pl

comments