Answers for "change width of image python"

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

get resolution of image python

img = Image.open("test.png")
img = img.size
# img.size is a tuple
Posted by: Guest on December-19-2020

Code answers related to "change width of image python"

Python Answers by Framework

Browse Popular Code Answers by Language