0

I'm trying to create a composition of an image with wand but I'm not able to find the right way to do so.

convert beijing_contrast.jpg  beijing_blurmap.jpg \
        -compose Blur -set option:compose:args 10 -composite \
        beijing_model.jpg

Can anyone help me make this ImageMagick command with wand?

emcconville
  • 23,800
  • 4
  • 50
  • 66
Vinz
  • 45
  • 4

1 Answers1

0

Try this.

with Image(filename='beijing_contrast.jpg') as src:
    with Image(filename='beijing_blurmap.jpg') as dst:
        src.composite(dst, operator='blur', arguments='10')
    src.save(filename='beijing_model.jpg')

The method Image.composite() was updated in Python's Wand version 5.3 to include both operator= & arguments= parameters.

emcconville
  • 23,800
  • 4
  • 50
  • 66