From 9b571d05fbea6a296beebc14224c4122c2a7c7ee Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: May 03 2011 16:43:35 +0000 Subject: Update render_convertPngTo.sh. --- diff --git a/Scripts/Functions/Render/render_convertPngTo.sh b/Scripts/Functions/Render/render_convertPngTo.sh index c05f02b..4af1865 100644 --- a/Scripts/Functions/Render/render_convertPngTo.sh +++ b/Scripts/Functions/Render/render_convertPngTo.sh @@ -1,7 +1,7 @@ #!/bin/bash # # render_convertPngTo.sh -- This function provides post-rendition -# to convert images produced by centos-art base-rendition. +# actions to use the `convert' command of ImageMagick tool set. # # Copyright (C) 2009, 2010, 2011 The CentOS Project # @@ -26,18 +26,12 @@ function render_convertPngTo { # Get image formats. - local FORMATS=$(render_getConfigOption "$ACTION" '2-') + local FORMATS=$(render_getConfigOption "$ACTION" '2') - # Check base file existence. - cli_checkFiles ${FILE}.png 'f' - - # Check image formats and do convertion. - if [[ "$FORMATS" != "" ]];then - for FORMAT in $FORMATS;do - cli_printMessage "${FILE}.${FORMAT}" "AsSavedAsLine" - convert -quality 85 ${FILE}.png ${FILE}.${FORMAT} - done - - fi + # Execute ImageMagick convertion. + for FORMAT in $FORMATS;do + cli_printMessage "${FILE}.${FORMAT}" "AsSavedAsLine" + convert -quality 85 ${FILE}.png ${FILE}.${FORMAT} + done }