[Magick-bugs] Transparent "Fuzzy-edge Mask" works under 6.3.0 but not 6.3.3

Keith Bernstein keithbernstein at mail.com
Mon Apr 30 19:18:07 PDT 2007


I know this is not the rmagick list, but I think my problem is with ImageMagick, not rmagick, so I pose the question here:

The code below blurs a square area of an image. It tries to keep the edges of the blur "fuzzy" (gradual). 

On ImageMagick 6.3.0, the code works fine. Under ImageMagick 6.3.3 the fuzzy edges are not visible, there is a hard-edged border for
the blur... it's almost as if the transparency in the fuzzy image is being ignored.

Here is the code. Does anyone have and ideas of why this is?

	# (an_image is passed in as a parameter... it is a .jpg image)

      if @i_fuzzy_edge_mask
        # Setting up a mask will make the blur only blur the unmasked part, plus the mask has soft edges, so we'll get that too
        fuzzy_edge_mask = @i_fuzzy_edge_mask
        fuzzy_edge_mask.matte = true # This is set to "true" because our mask image actually has transparency... the one in the
example doesn't. Without transparency, a mask's white/gray pixels are used for transparency intensity, so if you set this to "false"
you would have to set the current transparent "canvas" of you mask image to be white
        an_image.mask = fuzzy_edge_mask
        # Discussion and examples of blurring: http://www.imagemagick.org/Usage/convolve/#blur
        return_image = an_image.blur_image(0, "30%")
      end




More information about the Magick-bugs mailing list