Images - basic stuff in pillow

 avatar
user_6939821
python
2 years ago
219 B
3
Indexable
from PIL import Image

with Image.open("hopper.jpg") as im:

    # Provide the target width and height of the image
    (width, height) = (im.width // 2, im.height // 2)
    im_resized = im.resize((width, height))
Editor is loading...