| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function svg_convertPngToThumbnail { |
| |
| |
| local SIZE='' |
| local SIZES=$(render_getConfigOption "$ACTION" '2-') |
| |
| |
| if [[ "$SIZES" == "" ]];then |
| SIZES='250' |
| fi |
| |
| |
| cli_checkFiles -e "${FILE}.png" |
| |
| |
| for SIZE in $SIZES;do |
| cli_printMessage "${FILE}-thumb-${SIZE}.png" --as-savedas-line |
| convert -thumbnail ${SIZE} ${FILE}.png ${FILE}-thumb-${SIZE}.png |
| cli_printMessage "${FILE}-thumb-${SIZE}.jpg" --as-savedas-line |
| convert -thumbnail ${SIZE} ${FILE}-thumb-${SIZE}.png ${FILE}-thumb-${SIZE}.jpg |
| cli_printMessage "${FILE}-thumb-${SIZE}.pdf" --as-savedas-line |
| convert -thumbnail ${SIZE} ${FILE}-thumb-${SIZE}.png ${FILE}-thumb-${SIZE}.pdf |
| done |
| |
| } |