#!/usr/bin/env bash # requires exiftool and imagemagick set -eu source_dir=$1 for file in ${source_dir}/*; do exiftool -All:All= \ -TagsFromFile $file \ -DateTimeOriginal \ -Model \ -LensModel \ -FocalLength \ -ISO \ -ExposureTime -ShutterSpeedValue -BulbDuration \ -ApertureValue -FNumber \ -WhiteBalance \ -Flash \ $file done rm ${source_dir/}*_original # 5x4 aspect ratio is expected mogrify -resize 1080x1350 ${source_dir}/*.jpg