| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function render_rotatePngTo { |
| |
| local COUNT=1 |
| local DEGREE='' |
| local DEGREES=$(render_getConfigOption "$ACTION" '2-') |
| local SRC='' |
| local DST='' |
| |
| |
| cli_checkFiles ${FILE}.png 'f' |
| |
| |
| if [[ "$DEGREES" != "" ]];then |
| |
| |
| |
| for DEGREE in $DEGREES;do |
| SRC=${FILE}.png |
| DST=${FILE}-rotated-$(echo $DEGREE | sed 's!%!!').png |
| cli_printMessage "$DST" "AsSavedAsLine" |
| convert -rotate $DEGREE ${SRC} ${DST} |
| done |
| |
| fi |
| |
| } |