Re: [google-appengine] Re: dynamic image creation on app engine python

2013-07-01 Thread JR
You can use cStringIO to create an in-memory file handle, save to it from PIL as normal, then store the contents of getvalue() in datastore. I just completed a project that uses this method, and it works pretty well. Side note, I've been storing the file base64 encoded as well, but I don't know

[google-appengine] Re: dynamic image creation on app engine python

2013-06-28 Thread Pumplerod
Sorry, that self._create_image() method simple returns a Image object 24x24 pixels. I should have made that code more cut/paste friendly. On Friday, June 28, 2013 5:41:19 PM UTC-7, Pumplerod wrote: > > So, ultimately this is what I did... > > I downloaded the > cloudstorage

[google-appengine] Re: dynamic image creation on app engine python

2013-06-28 Thread Pumplerod
So, ultimately this is what I did... I downloaded the cloudstorageclient and installed it into my app on my development machine. import cStringIO s = cStringIO.StringIO() image = self._create_image(width=24

[google-appengine] Re: dynamic image creation on app engine python

2013-06-28 Thread Pumplerod
Thanks. I'm going through the material now. I think google is suffering from a bit of documentation overload. As a newbie to all this it's hard to tease out the old from the new. especially when their sample code has things like: "include cloudstorage as gcs" which is not found. So even ge

Re: [google-appengine] Re: dynamic image creation on app engine python

2013-06-28 Thread Vinny P
On Friday, June 28, 2013 2:29:06 PM UTC-5, Pumplerod wrote: > The docs say that writing to the blobstore is being depreciated and that > one should write to the datastore but use blobstore to serve the file. > > Writing to the blobstore is being deprecated, but that functionality is being moved

Re: [google-appengine] Re: dynamic image creation on app engine python

2013-06-28 Thread Pumplerod
Thank you. Upon reading up on your suggestion I've found so much information that I've become even more confused. The docs say that writing to the blobstore is being depreciated and that one should write to the datastore but use blobstore to serve the file. Basically, I have a PIL.Image object

Re: [google-appengine] Re: dynamic image creation on app engine python

2013-06-27 Thread Martin Ceperley
Sure, you can create a request handler to output image data to the browser, however image processing can be rather slow so you probably want to store the data in blob store or datastore and serve that. The advantage of the blobstore is that you can get a URL to serve the image directly and auto

[google-appengine] Re: dynamic image creation on app engine python

2013-06-26 Thread Pumplerod
That's great. I hadn't realized that. Is there a way to write directly to the browser? Or do I need to save the image back to the datastore first? On Wednesday, June 26, 2013 4:39:10 PM UTC-7, timh wrote: > > You can use full PIL now. > > > > On Thursday, June 27, 2013 6:07:12 AM UTC+8, Pumple

[google-appengine] Re: dynamic image creation on app engine python

2013-06-26 Thread timh
You can use full PIL now. On Thursday, June 27, 2013 6:07:12 AM UTC+8, Pumplerod wrote: > > > I'm trying to dynamically create and display images in the browser using > app engine. It doesn't seem that the "images" module will do all I need as > I am changing color on a pixel by pixel basis.