Saturday, April 9, 2016

Python: PIL

#https://www.youtube.com/watch?v=_H9uPRJWMNk&list=PL6gx4Cwl9DGAcbMi1sH6oAMk4JHw91mC_&index=42
#kuvankäsittely kirjasto
from PIL import Image

img = Image.open('lehmä.jpg')
print(img.size)
print(img.format)

img.show() #tämä avaa kuvan järjestelmän oletusohjelmaan

No comments:

Post a Comment