From da2071d72e2b1be4a9b37e57b8c7214c6bc54999 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Oct 18 2012 02:32:54 +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 7e1ae48..30f3d19 100755 --- a/Scripts/Bash/Functions/Render/Svg/svg_convertPngToBrands.sh +++ b/Scripts/Bash/Functions/Render/Svg/svg_convertPngToBrands.sh @@ -72,12 +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 + # Create copy of size-specific image as ico format. This is + # the format used by web browsers to show that little image on + # address bar that identifies the site visited. The maximum + # size of ico images is 255 pixels, so don't cross this limit + # to prevent complains from `convert' command. + if [[ $SIZE -le '255' ]];then + convert ${FINALFILE}.png pnm:- | ppmtowinicon -output=${FINALFILE}.ico - + fi done