PIL images in CGI scripts
uwe.becher at web.de
Fri Jun 21 18:49:37 CEST 2002
i try to generate dynamic images in Python CGI scripts on an apache
on windows. In my first attempts the browser showed miscoloured images.
Searching the internet i learned, that i have to output the image as
binary stream to stdout. I succeeded by calling the Python interpreter
with the option -u via the shebang #!d:/python21/python.exe -u.
Is it possible to define the binary mode in the script without
using the -u option?
Thankys in advance
More information about the Python-list