A simple Ruby script to generate a CSV file from all JPEG EXIF data within a directory
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
1.3 KiB

2 years ago
2 years ago
  1. #Exif2CSV
  2. `Exif2CSV` will allow you to extract *Exif* information from multiple images and store it into a *CSV* file. You will then be able to process data in a database or in tools such as *OpenOffice Calc*.
  3. You might be interested in [ExposurePlot](http://www.vandel.nl/exposureplot.html) as a sexyer alternative to this script.
  4. ##Installation on Windows
  5. * Download and install [RubyInstaller](http://rubyinstaller.org/downloads/);
  6. * Download and unzip [ExifTool](http://www.sno.phy.queensu.ca/~phil/exiftool/) in the directory you'll be calling the script from (or in a directory in your PATH);
  7. * Rename `exiftool(-k).exe` to `exiftool.exe`;
  8. * Start `cmd.exe` and execute `gem install mini_exiftool`. You might have to specify the full path to `gem.exe`, for instance `C:\Ruby186\bin\gem.exe install mini_exiftool`.
  9. Generate a *CSV* file with `./ruby2csv.rb C:/path/to/pictures`.
  10. Again, depending on your `PATH`, you might have to specify the full path to ruby.exe: `C:\Ruby186\bin\ruby.exe ruby2csv.rb C:/path/to/pictures`.
  11. ##Installation on Debian GNU/Linux
  12. On Debian (and probably Debian based distributions like Ubuntu), follow the following steps (as root).
  13. ```sh
  14. apt-get install ruby rubygems libimage-exiftool-perl
  15. gem install mini_exiftool
  16. ```
  17. Generate a *CSV* file with `./ruby2csv.rb /path/to/pictures`.