Monday, January 21, 2008

Flickr Photo Page Bookmarklet

Occasionally I come across images that are hosted by Flickr, but which don't have a link back to the photo page on Flickr. This seems to be especially common on message boards and image bookmarking sites like FFFFound. Being able to get to the Flickr photo page is nice for a number of reasons: you can see other photos by the same author, see the metadata, notes, comments, others sizes, etc.

A Flickr photo URL looks something like this:

  http://farm2.static.flickr.com/1407/1085850486_23589455e2.jpg

Flickr has some nice documentation for their URLs. The URL above is of the form http://farmfarm-id.static.flickr.com/server-id/id_secret.jpg, so the photo ID is 1085850486 and the "secret" is 23589455e2. It's possible to find the photo page by using Flicker's API call "flickr.photos.getInfo", which returns XML containing the photo ID. That's tedious, and won't work in a bookmarklet.

Some more searching turned up the http://flickr.com/photo.gne?id=id URL. I can't find any official documentation for this, only some posts in the Flick help forums. It appears to work though, and it wasn't too hard to turn it into a bookmarklet.

To install the bookmarklet, just drag the following link to your bookmarks or toolbar.

[Flickr photo page]

To use the bookmarklet, first make sure that the photo is the only thing open in the browser tab/window. In other words, the URL in the address bar should be for the .jpg hosted on flickr.com. If the photo is embedded in a page you'll generally need to select "View Image" (or equivalent) from the context menu. (FFFFound is an exception: it caches the images, so you'll instead need to click on the image to be taken to the original) One you're on the image, just click the bookmarklet to be sent to the Flickr photo page.

posted Monday, January 21, 2008
Brilliant! I've long wondered about this - thanks for figuring it out!  
  Blogger Guy Montag on February 09, 2008
Thank you! I use this bookmarklet all the time.  
  Blogger blakewest on June 14, 2011