The maximum size for embedding images on web sites is 800px. The
default media:content element in each photo entry links to the 1600px
image (the one you were trying to get).
You have to request your photos from GData with a "imgmax=800"
parameter. That will change the content link to reference the 800px
version of the photo.

The inconsistent behavior that you are seeing comes from cached/non-
cached images (our server side cache that is). The size limitation is
only enforced for non-cached images. So when you visit our web UI for
a certain image, the  one-up view will pull that image at 1600px,
thereby also adding it to our image cache. When you requested the
image in Firefox, you received the image from the cache.
Make sure you have the imgmax=800 in all your Gdata requests and a
"s800" path component will be added to all the content links.

For some more info on the imgmax parameter, go here:
http://code.google.com/apis/picasaweb/docs/2.0/reference.html#Parameters

On Aug 11, 10:03 am, Mykhaylo Lytvynuk <[email protected]> wrote:
> Hi all I run into strange problem when trying to display picture from
> picasa
>
> I getting 404 in Chrome but same code perfectly works in Firefox!
>
> Here is HTTP reuqest header from Chrome
>
> GEThttp://lh4.ggpht.com/_820CHbc3Lbk/SnINUB3ZaUI/AAAAAAAAPZ0/F7Pm7JW-Tps...
>
> Host: lh4.ggpht.com
> Connection: keep-alive
> Keep-alive: 300
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
> AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.39
> Referer:http://picasafx.com/PicasaFlexV2.swf
> Accept: */*
> Accept-Encoding: gzip,deflate,sdch
> Accept-Language: en-US,en;q=0.8
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
>
> frome Firefox it is similar (different order only) but no Referer
> entry,
>
> So I figired out if I remove Referer from Chrome reuqest and replay it
> - it WORKS! To capture and replay I'm using great tool - Fiddler 
> -http://www.fiddler2.com/fiddler2/
>
> So question why adding referer to my query gives me 404!!??
>
> I cannot control headers from my application BTW!
>
> Any ideas?But aor I'm dooing something wrong?!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Picasa Web Albums API" 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-Picasa-Data-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to