This project has moved. For the latest updates, please go here.

Composite.Blur working

Jun 11, 2014 at 4:48 PM
Edited Jun 11, 2014 at 7:38 PM
trying to duplicate this example from the imagemagick tutorial site: (http://www.imagemagick.org/Usage/mapping/)
 convert koala.gif blur_map_bool.gif 
 -compose blur -define compose:args=3 -composite
          blur_koala_bool.gif
using the sample images from the example:

http://www.imagemagick.org/Usage/mapping/koala.gif
http://www.imagemagick.org/Usage/mapping/blur_map_bool.gif

using code below:
 MagickImage mImage=new MagickImage(@"F:\koala.gif");
            MagickImage mImageblur = new MagickImage(@"F:\blur_map_bool.gif");
            mImage.Composite(mImageblur,Gravity.Center,CompositeOperator.Blur,"3");
            mImage.Write(@"f:\koalablur.gif");
but no change in output image
Coordinator
Jun 12, 2014 at 8:02 PM
Edited Jun 12, 2014 at 8:02 PM
This appears to be a bug in Magick.NET. It does however silently raise a warning (mImage.Warning). The bug will be fixed in the next release of Magick.NET.
Jun 12, 2014 at 8:16 PM
Thanks!
Coordinator
Jun 12, 2014 at 8:26 PM
You can do the following for now if this is urgent for you:
mImageblur.SetArtifact("compose:args", "3");