On Sep 4, 2:38 pm, aWaKeNiNG <[email protected]> wrote:
> Hi,
>
> The users of my website have an optional avatar (with 2 different
> sizes) with key_name = username (example big/username.jpg and medium/
> username.jpg). If they haven't avatar I show a default image.
>
> Now I want to use the new feature "automatic image thumbnailing" with
> its advantages.
>
> The problem is that if the user has not an avatar. I cant know if it
> is a valid image.
>
> Solutions in my mind:
>
> 1. Insert the default image in all users, then it always exists (i
> think a bad idea).
> 2. A default image that appengine load if doesnt exist the url image.
> But i dont know if appengine has implemented this option.
>
> Any ideas?
>
> Thank you.
Here's my image class and a link to a demo that displays thumbnail
with get_serving_url
class Image(db.Model):#save one, resize dynamically or convert to
blobstore
 
reference=db.ReferenceProperty(A,collection_name='matched_images',verbose_name="Title")
  primary_image = blobstore.BlobReferenceProperty()
Thumbnail
http://lh3.ggpht.com/u8cUZbdyCWfchWq0gxlyd26zlbjUCZziEewEhFlvwg_B6vqLvfFi3a9SIC14rSP3BOMNim_fJ2dD7GNET56deZDA6OQ=s120
Original
http://lh3.ggpht.com/u8cUZbdyCWfchWq0gxlyd26zlbjUCZziEewEhFlvwg_B6vqLvfFi3a9SIC14rSP3BOMNim_fJ2dD7GNET56deZDA6OQ
Hoping we can discuss ideas onwards
Thanks
Niklas

-- 
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