diff --git a/tools/image_processing/graphicsmagick/convert.xml b/tools/image_processing/graphicsmagick/convert.xml index 4becd238dc..d1a7989ef5 100644 --- a/tools/image_processing/graphicsmagick/convert.xml +++ b/tools/image_processing/graphicsmagick/convert.xml @@ -1,4 +1,4 @@ - + with GraphicsMagick macros.xml @@ -14,9 +14,18 @@ #set $trans_options = '' #end if - gm convert -resize ${resize}%x $trans_options input.${input.ext} temp.${output_format} + gm convert + -resize ${resize}%x + $trans_options + #if $palette.palette_select == "automatic" + -type Palette + #else if $palette.palette_select == "manual" + -colors '${palette.palette}' + #end if + 'input.${input.ext}' + 'temp.${output_format}' && - mv temp.${output_format} '${output}' + mv 'temp.${output_format}' '${output}' ]]> @@ -28,6 +37,18 @@ + + + + + + + + + + + + @@ -62,6 +83,23 @@ + + + + + + + + + + + + + + + + +