I wrote this code:
import Image
im = raw_input("Insert Image file: ")
handle = Image.open(im)
print handle.size
to read an Image
file and print its size, but when I run this code I get a traceback:
Traceback (most recent call last):
File "image.py", line 1, in <module>
import Image
P.S - I wrote the program in mac os x if it matters