Creating a new image from two old using PIL?
Anders Eriksson
ame at swipnet.se
Wed Feb 2 19:02:23 EST 2000
On Wed, 02 Feb 2000 17:40:35 GMT, "Fredrik Lundh" <effbot at telia.com>
wrote:
>Anders M Eriksson wrote:
>> I'm a beginner of Python and I thought that I should create an web
>> counter cgi. I have created the whole cgi except for the part that
>> creates the image.
>hints: use "Image.new" to create a blank image large enough
>to hold the resulting image, and "paste" to paste the digits
>into it.
Thanks for the hints! I have got it working!! Had a little problem
with the fact that the number gifs wasn't the same size...
One more question: Now that I have created the new image. How do I get
it into my HTML page?
I have tried (image is the new image)
print "Content-type: image/gif\n"
print image
and I have called the script from an <img
srx="http://xxx.xxx.xxx/cgi-bin/meCount.py">
But it wont work :-(
// Anders
More information about the Python-list
mailing list