Dynamic generation of images using pmz?

Alexander Lawhead alawhead at vcn.bc.ca
Thu Aug 10 16:35:11 EDT 2000


:>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.

No!

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

<snip>

: 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.

I'm not all that familiar with this topic, but I'm pretty sure that you
can indeed catch the requests for the image files and generate them on the
fly. In fact, the php example that the original poster included seems to
do this, as does this linux journal article using perl
http://www2.linuxjournal.com/lj-issues/issue43/2411.html

So, it seems that it should be possible... has anyone out there done this
with python and some graphics lib? I'd be interested in feedback as well.

- Alexander



More information about the Python-list mailing list