PIL images in CGI scripts

Uwe Becher uwe.becher at web.de
Fri Jun 21 18:49:37 CEST 2002


Hi together,

i try to generate dynamic images in Python CGI scripts on an apache
server
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.
My question:
Is it possible to define the binary mode in the script without
using the -u option?

Thankys in advance

Uwe



More information about the Python-list mailing list