tga="$output/${svg%.*}.tga"
mkdir -p "$output"
- sed "s/LUMA/$version/g" "$input/$svg" | rsvg-convert -z 2 | convert - -scale "50%" "$tga"
+ # -auto-orient works around an inversion regression present in imagemagick 6.9.11-60
+ sed "s/LUMA/$version/g" "$input/$svg" | rsvg-convert -z 2 | convert - -auto-orient -scale "50%" "$tga"
done
# TODO: remove old inkscape support (second case).
inkscape --export-dpi=90 --export-filename="background_l2.png" "tmp.svg" ||\
inkscape -f "tmp.svg" -d 90 -e "background_l2.png"
-convert background_l2.png background_l2.tga
+# -auto-orient works around an inversion regression present in imagemagick 6.9.11-60
+convert -auto-orient background_l2.png background_l2.tga
# gimp -d -f -i -b '(all2tga "background_l2.png" 1)' -b '(gimp-quit 0)'
cp background_l2.tga background_ingame_l2.tga
rm tmp.svg