Hallo, 
that's what I like:the user sends a graphic and we are creating a
news-item with a thumbnail and a printable one.So I installed PIL and tried the
following:

#bildk.py
import PIL.Image

def bildk(graffik,modus):
    im = PIL.Image.open(graffik)
    im.thumbnail((100,100))
    #if modus = 'gif':
    #   im.format = 'GIF'
    #else:
    #    im.format= 'JPEG'
    return im

Error Type: IOError
Error Value: [Errno 2] No such file or directory: 'header.gif'

That's right cause I pass the image-object from within Zope and not from
the local filesystem.
Am I forced to save the thumbnail locally and reimport it??
There must be a better solution.
Thanks!!

-- 
Sent through GMX FreeMail - http://www.gmx.net


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to