Related Articles
Wand vignette() function in Python
• Last Updated : 08 May, 2020

Vignette effect creates a soft and blurry elliptical frame to the image. Vignette effect is used to apply focus to the part of image we want. The x & y arguments are used to control edge of the ellipse inset from the image border, and radius & sigma argument to control the blurriness. The radius can be omitted if you wish ImageMagick to select a value from the defined sigma value.

Syntax :

```wand.image.vignette(radius, sigma, x, y)
```

Parameters :

ParameterInput TypeDescription
sigmanumbers.RealThe standard deviation of the Gaussian, in pixels
xnumbers.Integerx-edge of ellipse
ynumbers.Integery-edge of ellipse

Source Image:

Example 1:

 `# Import Image from wand.image module``from` `wand.image ``import` `Image`` ` `# Read image using Image function``with Image(filename ``=``"koala.jpeg"``) as img:`` ` `    ``# vignette image using vignette() function``    ``img.vignette(sigma ``=` `3``, x ``=` `10``, y ``=` `10``)``    ``img.save(filename ``=``"vkoala.jpeg"``)`

Output:

Example 2: Increasing sigma value

 `# Import Image from wand.image module``from` `wand.image ``import` `Image`` ` `# Read image using Image function``with Image(filename ``=``"koala.jpeg"``) as img:`` ` `    ``# vignette image using vignette() function``    ``img.vignette(sigma ``=` `10``, x ``=` `1``, y ``=` `1``)``    ``img.save(filename ``=``"vkoala2.jpeg"``)`

Output:

Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.

To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course

My Personal Notes arrow_drop_up