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<https://developers.google.com/appengine/docs/python/googlecloudstorageclient/download>client
>  and installed it into my app on my development machine.
>
>
> import cStringIO
> s = cStringIO.StringIO()
>
> image = self._create_image(width=24,height=24,network=n)
> image.save(s,'PNG')
> BUCKET = '/my_bucket'
> filename = BUCKET + '/testfile'
> gcs_file = gcs.open(filename,'w', content_type='image/png')
> gcs_file.write(s.getvalue())
> gcs_file.close()
>
>
> I'm sure there is a much better way.  But at least it stopped me from 
> pulling all my hair out.  Thanks for the help.
>
> On Friday, June 28, 2013 5:08:18 PM UTC-7, Pumplerod wrote:
>>
>> 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 
>> getting the module loaded is proving to be a task.
>>
>> On Wednesday, June 26, 2013 3:07:12 PM UTC-7, 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.
>>>
>>> is there a way to write the data into a string and have it read and 
>>> displayed as an image?
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to