Wand posterize() function - Python - GeeksforGeeks

PHOTO EMBED

Sat Jan 28 2023 22:20:54 GMT+0000 (Coordinated Universal Time)

Saved by @snowball3601 #python

# Import library from Image
from wand.image import Image
 
# Import the image
with Image(filename ='../geeksforgeeks.png') as image:
    # Clone the image in order to process
    with image.clone() as posterize:
        # Invoke posterize function
        posterize.posterize(2, 'no')
        # Save the image
        posterize.save(filename ='posterize1.jpg')
content_copyCOPY

https://www.geeksforgeeks.org/wand-posterize-function-python/