Brian:
Thanks for your response, i can got the file and i opened it as :
im = Image.open(blob_info.open())
out = im.filter(ImageFilter.EDGE_ENHANCE_MORE)
u_file =
files.blobstore.create(mime_type=m,_blobinfo_uploaded_filename=name)
data=out
with files.open(u_file, 'a') as f:
f.write(data)
files.finalize(u_file)
blob_key = files.blobstore.get_blob_key(u_file)
such that the blob_info is the information about the original image in the
blob store,but after filtering i can't store it on blobstore,i can't
specify the correct value for data.
On Tuesday, April 17, 2012 5:11:44 PM UTC+3, Computer_Engineer 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 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/-/CdvPC9F6e3QJ.
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.