Answers for "python pillow cut image in half"

0

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()
Posted by: Guest on September-06-2021

Python Answers by Framework

Browse Popular Code Answers by Language