strapyourself.in and flouri.sh
mac.com "Web Gallery" Photos in Mephisto
January 2nd, 2008
All the flickr functionality with better iPhoto integration!
I just finished a conversion of my existing flickr ajax mephisto plugin to use mac.com web galleries! I finally ended up paying for mac.com, because of the awesome integration with everything.
Features:
- Pull photos from a specific album or your entire gallery
- Uses AJAX to pull feed data, so it won't bottleneck your main page rendering
- Randomly chooses X photos to display every time
- A variety of supported images sizes: square, small, medium, and large
- Images automatically link to Apple's awesome web gallery interface
Issues (depending on size of gallery, mine has 400 images at the time):
- The RSS feed takes between 2 and 10 seconds to deliver from apple.
- The downloaded XML file takes 2 to 5 seconds process.
Usage
How I used it in my site:
<p>Pictures:</p> {% macgallery feed: http://gallery.mac.com/dsboulder/?webdav-method=truthget&feedfmt=photocastrss count: 4 format: square width: 75 height: 75 %} {% endmacgallery %}
Supported options to the "macgallery" liquid tag:
- feed: REQUIRED. The url of the RSS feed to your gallery, or to a specific album.
- count: OPTIONAL (default: 6). The number of images to display.
- format: OPTIONAL (default: square). Also valid are "small", "medium", and "large".
- width/height: OPTIONAL (default: none). If specified, will add width and height attributes to the IMG tag. Useful for resizing the square images from their 160x160 default size.
Where to get the plugin
svn checkout http://mephisto-mac-gallery-ajax.googlecode.com/svn/trunk/ vendor/plugins/mephisto_mac_gallery_ajax
Sorry, comments are closed for this article.