Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

image crop in python

from PIL import Image  # Import Image class from library.

image = Image.open("example.jpg")  # Load image.
cropped_image = image.crop((100, 100, 250, 250))  # Crop the image.
cropped_image.save("example_cropped.jpg")  # Save the image.
Source by en.wikipedia.org #
 
PREVIOUS NEXT
Tagged: #image #crop #python
ADD COMMENT
Topic
Name
6+2 =