8. ImageFilter Contour


8.1. Contour

Use the ``Image.filter(ImageFilter.CONTOUR)``method to contour an image.
from PIL import Image, ImageFilter

with Image.open("test_images/alph_blocks.png") as im:
    new_im = im.filter(ImageFilter.CONTOUR)
    new_im.save("filters/contour.png")
../_images/compare_contour.png