4 echo>&2 "Usage: $0 foo_rt.jpg"
9 if which brightspot-bin >/dev/null; then
10 brightspot=brightspot-bin
20 brightspot="$mydir/brightspot-bin"
21 [ "$brightspot" -nt "$mydir/brightspot.c" ] || gcc -lm -O3 -Wall -Wextra "$mydir/brightspot.c" -o "$brightspot" || exit 1
27 name=${name%_[rlbfud][tfktpn]}
29 echo >&2 "Order: 0=rt 1=lf 2=bk 3=ft 4=up 5=dn"
31 convert "$name"_rt."$ext" -depth 8 -geometry 512x512 GRAY:-
32 convert "$name"_lf."$ext" -depth 8 -geometry 512x512 GRAY:-
33 convert "$name"_bk."$ext" -depth 8 -geometry 512x512 GRAY:-
34 convert "$name"_ft."$ext" -depth 8 -geometry 512x512 GRAY:-
35 convert "$name"_up."$ext" -depth 8 -geometry 512x512 GRAY:-
36 convert "$name"_dn."$ext" -depth 8 -geometry 512x512 GRAY:-
37 } | "$brightspot" /dev/stdin