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:

foo = container.resize(context.REQUEST.image, size=size) # 2nd time ->error
does what you suggest. But it raises the same error.



I've the same problem and now it's work with this tip : "".

My [external method] is :

def xImageScale(img_file, maxx, maxy):
        from PIL import Image
        from cStringIO import StringIO
        im =
        im.thumbnail((maxx, maxy), Image.ANTIALIAS)
        out_file_str = StringIO(), im.format)
        return tmp

-- Stéphane

Zope maillist  -
**   No cross posts or HTML encoding!  **
(Related lists - )

Reply via email to