Answers for "manage the size of image using python"

2

change image resolution pillow

size = 7016, 4961
im = Image.open("my_image.png")
im_resized = im.resize(size, Image.ANTIALIAS)
im_resized.save("my_image_resized.png", "PNG")
Posted by: Guest on July-22-2020
0

pyhton image resize

from PIL import Image
from resizeimage import resizeimage

fd_img = open('test-image.jpeg', 'r')
img = Image.open(fd_img)
img = resizeimage.resize_cover(img, [200, 100])
img.save('test-image-cover.jpeg', img.format)
fd_img.close()
Posted by: Guest on August-05-2020

Code answers related to "manage the size of image using python"

Python Answers by Framework

Browse Popular Code Answers by Language