Building web graphics with Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steven Feil

    Building web graphics with Python

    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.
  • Peter Maas

    #2
    Re: Building web graphics with Python

    Steven Feil schrieb:[color=blue]
    > 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.[/color]

    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 'cGV0ZXIubWFhc0 BtcGx1c3IuZGU=\ n'.decode('base 64')
    -------------------------------------------------------------------

    Comment

    • Gerhard Haering

      #3
      Re: Building web graphics with Python

      On Mon, Nov 29, 2004 at 10:35:00AM +0100, Peter Maas wrote:[color=blue]
      > Steven Feil schrieb:[color=green]
      > >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.[/color]
      >
      > You can create a Python wrapper for gd with SWIG or Pyrex. PIL (Python
      > Imging Library) and Piddle are native Python solutions.[/color]

      No need to reimplement a gd wrapper:




      -- Gerhard

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

      iD8DBQFBqvJNdIO 4ozGCH14RAtPZAJ kBwrKLWek+F27Tv rBluijPXFjKPQCf T3bZ
      eNVDvu32F9IGFjB F+GKipAk=
      =D125
      -----END PGP SIGNATURE-----

      Comment

      • Fredrik Lundh

        #4
        Re: Building web graphics with Python

        Steven Feil wrote:
        [color=blue]
        >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.[/color]

        here's one such library:

        Complete Python PIL/Pillow image processing guide. Learn how to resize, edit, crop, and convert images using Python with practical examples.


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



        </F>



        Comment

        • Larry Bates

          #5
          Re: Building web graphics with Python

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

          Larry Bates



          Steven Feil wrote:[color=blue]
          > 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.[/color]

          Comment

          Working...