[Zope] A better version of the Image object?

Christopher Petrilli petrilli@digicool.com
Thu, 15 Jul 1999 09:43:42 -0400


> 
> How are Zopers dealing with providing images at
> various resolutions?  I started off creating a
> separate folder for each image, the folder containing

> It would be much nicer if the image object could
> render itself at various resolutions.  That is,
> you upload 1 high-res version and can obtain lower
> res versions when calling the render method.
> Being new to Zope, is it possible to sub-class the
> base objects and have them generally available?

This would be doable, however when I was thinking about this in a slightly
different context, I was worried about the Python GIL, so you would probably
want to push this into a C extension so you could release the lock
completely and do your work, then grab it, return it.  This would allow the
server to run smoothly.  Otherwise, if it takes any time, you're going to
see jerkiness in your server.

Chris


--
| Christopher Petrilli        Python Powered        Digital Creations, Inc.
| petrilli@digicool.com                             http://www.digicool.com