Hi there! I wonder if someone could help me figuring out how can I turn a Zope Image Object into a Image object of PIL within a external method. I thought about using the data attribut from Zope's image object to get some where, but I'm still lost in doing that. If any one can help me, it would be nice! Thank's, Nielca. __________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
Daniel Correa de Azevedo (Nielca) writes:
I wonder if someone could help me figuring out how can I turn a Zope Image Object into a Image object of PIL within a external method. I thought about using the data attribut from Zope's image object to get some where, but I'm still lost in doing that. If any one can help me, it would be nice! There is a HowTo on Zope.org that shows how to make thumbnails from Zope images with PIL (your problem is a subproblem of that).
The HowTo contains a bug (unless fixed in the meantime). It breaks for larger images. The mailing list archives have a solution for the problem. Instead of "image.data", you need "str(image.data)". Dieter
should be on the Release Information of the "old" Photo product. Or is it the new? I know that there are examples on either one of them. At 11:56 2002-04-05 -0500, Daniel Correa de Azevedo (Nielca) wrote:
Hi there! I wonder if someone could help me figuring out how can I turn a Zope Image Object into a Image object of PIL within a external method. I thought about using the data attribut from Zope's image object to get some where, but I'm still lost in doing that. If any one can help me, it would be nice! Thank's, Nielca.
__________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
_______________________________________________ Zope maillist - Zope@zope.org 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 )
participants (3)
-
Dieter Maurer -
dnielcaļ¼ netscape.net -
Peter Bengtsson