6. Image effect_spread


6.1. Effect_spread

Use Image.effect_spread(distance) to return an image with randomly spread pixels where distance is the distance to spread pixels.
from PIL import Image

with Image.open("test_images/rcube.png") as im:
    new_im = im.effect_spread(24)
    new_im.save("Image/Image_effect_spread.png")
../_images/compare_effect_spread.png