Friday, November 14, 2025
HomeLanguagesPython – blue_shift() function in Wand

Python – blue_shift() function in Wand

Blue shift effect make the colors dull by shifting blue values by a factor. A nighttime kind of scene is generated using this. This takes only one parameter factor. A lot of photo editors use this effect to give a night exposure effect to the image.

Syntax :

wand.image.blue_shift(factor)

Parameters :

Parameter Input Type Description
factor numbers.Real Amount to adjust values.

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:
  
    # Blueshift effect using blue_shift() function
    img.blue_shift(factor = 1.25)
    img.save(filename ="bs_koala.jpeg")


Output:

Example 2: Increasing value of factor to 1.5 .




# Import Image from wand.image module
from wand.image import Image
  
# Read image using Image function
with Image(filename ="koala.jpeg") as img:
  
    # Blueshift effect using blue_shift() function
    img.blue_shift(factor = 1.5)
    img.save(filename ="bs_koala_2.jpeg")


Output:

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

Most Popular

Dominic
32399 POSTS0 COMMENTS
Milvus
95 POSTS0 COMMENTS
Nango Kala
6765 POSTS0 COMMENTS
Nicole Veronica
11917 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11984 POSTS0 COMMENTS
Shaida Kate Naidoo
6889 POSTS0 COMMENTS
Ted Musemwa
7141 POSTS0 COMMENTS
Thapelo Manthata
6837 POSTS0 COMMENTS
Umr Jansen
6839 POSTS0 COMMENTS