By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,369 Members | 1,138 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,369 IT Pros & Developers. It's quick & easy.

Building web graphics with Python

P: n/a
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.
Jul 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Steven Feil schrieb:
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.

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------
Jul 18 '05 #2

P: n/a
On Mon, Nov 29, 2004 at 10:35:00AM +0100, Peter Maas wrote:
Steven Feil schrieb:
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.


No need to reimplement a gd wrapper:

http://dmoz.org/Computers/Programmin...ules/Graphics/
http://newcenturycomputers.net/projects/gdmodule.html

-- Gerhard

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

iD8DBQFBqvJNdIO4ozGCH14RAtPZAJkBwrKLWek+F27TvrBlui jPXFjKPQCfT3bZ
eNVDvu32F9IGFjBF+GKipAk=
=D125
-----END PGP SIGNATURE-----

Jul 18 '05 #3

P: n/a
Steven Feil wrote:
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>

Jul 18 '05 #4

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

Larry Bates

Steven Feil wrote:
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.

Jul 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.