This gallery plugin allows you to create a Flickr photostream-like gallery for your application while still using Flickr to host your image files. The plugin uses the Flickr API to gather a list of recently added public photos for a particular user and displays them in a justified gallery using "Justified Gallery" from Miro Mannino.
bower install kladd/flickr-justified-gallery
Follow the directions on Miro Mannino's project page here.
Then replace
$("#mygallery").justifiedGallery();
with
$("#mygallery").flickrJustifiedGallery({
flickrApiKey: "YOUR_API_KEY",
flickrUserID: "YOUR_FLICKR_USER_ID",
flickrPerPage: 12
});
Additional settings can be set through the justifiedGallerySettings
parameter.
Here's an example:
$("#mygallery").flickrJustifiedGallery({
flickrApiKey: "YOUR_API_KEY",
flickrUserID: "YOUR_FLICKR_USER_ID",
flickrPerPage: 12,
justifiedGallerySettings: {
rowHeight: 212,
maxRowHeight: 312,
target: "_blank",
lastRow: "hide"
}
});
Flickr Justified Gallery is open-sourced software licensed under the MIT license