Building web graphics with Python

S

Steven Feil

I am wondering if there is a light weight Python library for producing
web graphics on-the-fly. There is a C-language library called gd that
can be used in a CGI program to produce gif images. The Library can
be used to produce graphics images that are dynamically generated. I
was wondering if there is something similar for Python.
 
P

Peter Maas

Steven said:
I am wondering if there is a light weight Python library for producing
web graphics on-the-fly. There is a C-language library called gd that
can be used in a CGI program to produce gif images. The Library can
be used to produce graphics images that are dynamically generated. I
was wondering if there is something similar for Python.

You can create a Python wrapper for gd with SWIG or Pyrex. PIL (Python
Imging Library) and Piddle are native Python solutions.
 
G

Gerhard Haering

You can create a Python wrapper for gd with SWIG or Pyrex. PIL (Python
Imging Library) and Piddle are native Python solutions.

No need to reimplement a gd wrapper:

http://dmoz.org/Computers/Programming/Languages/Python/Modules/Graphics/
http://newcenturycomputers.net/projects/gdmodule.html

-- Gerhard

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBqvJNdIO4ozGCH14RAtPZAJkBwrKLWek+F27TvrBluijPXFjKPQCfT3bZ
eNVDvu32F9IGFjBF+GKipAk=
=D125
-----END PGP SIGNATURE-----
 
F

Fredrik Lundh

Steven said:
I am wondering if there is a light weight Python library for producing
web graphics on-the-fly. There is a C-language library called gd that
can be used in a CGI program to produce gif images. The Library can
be used to produce graphics images that are dynamically generated. I
was wondering if there is something similar for Python.

here's one such library:

http://www.pythonware.com/products/pil/index.htm

if you insist on using GD itself, use the gdmodule:

http://newcenturycomputers.net/projects/gdmodule.html

</F>
 
L

Larry Bates

ReportLab Graphics module can produce graphics
and then save into many formats via Python Imaging
Library (PIL).

Larry Bates
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,212
Messages
2,571,101
Members
47,695
Latest member
KayleneBee

Latest Threads

Top