Answers for "pil image get value"

8

pil get image size

from PIL import Image

im = Image.open('whatever.png')
width, height = im.size
Posted by: Guest on April-01-2020
20

pil get image type

img = Image.open(filename)
print(img.format)  # 'JPEG'
Posted by: Guest on May-15-2021

Python Answers by Framework

Browse Popular Code Answers by Language