Dynamic generation of images using pmz?

Grant Edwards ge at nowhere.none
Thu Aug 10 16:21:22 EDT 2000


In article <4e0f.3992fae4.a385a at yetix.sz-sb.de>, ajung at suxers.de wrote:
>jbalding at hotmail.com wrote:
>2qy
>2qyI just found the pmz module (poor man's zope) and, for my set-up, it's
>2qyjust perfect. One question: is there anyway of dynamically generating
>2qyor modifying image streams (ie. gif/png) using pmz and something like
>2qypil? I'm thinking of something like this php example:
>2qy
>2qyhttp://www.php.net/manual/features.images.php
>
>Images in HTML pages are always external file that are
>referenced by an URL like <img src="http://...">. So you are
>refering to files on your file system  or on your web server.

The same could be said of HTML pages, but you catch those
requests and generate data on the fly for them.

>Python has several modules to generate images (support for libgd...).
>Using PMZ you should generate the images at the beginning of the
>request, store the generated file in a suitable place and 
>then you can dynamically generate an <image> tag with an URL
>that reflects the location of your generated file.

I'm curious, how do you know when to delete the file?

One would think that there would be a way to catch the requests
for the image files and generate them on the fly the same way
one catches requests for html files and generates HTML on the
fly.

-- 
Grant Edwards                   grante             Yow!  I'm EMOTIONAL
                                  at               now because I have
                               visi.com            MERCHANDISING CLOUT!!



More information about the Python-list mailing list