[Zope] Imorting Dynamic Pic into Zope
Jeff Rush
Jeff Rush" <jrush@timecastle.net
Thu, 28 Oct 99 02:42:31 -0500
On Wed, 27 Oct 1999 17:08:49 -0500, Stephan Richter wrote:
>I hav a problem:
>I am generating with PIL or GD an image using an external method. The picture
>gets saved on the local File System. How can I import the picture into Zope, so
>I can display it. (Note: The picture has a short lifetime and it is not
>necessary to add it to the ZODB.)
Since you are comfortable with external methods, just do the following
in yours:
from ImageFile import ImageFile
<snip rest of your external method and decide whether to freshen image>
...
return ImageFile('/my/image/dir/yourimage.gif', globals())
-Jeff Rush