Avec python on peut obtenir la taille d'une image en utilisant PIL, exemple avec l'image Leonardo_self.jpg source:
>>> from PIL import Image
>>> im=Image.open('Leonardo_self.jpg')
>>> im.size
(420, 659)
Recherches associées
Liens | Site |
---|---|
PIL | PIL |
How to obtain image size using standard Python class (without using external library)? | stackoverflow |