Answers for "how to decrease shape of image using PIL"

2

pil resize image

im = Image.open('image.jpg')  
im = im.resize((w, h))
Posted by: Guest on October-17-2020
0

pyhton image resize

from PIL import Image

from resizeimage import resizeimage


with open('test-image.jpeg', 'r+b') as f:
    with Image.open(f) as image:
        cover = resizeimage.resize_cover(image, [200, 100])
        cover.save('test-image-cover.jpeg', image.format)
Posted by: Guest on August-05-2020

Code answers related to "how to decrease shape of image using PIL"

Python Answers by Framework

Browse Popular Code Answers by Language