diff options
| author | Kumar Damani <me@kumardamani.net> | 2026-07-29 17:10:29 +0000 |
|---|---|---|
| committer | Kumar Damani <me@kumardamani.net> | 2026-07-29 17:10:29 +0000 |
| commit | 035e80d205bbb495038f79f8a6ca4b2eb9114921 (patch) | |
| tree | 7bacaf7497e193d83fef43f3157ca794ccfdcc6b /optimize-images.sh | |
| parent | 564ab84af7f69603e3658bce846168f2cfb91249 (diff) | |
fix orientation in optimizer
Diffstat (limited to 'optimize-images.sh')
| -rwxr-xr-x | optimize-images.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/optimize-images.sh b/optimize-images.sh index c95da6e..baceda9 100755 --- a/optimize-images.sh +++ b/optimize-images.sh @@ -21,7 +21,7 @@ dir="${1%/}" shopt -s nullglob nocaseglob for file in "$dir"/*.jpg "$dir"/*.jpeg "$dir"/*.png; do - magick "$file" -resize '1200x800>' -quality 80 "${file%.*}.webp" + magick "$file" -auto-orient -resize '1200x800>' -quality 80 "${file%.*}.webp" rm "$file" echo "$file -> ${file%.*}.webp" done |
