I'm using the picasaviewer.js script from pilon.nl to embed a Picasa
gallery in our school website, and I see the same issue. Based on
Brian's work, I found a line in the viewPhotoList() function inside
picasaviewer.js that reads

                var thumb       = item.media$group.media$thumbnail[0].url;


Right after that, I inserted the following:

                // Temporary? fix for Google bug 26-May-2011 ST

                if (item.media$group.media$thumbnail[0].width > 160) {

                        thumb   = item.media$group.media$thumbnail[1].url;

                }


and now our gallery works again. This should be reasonably robust
unless you're currently actually using thumbnail sizes bigger than 160
(these were not supported when picasaviewer.js first came out, AFAIK).

Thanks Brian
Stephen Thomas

On May 26, 11:08 am, Brian Cody <brianrc...@gmail.com> wrote:
> I'm also encountering the large thumbnail bug.  It appears that the
> array of thumbnails that my Javascript is receiving (media$group.media
> $thumbnail) contains two objects.  The first is the image at full
> size, and the second is the thumbnail that I'm looking for.  The
> jQuery plug-in that I'm using is expecting the thumbnail to be the
> image at index 0.  I just started debugging this code, so I can't say
> whether the contents of the array simply shuffled or if the code
> previously expected to receive an array of size 1.
>
> Thanks for looking into this!
>
> -Brian
>
> I can temporarily fix my site by accessing the object at index 1, but
> of course, that will stop working once the bug is fixed.
>
> On May 25, 8:44 pm, Mateus - <mateu...@gmail.com> wrote:
>
> > Same problem here, at first I thought it was something I did. All of a
> > sudden all of my thumbnails were large images. Not sure there is much I can
> > do to help. Very simple javascript to access. Here is my querystring:
>
> >http://picasaweb.google.com/data/feed/base/user/cabeleireiradelivery/...
>
> > any other help we can offer, please post.
>
> > Thanks in advance @Mike

-- 
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 google-picasa-data-api@googlegroups.com.
To unsubscribe from this group, send email to 
google-picasa-data-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-picasa-data-api?hl=en.

Reply via email to