+if [ "$vert" -gt 0 ]; then
+ height=$(($height - $vert / 2))
+ rvoff=$(($vert / 2))
+elif [ "$vert" -lt 0 ]; then
+ height=$(($height - $vert / -2))
+ lvoff=$(($vert / -2))
+fi
+if [ "$hor" -gt 0 ]; then
+ width=$(($width - $hor / 2))
+ lhoff=$(($hor / 2))
+elif [ "$hor" -lt 0 ]; then
+ width=$(($width - $hor / -2))
+ rhoff=$(($hor / -2))
+fi
+geom="${width}x${height}"
+lcrop="${geom}+${lhoff}+${lvoff}"
+rcrop="${geom}+${rhoff}+${rvoff}"