Answers for "resize image in python with maintain resolution"

2

python resize image

from PIL import Image
image = Image.open("path/.../image.png")
image = image.resize((500,500),Image.ANTIALIAS)
image.save(fp="newimage.png")
Posted by: Guest on June-15-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
0

python image processing and resizing

image = Image.open('demo_image.jpg')
image.thumbnail((400, 400))
image.save('image_thumbnail.jpg')

print(image.size) # Output: (400, 267)
Posted by: Guest on June-29-2021

Code answers related to "resize image in python with maintain resolution"

Python Answers by Framework

Browse Popular Code Answers by Language