diff --git a/process-images.sh b/process-images.sh new file mode 100755 index 0000000..3d03afe --- /dev/null +++ b/process-images.sh @@ -0,0 +1,25 @@ +#!/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 \ No newline at end of file