possible bug in -gaussian vs -blur IM 6.5.8-6
Posted: 2009-12-16T12:02:06-07:00
IM 6.5.8-6 Q16 Mac OSX Tiger.
With regard to post viewtopic.php?f=3&t=15217&start=0, I believe that there may be a problem with -gaussian 0xsigma. It seems that for the same 0xsigma, I get a different result relative to -blur 0xsigma and MOREOVER, the larger the sigma the smaller the blur amount with -gaussian. I would not expect that. Here are my tests that come from the Magick text example at http://www.imagemagick.org/script/convert.php.
# same as in example using -gaussian 0x6, but does not reproduce example shadow
convert -size 320x85 xc:transparent -font Bookman-DemiItalic -pointsize 72 \
-draw "text 25,60 'Magick'" -channel RGBA -gaussian 0x6 -fill darkred -stroke magenta \
-draw "text 20,55 'Magick'" magick_text1.png
# using -blur with same 0x6 radiusxsigma makes the shadow much closer to the example
convert -size 320x85 xc:transparent -font Bookman-DemiItalic -pointsize 72 \
-draw "text 25,60 'Magick'" -channel RGBA -blur 0x6 -fill darkred -stroke magenta \
-draw "text 20,55 'Magick'" tmp3.png
# using -gaussian 0x10 produces less blurring in the shadow (opposite of what I would expect)!
convert -size 320x85 xc:transparent -font Bookman-DemiItalic -pointsize 72 \
-draw "text 25,60 'Magick'" -channel RGBA -gaussian 0x10 -fill darkred -stroke magenta \
-draw "text 20,55 'Magick'" tmp4.png
Fred
With regard to post viewtopic.php?f=3&t=15217&start=0, I believe that there may be a problem with -gaussian 0xsigma. It seems that for the same 0xsigma, I get a different result relative to -blur 0xsigma and MOREOVER, the larger the sigma the smaller the blur amount with -gaussian. I would not expect that. Here are my tests that come from the Magick text example at http://www.imagemagick.org/script/convert.php.
# same as in example using -gaussian 0x6, but does not reproduce example shadow
convert -size 320x85 xc:transparent -font Bookman-DemiItalic -pointsize 72 \
-draw "text 25,60 'Magick'" -channel RGBA -gaussian 0x6 -fill darkred -stroke magenta \
-draw "text 20,55 'Magick'" magick_text1.png
# using -blur with same 0x6 radiusxsigma makes the shadow much closer to the example
convert -size 320x85 xc:transparent -font Bookman-DemiItalic -pointsize 72 \
-draw "text 25,60 'Magick'" -channel RGBA -blur 0x6 -fill darkred -stroke magenta \
-draw "text 20,55 'Magick'" tmp3.png
# using -gaussian 0x10 produces less blurring in the shadow (opposite of what I would expect)!
convert -size 320x85 xc:transparent -font Bookman-DemiItalic -pointsize 72 \
-draw "text 25,60 'Magick'" -channel RGBA -gaussian 0x10 -fill darkred -stroke magenta \
-draw "text 20,55 'Magick'" tmp4.png
Fred