Hi Detlev, Thanks for the feedback - that seems to be the issue. It would be helpful if Picasa returned an "embedding not supported" message for those larger images when you send a referer to help diagnose this issue!
Thanks, Matt. On 22-May-09, at 4:39 PM, Detlev wrote: > > Are you trying to embed those images on a website? > There is a maximum supported image size for that and it is 800. Here's > an excerpt from the API online reference guide: > (http://code.google.com/apis/picasaweb/reference.html#Parameters) > > "The following values are valid for the thumbsize and imgmax query > parameters and are embeddable on a webpage. These images are available > as only uncropped(u) sizes by appending u to the size or just passing > the size value without appending anything. > > 200, 288, 320, 400, 512, 576, 640, 720, 800 > > The following values are valid for the thumbsize and imgmax query > parameters and are not embeddable on a webpage. These image sizes are > only available in uncropped format and are accessed using only the > size (no u is appended to the size). > > 912, 1024, 1152, 1280, 1440, 1600" > > Try requesting with "imgmax=800" and see if that solves the problem. > This query parameter will automatically add a 's800' path element into > each image URL (just before the image name). > > > On May 22, 2:36 pm, Matt Mastracci <[email protected]> wrote: >> For the last few days, I've been getting occasional 404 errors when I >> try to display images, whose URLs are taken the GData Picasa output, >> to users in a standard browser. Is this the correct place to report >> an issue like this? >> >> The 404 message is somewhat random. The image will load fine one >> minute, then fail the next (even after refresh). If I switch to a >> different browser, the image loads up correctly, even while it's >> failing in the other browser! >> >> Here's an example URL. I used the Picasa query API to search for >> "test" and picked one of the items out: >> >> http://lh6.ggpht.com/_FNZsyfYpnCU/SRxMI7865wI/AAAAAAAAyTI/ >> e7mtBDLuakI... >> >> I ran tcpdump on an unsuccessful session and got this: >> >> ----------------------------------------------------- >> Unsuccessful session #1 (firefox) >> ----------------------------------------------------- >> 15:24:47.789886 IP (my machine).59698 > pz-in-f93.google.com.http: P >> 527:1054(527) ack 1555 win 33323 <nop,nop,timestamp 903941105 >> 76787118> >> E..C>....@[email protected]}.].2.P.QO........+.>..... >> 5.......GET /_FNZsyfYpnCU/SRxMI7865wI/AAAAAAAAyTI/e7mtBDLuakI/ >> IMGA0187.JPG HTTP/1.1 >> Host: lh6.ggpht.com >> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; >> rv: >> 1.9.0.10) Gecko/2009042315 DotSpots/20090522-1241 Firefox/3.0.10 >> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/ >> *;q=0.8 >> Accept-Language: en-us,en;q=0.5 >> Accept-Encoding: gzip,deflate >> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 >> Keep-Alive: 300 >> Connection: keep-alive >> Referer: (redacted) >> Cache-Control: max-age=0 >> >> 15:24:47.832378 IP pz-in-f93.google.com.http > (my machine).59698: . >> 1555:2973(1418) ack 1054 win 24 <nop,nop,timestamp 76793819 >> 903941105> >> E.......5..QJ}.].....P.2.....QQ.....I...... >> ....5...HTTP/1.1 404 Not Found >> Content-Type: text/html; charset=UTF-8 >> Date: Fri, 22 May 2009 21:24:47 GMT >> Server: fife >> Content-Length: 1415 >> <html><head> >> <meta http-equiv="content-type" content="text/html;charset=utf-8"> >> <title>404 Not Found</title> >> (rest of 404 snipped) >> ----------------------------------------------------- >> >> I then opened up Safari, ran the same query and it succeeded. The >> tcpdump for that session is as follows: >> >> ----------------------------------------------------- >> Successful session #1 (safari) >> ----------------------------------------------------- >> 15:25:53.706530 IP (my machine).59733 > pz-in-f93.google.com.http: P >> 1:442(441) ack 1 win 33323 <nop,nop,timestamp 903941763 70731812> >> e.....@.@.?.....J}.].U.P"..+..f....+*...... >> 5....7H$GET /_FNZsyfYpnCU/SRxMI7865wI/AAAAAAAAyTI/e7mtBDLuakI/ >> IMGA0187.JPG HTTP/1.1 >> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) >> AppleWebKit/528.16 (KHTML, like Gecko) Version/4.0 Safari/528.16 >> Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/ >> plain;q=0.8,image/png,*/*;q=0.5 >> Cache-Control: max-age=0 >> Accept-Language: en-us >> Accept-Encoding: gzip, deflate >> Connection: keep-alive >> Host: lh6.ggpht.com >> >> 15:25:53.744493 IP pz-in-f93.google.com.http > (my machine).59733: . >> ack 442 win 14 <nop,nop,timestamp 70731854 903941763> >> E..4fN..5.."J}.].....P.U..f."........y..... >> .7HN5... >> 15:25:53.757641 IP pz-in-f93.google.com.http > (my machine).59733: . >> 1:1419(1418) ack 442 win 14 <nop,nop,timestamp 70731860 903941763> >> E...fO..5...J}.].....P.U..f.".............. >> .7HT5...HTTP/1.1 200 OK >> ETag: "vc932" >> Expires: Sat, 23 May 2009 21:25:53 GMT >> Cache-Control: public, max-age=86400, no-transform >> Content-Type: image/jpeg >> Content-Disposition: inline;filename="IMGA0187.JPG" >> Date: Fri, 22 May 2009 21:25:53 GMT >> Server: fife >> Content-Length: 56589 >> ----------------------------------------------------- >> >> After spending a few minutes composing this message, Firefox can >> display the image again: >> >> ----------------------------------------------------- >> Successful session #2 (firefox) >> ----------------------------------------------------- >> 15:30:39.224684 IP (my machine).59783 > pz-in-f93.google.com.http: P >> 573279238:573279782(544) ack 4172234996 win 33323 <nop,nop,timestamp >> 903944615 76797533> >> @[email protected]}.]...p"+....@....+....... >> 5......]GET /_FNZsyfYpnCU/SRxMI7865wI/AAAAAAAAyTI/e7mtBDLuakI/ >> IMGA0187.JPG HTTP/1.1 >> Host: lh6.ggpht.com >> User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; >> rv: >> 1.9.0.10) Gecko/2009042315 DotSpots/20090522-1241 Firefox/3.0.10 >> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/ >> *;q=0.8 >> Accept-Language: en-us,en;q=0.5 >> Accept-Encoding: gzip,deflate >> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 >> Keep-Alive: 300 >> Connection: keep-alive >> Referer: (redacted) >> Pragma: no-cache >> Cache-Control: no-cache >> >> 15:30:39.261451 IP pz-in-f93.google.com.http > (my machine).59783: P >> 1:280(279) ack 544 win 16 <nop,nop,timestamp 76804672 903944615> >> e..k.z..5...j}.].....p....@."+.&........... >> [email protected]/1.1 200 OK >> ETag: "vc932" >> Expires: Sat, 23 May 2009 21:30:39 GMT >> Cache-Control: public, max-age=86400, no-transform >> Content-Type: image/jpeg >> Content-Disposition: inline;filename="IMGA0187.JPG" >> Date: Fri, 22 May 2009 21:25:53 GMT >> Server: fife >> Content-Length: 56589 >> ----------------------------------------------------- >> >> Thanks for any help (or a pointer in the right direction), >> Matt. > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
