Re: [Zope] Re: PIL: can't call same method twice

2005-05-31 Thread Dieter Maurer
KLEIN Stéphane wrote at 2005-5-31 00:13 +0200: > ... >I've the same problem and now it's work with this tip : >"context.REQUEST.image.seek(0)". > >My xImageScale.py [external method] is : > >def xImageScale(img_file, maxx, maxy): > from PIL import Image > from cStringIO import StringIO

[Zope] Re: PIL: can't call same method twice

2005-05-30 Thread KLEIN Stéphane
Chris Withers a écrit : Chris wrote: Hi David, this is not the problem (tried it before). The code foo = container.resize(context.REQUEST.image, size=size) # works nicely at this point, try inserting: context.REQUEST.image.seek(0) foo = container.resize(context.REQUEST.image, size=size