Monday, June 15, 2026
HomeLanguagesWand sepia_tone() function – Python

Wand sepia_tone() function – Python

sepia_tone() simulate old style silver based chemical photography printing. sepia_tone() function apply sepia toning to images.

Syntax :

wand.image.sepia_tone(threshold)

Parameters :

Parameter Input Type Description
threshold numbers.Real The extent of the toning. Value can be between 0 & quantum_range, or 0 & 1.0. Default value is 0.8 or “80%”.

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:
  
    # Sepia simulation using sepia_tone() function
    img.sepia_tone(threshold = 0.6)
    img.save(filename ="sepiakoala2.jpeg")


Output:

Example 2: Increasing threshold value.




# Import Image from wand.image module
from wand.image import Image
  
# Read image using Image function
with Image(filename ="koala.jpeg") as img:
    # Sepia simulation using sepia_tone() function
    img.sepia_tone(threshold = 1)
    img.save(filename ="sepiakoala.jpeg")


Output:

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

Most Popular

Dominic
32515 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6897 POSTS0 COMMENTS
Nicole Veronica
12013 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12109 POSTS0 COMMENTS
Shaida Kate Naidoo
7019 POSTS0 COMMENTS
Ted Musemwa
7262 POSTS0 COMMENTS
Thapelo Manthata
6976 POSTS0 COMMENTS
Umr Jansen
6964 POSTS0 COMMENTS