Dynamic generation of images using pmz?

ajung at suxers.de ajung at suxers.de
Thu Aug 10 14:56:36 EDT 2000


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.

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.

Hope this helps,
Andreas Jung - Creator of PMZ :-) 



More information about the Python-list mailing list