added script to remove EXIF data from images and resize them
parent
83f8c30219
commit
dd102bb58d
@ -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
|
Loading…
Reference in New Issue