| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function render_doIdentityImageBrands { |
| |
| local SOURCEFILE='' |
| local TARGETDIR='' |
| local TARGETFILE='' |
| |
| |
| local FILE="$1" |
| |
| |
| local FORMATS="$2" |
| |
| |
| render_doIdentityImageFormats "$FILE" "$FORMATS" |
| |
| |
| cli_printMessage "${FILE}.xbm (`gettext "2 colors grayscale"`)" "AsSavedAsLine" |
| convert -colorspace gray -colors 2 \ |
| ${FILE}.png \ |
| ${FILE}.xbm |
| |
| |
| cli_printMessage "${FILE}-emboss.png" "AsSavedAsLine" |
| convert -emboss 1 \ |
| ${FILE}.png \ |
| ${FILE}-emboss.png |
| |
| |
| |
| SOURCEFILE=$FILE.xbm |
| TARGETDIR=$(dirname $FILE)/Xbm |
| TARGETFILE=$TARGETDIR/$(basename $SOURCEFILE) |
| |
| cli_printMessage "$TARGETFILE" 'AsMovedToLine' |
| cli_checkFiles $TARGETDIR 'd' |
| if [[ $? -ne 0 ]];then |
| mkdir -p $TARGETDIR |
| fi |
| mv ${SOURCEFILE} --target-directory=$TARGETDIR --force |
| |
| |
| |
| SOURCEFILE=${FILE}-emboss.png |
| TARGETDIR=$(dirname $FILE)/Png |
| TARGETFILE=$TARGETDIR/$(basename $SOURCEFILE) |
| |
| cli_printMessage "$TARGETFILE" 'AsMovedToLine' |
| cli_checkFiles $TARGETDIR 'd' |
| if [[ $? -ne 0 ]];then |
| mkdir -p $TARGETDIR |
| fi |
| mv ${SOURCEFILE} --target-directory=$TARGETDIR --force |
| |
| } |