Код: Выделить всё
from PIL import Image
try:
im = Image.open(filename)
# do stuff
except IOError:
# filename not an image file
Можно ли как-нибудь включить и их?
Подробнее здесь: https://stackoverflow.com/questions/889 ... image-file
Код: Выделить всё
from PIL import Image
try:
im = Image.open(filename)
# do stuff
except IOError:
# filename not an image file