PIL's thumbnail function returns NoneType

2009-03-01 Thread Mirat Can Bayrak
Can you try it? it is about me or it is a bug? In [1]: import Image In [2]: im = Image.open("r.png") In [3]: type(im) Out[3]: In [4]: thm = im.thumbnail((200,200)) In [5]: type(thm) Out[5]: -- Mirat Can Bayrak -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL's thumbnail function returns NoneType

2009-03-01 Thread Terry Reedy
Hrvoje Niksic wrote: Mirat Can Bayrak writes: Can you try it? it is about me or it is a bug? Neither. im.thumbnail() modifies the existing image object by converting it to a thumbnail. In Python such methods by convention return None. The documentation explicitly mentions that: Also

Re: PIL's thumbnail function returns NoneType

2009-03-01 Thread Hrvoje Niksic
Mirat Can Bayrak writes: > Can you try it? it is about me or it is a bug? Neither. im.thumbnail() modifies the existing image object by converting it to a thumbnail. In Python such methods by convention return None. The documentation explicitly mentions that: Also note that this function