X-Git-Url: https://git.plutz.net/?p=stereofy;a=blobdiff_plain;f=stereofy.sh;h=9b4fcffcf9ca0b5ba5dee49b0a99e9c32e64fd77;hp=9b54bb70bf41b0e86d2251e654b9b3d736b3da38;hb=HEAD;hpb=13cd4ea9ad63e0fb197922d84b6545c4e4b22c14 diff --git a/stereofy.sh b/stereofy.sh index 9b54bb7..9b4fcff 100755 --- a/stereofy.sh +++ b/stereofy.sh @@ -32,7 +32,7 @@ while [ -n "$1" ]; do case "$1" in -d|--dubois) algo="d";; -f|--full|--full-color) algo="f";; - -h|--half|--half-color) algo="d";; + -h|--half|--half-color) algo="h";; -rc|--rc|--red-cyan) model="rc";; -mc|--mc|--magenta-cyan) model="mc";; -gm|--gm|--green-magenta) model="gm";; @@ -52,6 +52,13 @@ while [ -n "$1" ]; do esac shift 1; done + +if [ "$model" = 'mc' -a "$algo" != 'f' ]; then + echo 'INFO: using experimental color optimizations for magenta cyan anaglyph images.' + echo ' Specify --full to generate a full-color magenta cyan image.' + algo="e" +fi + if (echo $vert |egrep -qx '[+-]*[0-9]*[02468]'); then true else echo 'vertical alignment must be an even number' @@ -73,10 +80,10 @@ height=$(echo $geom |cut -dx -f2) if [ "$vert" -gt 0 ]; then height=$(($height - $vert / 2)) - lvoff=$(($vert / 3)) + rvoff=$(($vert / 2)) elif [ "$vert" -lt 0 ]; then height=$(($height - $vert / -2)) - rvoff=$(($vert / -2)) + lvoff=$(($vert / -2)) fi if [ "$hor" -gt 0 ]; then width=$(($width - $hor / 2))