From dd102bb58d45700cc41565d5fdf68e25fabaced0 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Tue, 9 Aug 2022 14:59:42 +0200 Subject: [PATCH] added script to remove EXIF data from images and resize them --- process-images.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 process-images.sh 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