Photo etc

Shell scripts for archiving digital photos in directories by date

The fact that most digital cameras store the shooting dates inside JPEG files in the EXIF format makes it possible to automatically archive the photos by date right after they are downloaded, which is exactly what the scripts below do. Here’s an example of a directory tree they create: 1999 1999-07 1999-07-14 IMG_48324.JPG IMG_48325.JPG IMG_48326.JPG […]

Read More
Scripting

Organise images using exiftool

Move all files from directory dir into directories named by the original file extensions exiftool ‘-Directory<datetimeoriginal> Rename all images in dir according to the CreateDate date and time, adding a copy number with leading ‘-‘ if the file already exists (%-c), and preserving the original file extension (%e). Note the extra ‘%’ necessary to escape […]

Read More
Photo etc

Script to download pictures from camera and rename them etc

1. download photos from camera and sort them by date of day in folders 2. remove possible duplicates if I did not erase camera images since last download 3. convert RAW/NEF images to a usable format All this in one single click! #!/bin/bash # Change this to where to store Photos target=/home/multimedia/Images camera=”USB PTP Class […]

Read More