Dynamic image creation for the web...
Max Erickson
maxerickson at gmail.com
Sun Aug 28 09:42:34 EDT 2005
Tompa <tompa1969 at yahoo.com> wrote in
news:mailman.86.1125225066.8229.python-list at python.org:
> Hi,
>
> I would like to create images on the fly as a response to an http
> request. I can do this with PIL like this (file create_gif.py):
> from PIL import Image, ImageDraw
>
check out sparklines:
http://bitworking.org/projects/sparklines/
It is a script very similar to what you want to do.
The difference between your script and sparklines is mostly that it
sends:
print "Content-type: image/png"
instead of:
print 'Content-type: text/html'
max
More information about the Python-list
mailing list