Answers for "pil image types"

20

pil get image type

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

PIL image example

>>> from PIL import Image
>>> im = Image.open("image.jpg")
>>> im.show()
Posted by: Guest on June-12-2020

Python Answers by Framework

Browse Popular Code Answers by Language