1 Jun
2001
1 Jun
'01
10:49 a.m.
From: Jerome Alet [mailto:alet@unice.fr]
import PIL.Image
I'm really not sure about the two first parameters that the PIL.Image.fromstring() function need, the first one is the mode, the second is the size.
What about something in these lines (untested)? logo = getattr(self, "logo") from StringIO import StringIO fromZope = StringIO() # tempfile in memory fromZope.write(logo.data) # save the data from Zope MyPILImage = PIL.Image.open(fromZope) fromZope.close() Then you ought to have it in "MyPILImage" regards Max M