]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/brightspot.sh
demotc-race-record-extractor.sh: remove useless rc case (gametype name is always...
[xonotic/xonotic.git] / misc / tools / brightspot.sh
index d2131adc44ac6f78e8e15f66490dc48f48d71623..e087a5a97e162d3ddc222662895ea620d572614b 100755 (executable)
@@ -26,11 +26,12 @@ ext=${i##*.}
 name=${i%.*}
 name=${name%_[rlbfud][tfktpn]}
 
+echo >&2 "Order: 0=rt 1=lf 2=bk 3=ft 4=up 5=dn"
 {
-       convert "$name"_rt."$ext" -depth 8 -geometry 512x512 GRAY:-
-       convert "$name"_lf."$ext" -depth 8 -geometry 512x512 GRAY:-
-       convert "$name"_bk."$ext" -depth 8 -geometry 512x512 GRAY:-
-       convert "$name"_ft."$ext" -depth 8 -geometry 512x512 GRAY:-
-       convert "$name"_up."$ext" -depth 8 -geometry 512x512 GRAY:-
-       convert "$name"_dn."$ext" -depth 8 -geometry 512x512 GRAY:-
+       convert "$name"_rt."$ext" -auto-orient -depth 8 -geometry 512x512 GRAY:-
+       convert "$name"_lf."$ext" -auto-orient -depth 8 -geometry 512x512 GRAY:-
+       convert "$name"_bk."$ext" -auto-orient -depth 8 -geometry 512x512 GRAY:-
+       convert "$name"_ft."$ext" -auto-orient -depth 8 -geometry 512x512 GRAY:-
+       convert "$name"_up."$ext" -auto-orient -depth 8 -geometry 512x512 GRAY:-
+       convert "$name"_dn."$ext" -auto-orient -depth 8 -geometry 512x512 GRAY:-
 } | "$brightspot" /dev/stdin