Hi,

I'm going to address the Python 2.7 case since that is the best choice
for this problem.

On Wed, Apr 18, 2012 at 12:11 AM, Computer_Engineer <[email protected]> wrote:
> I'm working on python google app engine application,i'm using python2.5, i
> want to deal with images on GAE(filter images), initially i tried wit PIL
> library and i installed it successfully and i tested it and it works
> correctly on my computer,but when i test it on localhost(run on GAE), i have
> an error thatNotImplementedError: Unable to find the Python PIL library,then
> i tried to deal with images using Images Python API , as in this
> tutorial:https://developers.google.com/appengine/docs/python/images/overview,
> and i tested resizing images service,and it works correctly,but the main
> application that i want is to filter the images,the question is :if this
> service(image filtering) supported in Images Python API in GAE?and if not
> how can i filter images on GAE?i saw that this service available in PIL,but
> this library is not supported by GAE
> I tried as a second choice to use python2.7 such that it supports PIL
> library and i edited the app.yaml configuration file,but i don't know how to
> use this library in the python page(main.py)?
> app.yaml:
> application: app_id
> version: 1
> runtime: python27
> api_version: 1
> threadsafe: false
> handlers:
> - url: /.*
>   script: main.py
> libraries:
> - name: PIL
>   version: "1.1.7"
>
> ...any suggestions are welcome...Thanks

You use PIL from main.py just like you would use PIL from any Python
script e.g.

import Image
i = Image.open(...)

In order to use Python 2.7 with the dev_appserver, you'll have to
install Python 2.7 and PIL on your computer.

Cheers,
Brian

>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine/-/g48i1VaP0IUJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to