from PIL import Image, ImageFilter # Import classes from the library.
original_image = Image.open("file.ppm") # Load an image from the file system.
blurred_image = original_image.filter(ImageFilter.BLUR) # Blur the image.
# Display both images.
original_image.show()
blurred_image.show()