Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python pillow cut image in half

from PIL import Image

original = Image.open(test_image)

width, height = original.size

wid = int(width / 2)

img = original.crop((0, 0, wid, height))

img.show()
 
PREVIOUS NEXT
Tagged: #python #pillow #cut #image
ADD COMMENT
Topic
Name
4+6 =