[reportlab-users] hack to ImageReader

Patrick Ulmer reportlab-users@reportlab.com
Wed, 17 Mar 2004 14:58:43 +0100


Hi,

I'm new to reportlab and start to use it with zope. I was wondering, 
that the demo for zope doesn't work and I get the error that the method 
getRGBData() is not supported. In CVS I found out, that pdfgen/canvas.py 
changed from revision 1.116 to 1.117 comment with "hack to ImageReader" 
from rgbecker. But why switched from PIL to ImageReader and where can I 
find a example for ImageReader?

I get my image from zope with PIL:

PIL_Image.open(cStringIO.StringIO(str(self.fetchPreview(id=oid))))

I hope that ImageReader is able to read data like PIL and not only from 
filesystem?

Bye,

Patrick