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