This code is for use on staff, student and society homepages only. For assistance in setting up an image gallery on any other site, please contact webmaster@ncl.ac.uk in the first instance.

Image Galleries

Lots of people like to create galleries of images on their web pages. Cropping, resizing, uploading and indexing large numbers of images can be pretty time consuming.

To work around this, lots of people have tried installing third party apps ...however these have an admin overhead, place strain on the server and are often overly complex in terms of the functionality people really want.

The Solution

Flickr is an online service which allows people to share their images - for free.

Many people are put off using this as they want their images to be displayed inside their own site rather than on some external service. We can get around this by using the Flickr API which allows querying of the libraries to display personal galleries within other web pages.

Sound Complicated?

It doesn't need to be. The following pages document some simple PHP functions which use the Flickr API to produce simple image galleries from your own Flickr account.

A Flickr Account

As you might have guessed by now ...the only real prerequisite is a user account with Flickr. All you need to do is visit the Flickr Homepage and complete their sign up process.

Obviously, you'll be wanting to upload some images too, or your gallery is going to be pretty dull... follow the links on Flickr, or go direct to the upload page (if you're logged in) at http://www.flickr.com/photos/upload/. When you upload photos, make sure they're marked as "public", so that the functions can get at them. If you don't like the thought of uploading them via a web form, you can always use Flickr's upload by email functionality.