Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

image resize in python

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()
Source by en.wikipedia.org #
 
PREVIOUS NEXT
Tagged: #image #resize #python
ADD COMMENT
Topic
Name
8+3 =