I always do the same photo copying from SD cards and I decided to automate it. So I wrote this simple Ruby script.
This is how it works:
- it asks on which volume the photos are
- it analyzes exif of all the photos on it
- it groups photos by day taken and camera model
- it asks what those event names should be
- it creates a folder per event on your desktop
- it copies photos in there
It also remembers which photos were already imported, so it won't import them twice if you didn't format the card between imports.
Oh, and the photos
above stands for images, videos, raw files,…, everything.
The script has been tested with:
- Leica Q2
- DJI Air 2S
- GoPro HERO10
Feel free to fork and extend for your own needs.
Once you have all requirements on your system, you should clone this repo, and in your shell run the following commands:
bundle install
sequel -m migrations sqlite://photos.db
ruby run.rb