From e9245f239c1c795ee38c07db71437776b03664ba Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Sat, 19 Feb 2022 21:02:12 +1000 Subject: [PATCH] Work around imagemagick regression that puts everything upside down --- models/sprites/make-sprites.sh | 2 +- models/weapons/make-sprites.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/models/sprites/make-sprites.sh b/models/sprites/make-sprites.sh index 27971f9a0..28223944d 100644 --- a/models/sprites/make-sprites.sh +++ b/models/sprites/make-sprites.sh @@ -130,7 +130,7 @@ sprite() shift shift pngsprite "${name}_frame$frame" "$color" "$bgcolor" "$text" - convert "${name}_frame$frame.png" "${name}_frame$frame.tga" + convert "${name}_frame$frame.png" -auto-orient "${name}_frame$frame.tga" rm -f "${name}_frame$frame.png" args="$args -sprite ${name}_frame$frame.tga $(($sprwidth / 2)) $(($sprheight - 1)) $interval" frame=$(($frame + 1)) diff --git a/models/weapons/make-sprites.sh b/models/weapons/make-sprites.sh index 50f3fc672..3b8c43721 100755 --- a/models/weapons/make-sprites.sh +++ b/models/weapons/make-sprites.sh @@ -12,6 +12,7 @@ sprite() # Text exec {FD}< <(convert \ + -auto-orient \ -size 185x120 \ -background transparent \ -fill "#$color" \ @@ -38,6 +39,7 @@ sprite() yb2=$((yb1+15-1)) exec {FD}< <(convert \ + -auto-orient \ -size 256x256 \ -background transparent \ -fill "#$color" \ -- 2.39.2