views:

541

answers:

2

So, Google App Engine doesn't look like it's going to include the Python Imaging Library anytime soon. There is an images api, but it's paltry, and inadequate for what I need.

I'm wondering what Python only (no C-extensions) there are that can replace the Image.paste and the ImageDraw modules. I don't want to write them myself, but that is an option. I'm also open to other solutions, such as "do the processing somewhere else, then call via api", if they're not too ugly. (For the record, the solution I just suggested seems pretty ugly to me.)

How have others gotten around this?

(I'm not wedded to GAE, just exploring, and this looks like a deal breaker for my app.)

Notes:

For me, crop, resize is not enough. In particular I need

  1. paste (replace part of an image with another.... can be faked with "compose")
  2. draw (for drawing gridlines, etc. Can be faked as well)
  3. text (write text on an image, much harder to fake, unless someone wants to correct me)
+2  A: 

My skimpygimpy.sourceforge.net will do drawing and text, but it won't edit existing images (but it could be modified for that, of course, if you want to dive in). It is pure python. see it working on google apps, for example at http://piopio.appspot.com/W1200_1400.stdMiddleware#Header51,

That's an experimental site that I'll be messing with. The link may not work forever.

Aaron Watters
Thank you, that looks promising. Maybe I can hack something together based on it. I like the charts a lot!
Gregg Lind
+1  A: 

I don't know if it has all features you want, but I have been messing with PNGCanvas, and it does some things I have done before with PIL

Jader Dias