Thursday, October 23, 2025
HomeLanguagesWand image.emboss in Python

Wand image.emboss in Python

Emboss effect is similar to Edge extraction but it is more like a 3d effect. The traditional use for Emboss is to make something look more three-dimensional by adding highlights and shadows to different parts of your layer. In order to generate an Embossed image we use emboss function in Wand. Similar to edge() function, emboss() function gives best result with grayscale image.

Syntax :

wand.image.emboss(radius=radius, sigma=std. deviation)

Parameters :

Parameter Input Type Description
radius numbers.Integer the radius of the, in pixels, not counting the center pixel.
sigma numbers.Real Standard deviation used

Image Used :

Example #1:




# import Image from wand.image module
from wand.image import Image
  
# read image using Image function
with Image(filename ="frameman.jpeg") as img:
  
    # generate a grayscale image
    img.transform_colorspace('gray')
  
    # GENERATE EMBOSS IMAGE
    img.emboss(radius = 3.0, sigma = 1.75)
  
    # SAVE FINAL IMAGE
    img.save(filename ="manemboss.jpeg")


Output:

Example #2:
Increasing radius and sigma value.




# import Image from wand.image module
from wand.image import Image
  
# read image using Image function
with Image(filename ="frameman.jpeg") as img:
  
    # generate a grayscale image
    img.transform_colorspace('gray')
  
    # GENERATE EMBOSS IMAGE
    img.emboss(radius = 10, sigma = 3)
  
    # SAVE FINAL IMAGE
    img.save(filename ="manemboss.jpeg")


Output:

Last Updated :
22 Apr, 2020
Like Article
Save Article

<!–

–>

Similar Reads
Related Tutorials
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32361 POSTS0 COMMENTS
Milvus
88 POSTS0 COMMENTS
Nango Kala
6728 POSTS0 COMMENTS
Nicole Veronica
11892 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11954 POSTS0 COMMENTS
Shaida Kate Naidoo
6852 POSTS0 COMMENTS
Ted Musemwa
7113 POSTS0 COMMENTS
Thapelo Manthata
6805 POSTS0 COMMENTS
Umr Jansen
6801 POSTS0 COMMENTS