from PIL import Image from PIL import ImageFilter im = Image.open("picture.jpg") om = im.filter(ImageFilter.CONTOUR) om.save('pictureContour.jpg')