| #!/bin/bash |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| function render_doIdentityImageBrands { |
| |
| local SOURCEFILE='' |
| local TARGETDIR='' |
| local TARGETFILE='' |
| local NEWFILE='' |
| |
| |
| local FILE="$1" |
| |
| |
| local SIZES="16 20 22 24 32 36 40 48 64 96 128 148 164 196 200 512" |
| |
| |
| local FORMATS="png xpm pdf jpg tif" |
| |
| |
| |
| |
| |
| |
| local DIRNAME=$(cli_getRepoName "$FILE" 'd')/$(cli_getRepoName "$FILE" 'fd') |
| |
| |
| if [[ ! -d $DIRNAME ]];then |
| mkdir -p ${DIRNAME} |
| fi |
| |
| for SIZE in ${SIZES};do |
| |
| |
| NEWFILE=${DIRNAME}/${SIZE} |
| |
| for FORMAT in ${FORMATS};do |
| |
| |
| cli_printMessage "${NEWFILE}.${FORMAT}" "AsCreatingLine" |
| |
| |
| convert -resize x${SIZE} ${FILE}.png ${NEWFILE}.${FORMAT} |
| |
| done |
| |
| |
| cli_printMessage "${NEWFILE}.xbm (`gettext "2 colors grayscale"`)" "AsCreatingLine" |
| convert -resize x${SIZE} -colorspace gray -colors 2 ${FILE}.png ${NEWFILE}.xbm |
| |
| |
| cli_printMessage "${NEWFILE}-emboss.png" "AsCreatingLine" |
| convert -resize x${SIZE} -emboss 1 ${FILE}.png ${NEWFILE}-emboss.png |
| |
| done |
| |
| |
| cli_printMessage '-' 'AsSeparatorLine' |
| } |