| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function svg_convertPngToIcons { |
| |
| |
| local SIZE="" |
| local SIZES="16 20 22 24 32 36 40 48 64 96 128 148 164 196 200 512" |
| |
| |
| local FORMAT="" |
| local FORMATS="" |
| |
| for SIZE in ${SIZES};do |
| |
| |
| |
| local FINALFILE=$(dirname $FILE)/${SIZE}/$(basename $FILE) |
| |
| |
| |
| if [[ ! -d $(dirname $FINALFILE) ]];then |
| mkdir -p $(dirname $FINALFILE) |
| fi |
| |
| |
| cli_printMessage "${FINALFILE}.png" --as-creating-line |
| |
| |
| inkscape $INSTANCE --export-id=$EXPORTID \ |
| --export-png=${FINALFILE}.png --export-height=${SIZE} \ |
| &> /dev/null |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| done |
| |
| } |