You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
501 B
Bash
25 lines
501 B
Bash
#!/usr/bin/env bash
|
|
# requires exiftool and imagemagick
|
|
|
|
set -eu
|
|
|
|
|
|
for file in web/new_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 |