PIL and sizing image
2 Nov
2000
2 Nov
'00
3:20 p.m.
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
9285
Age (days ago)
9285
Last active (days ago)
0 comments
1 participants
participants (1)
-
brocken22@gmx.de