Is it necessary to build an alternative picasa viewer when picasa itself provides nice flash gallery viewers ? for webmasters it turns out that sometimes it can be necessary to hide picasa details, and thanks to picasa itself providing various remote server access, you can use your albums within any kind of rss or json enabled application. We provide here an example of a JSON - jquery powered slideshow that takes input from any picasa album. The advantage of using picasa over hosted or specific applications such as famous menalto's gallery of coppermine is that picasa does resizing jobs for you, and offers up to 1 GB of free online image storage which largely enough for any small website presentation.
Picasa in a few words
Picasa is in fact the name of the windows based application, owned distributed by google, that does vairous image related jobs, most important of them is indexing and displaying. A simple publish button in the picasa application will transfer any chosen image to a picasa hosted album, provided that you have a google account. picasa Albums can be viewed publicly or restricted and are accessible online via URLs.
Jquery's Gallery scroller (jqGalScroll)
the jqGalScroll plugin takes list of images and creates a smooth scrolling photo gallery scrolling vertically, horizontally, or diagonally. The plugin will also create pagination to allow you to flow through your photos and integrates the jquery easing library. As usual it processes HTML code and as such is a nice clean way of implementing a slide show.
Integrating picasa into jqGalScroll
- download and test jquery, jquery easing plugin and jqGallScroll plugin following instructions on jqGallScroll's website
- create your album and extract the RSS url of the album following detailed instructions from "Documenting Picasa" : copy the url and replace alt=rss with alt=json
document.writeln( '<ul id="one">');
for (var i = 0; i < data.feed.entry.length; i++)
var item = data.feed.entry[i];
var title = item.title.$t;
var imageurl = item.media$group.media$thumbnail.url;
var description = item.media$group.media$description.$t;
var link = item.link.href;
document.writeln("<li><a href='" + link + "'><img src='" + imageurl + "' border='0' /></a></li>" );
- Try out and let us know how it went !!
See also :