Using PIL with CGI scripts

Mark Nottingham mnot at pobox.com
Tue Jun 8 18:27:23 EDT 1999


See the StringIO module (actually, cStringIO).

One thing to keep in mind - unless the image is *really* dynamic (i.e., it
changes EVERY time someone accesses it), you're much better off if you write
it to disk.

See genpix.py at http://www.mnot.net/python/  for an example of this (it's a
command line utility that HTMLifys a directory of images, but it does use
cStringIO in this manner).

Cheers,


----- Original Message -----
From: <luisroco at hotmail.com>
To: <python-list at cwi.nl>
Sent: Wednesday, June 09, 1999 7:10
Subject: Using PIL with CGI scripts


> Hi all
>
> How can a CGI scripts outputs graphics images through Python code using
the Python Imaging Library package?
>
> I just want to produce some images which has been processed using PIL and
show them in a web site
>
>





More information about the Python-list mailing list