[C++-sig] how to find a image size in Python
Yonghua (Michael) Zhang
mzhang at cpsc.ucalgary.ca
Thu Nov 13 18:30:22 CET 2003
Hi all,
I am new to python. Is there anybody know find the size of a given
image? I tried as following:
img1 = Image.open(fnamein1)
w, h = 0,0
img1.size((w, h))
And the error message as following:
Traceback (most recent call last):
File "test.py", line 47, in ?
img1.size((w,h))
TypeError: 'tuple' object is not callable
Thank you very much for any suggestions,
michael
More information about the Cplusplus-sig
mailing list