Wand sepia_tone() function – Python
Last Updated :
08 May, 2020
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:
from wand.image import Image
with Image(filename = "koala.jpeg" ) as img:
img.sepia_tone(threshold = 0.6 )
img.save(filename = "sepiakoala2.jpeg" )
|
Output:
Example 2: Increasing threshold value.
from wand.image import Image
with Image(filename = "koala.jpeg" ) as img:
img.sepia_tone(threshold = 1 )
img.save(filename = "sepiakoala.jpeg" )
|
Output:
Share your thoughts in the comments
Please Login to comment...