How do you get a png image file on to python on mobile | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

How do you get a png image file on to python on mobile

16th Feb 2020, 10:40 PM
Nicolas okiokpa
Nicolas okiokpa - avatar
3 Réponses
+ 4
install python-pip from PIL ( pillow package ) import Image try: img = Image.open(path) except IOError: pass
16th Feb 2020, 11:22 PM
BroFar
BroFar - avatar
+ 1
Thanks
16th Feb 2020, 11:23 PM
Nicolas okiokpa
Nicolas okiokpa - avatar
16th Feb 2020, 11:29 PM
BroFar
BroFar - avatar