From 92d6813c349ff788e84af9796a9b43abcb3ec0e9 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Oct 17 2012 22:14:34 +0000 Subject: Update `Functions/Render/Svg/svg_convertPngToBrands.sh' file. --- diff --git a/Scripts/Bash/Functions/Render/Svg/svg_convertPngToBrands.sh b/Scripts/Bash/Functions/Render/Svg/svg_convertPngToBrands.sh index 96ec837..7e1ae48 100755 --- a/Scripts/Bash/Functions/Render/Svg/svg_convertPngToBrands.sh +++ b/Scripts/Bash/Functions/Render/Svg/svg_convertPngToBrands.sh @@ -32,7 +32,7 @@ function svg_convertPngToBrands { # Define image formats you want to produce brands for. local FORMAT="" - local FORMATS="xpm pdf jpg tif ico" + local FORMATS="xpm pdf jpg tif" for SIZE in ${SIZES};do @@ -72,6 +72,14 @@ function svg_convertPngToBrands { cli_printMessage "${FINALFILE}-emboss.png" --as-creating-line convert -emboss 1 ${FINALFILE}.png ${FINALFILE}-emboss.png + # Create copy of size-specific image as icon format. Don't + # convert files larger than 96 pixels of width/height. + # Otherwise, the `convert' command will complain with a `Width + # or height exceeds limit' error message. + if [[ $SIZE -le 96 ]];then + convert ${FINALFILE}.png ${FINALFILE}.ico + fi + done }