• Oct
  • 04

Creating a Photoblog with LR, Flickr and MSS

FlickrMSS Setup Tutorial

For many, myself included, Adobe Lightroom has been a revolutionary step forward for the photographic workflow. My photo library is (finally) organized, interfaces directly with my photo processing routine, and can be used forthwith to generate web photo galleries. Despite all this fantasticness, however, a single niggle has persisted to annoy me, the singular niche in my armor, the one task Lightroom had failed to address: my photoblog.

So much for my perfectly cohesive, wholly encompassing photographic workflow ... Or so I'd thought.

Utilizing a handful of third party applications and services, a Lightroom empowered blog can be a reality after all. The setup is long-winded, but straight-forward. Do not be daunted; read on.

Take Aim

By the end of this tutorial, your photoblog should:

  • Update from a Lightroom Export preset.
  • Be maintained from within Flickr.
  • Display on your website via MonoSlideshow.
  • Allow users to click through to images on Flickr to post comments.

And it should function something like this.

Podcast

Download Podcast Demonstration | Adobe Forum Thread

What You'll Need

Setup has several requirements, some of which must be purchased. Below is a list of what you'll need and what it will cost you.

Flickr offers free service with a limited feature set. I advise trying them out and, if you like how this works, buying into the enhanced feature set. Your blog will benefit, especially from the increased storage space provided by a Flickr Pro account.

For the sake of discussion and increased understanding, we can divide these components into three categories.

The Input: Lightroom

The Glue: Export Plugin, Flickr

The Output: FlickrMSS, MonoSlideshow

As the input, Lightroom is the source from which photos begin.

The export plugin and Flickr are the glue that binds this process and the involved applications and services together. As an alternative, users might want to use PictureSync instead of Jeffrey Friedl's export plugin (see below).

For output, the combination of MonoSlideshow/FlickrMSS can be exchanged for a SlideShowPro/FlickrSSP combo.

This article will assume the use of Lightroom as input and MonoSlideshow as output.

PictureSync, the Export Alternative

PictureSync is a convenient utility that simplifies annotating and batch uploading your photographs and video clips to online services—directly from your albums in image-management applications, or files, and whilst preserving metadata. - PictureSync

PictureSync offers an alternative for both The Input and The Glue. Used with Lightroom, PictureSync can be activated via an export plugin. With PictureSync as The Glue, however, users may substitute LR with any image-managing application supported by PictureSync, including Aperture, iPhoto, iView MediaPro, drag-and-drop methods, and more.

At the time of this writing, PictureSync 1.8 is available for the Mac, while the Windows version is an Alpha release.

For the purposes of this tutorial, Lightroom users are recommended to simply use Jeffrey Friedl's export plugin. For those wishing to use PictureSync, however, I include information on this below.

Setup

1. Setup your Flickr account

If you don't already have a Flickr account, you'll want to begin by setting one up. Register for an account at www.Flickr.com. With a Flickr account in place, you don't need to do anything else just yet, so let's move on.

2. Install Adobe Lightroom

If you're reading this article, odds are good this is already done. From this point on, we'll assume Lightroom to be installed with an existing photo library.

3a. Install Jeffrey Friedl's LR Export Plugin for Flickr

Download and install Jeffrey Friedl's LR Export Plugin for Flickr. Installation instructions can be found on the plugin download page.

Alternatively, install PictureSync if you'd rather use that. The installation process should alert you to the fact that it is automatically adding an Export preset to Lightroom. This is a good thing; smile and be happy.

3b. PictureSync meets Flickr

If you're not using PictureSync, skip to number 4.

Within PictureSync, access the Window menu and select Accounts, or just use the shortcut, Cmd-2. Add your Flickr account and let the application guide you through the authorization process that will allow it to communicate with your Flickr account.

Once your Flickr account has been added and authorized, access the Preferences menu. Under Behavior, set the default button to “Upload To”. Save changes. Access the Window menu and select Rules, or use the Cmd-3 shortcut. Activate the rule “Swap Title/Object (Save for Lightroom)”. If you're running the free version of PictureSync, you'll be limited to three active rules, in which case you should disable “Remove AppleMark” in order to enable this rule.

For the time being, you may now close PictureSync.

4. Create your MonoSlideshow gallery

Get MonoSlideshow (MSS). At this point, images are unimportant. What you'll want to focus on now is putting together your gallery preferences and appearance. You can go about this in one of three ways.

The most time-consuming and tedious method would be to open the MSS manual in a window, your text editor in the other and write your XML file by hand. Better ideas would be to generate a gallery using my TTG MonoSlideshow Gallery, or to generate a set of preferences using the MonoSlideshow online demo, which allows you to download your created settings as an XML file.

5. Implement FlickrMSS into your MSS gallery

Bust open your piggy bank and purchase a copy of FlickrMSS. The readme file contains installation instructions, but they're poorly written.

First, copy your monoslideshow.swf, index.html and swfobject.js files from your MSS gallery into the FlickrMSS directory. DO NOT copy the monoslideshow.xml file.

Next, open the monoslideshow.xml file that's in your MSS gallery. Copy the preferences settings and nothing else; that is, copy the preferences opening and closing tags, and the settings between them. Go to the FlickrMSS directory, open the file monoslideshow-preferences.txt and paste your preferences inside.

Open the flickrmss.php file and fill in your Flickr username on line 17. Get a Flickr API key and fill it into line 22.

Open your index.html file and set it up to load a custom .XML file, as described in the MSS manual. Basically, you'll need to add the line so.addVariable("dataFile", "flickrmss.php"); to the javascript call, directly above the so.write line.

Finally, upload the gallery along with the FlickrMSS files to your web server. Set the monoslideshow.xml file (the empty one that comes with FlickrMSS) and the cache directory to writeable (chmod 777).

Make it go

The pieces are now all in place and it's time to add photos to your new photoblog.

Podcast Demonstration

I've recorded a screencast demonstrating how the photoblog should work, but recorded the video in the days before Lightroom supported export plugins. For this reason, the podcast shows the blog using PictureSync instead of Jeffrey Friedl's export plugin, which is newer. Download Podcast Demonstration

Moving Right Along

Open Lightroom, select one or more photos. Access the File menu, and select Export. At the top of the Export window is the action being performed. By default, this is set to "Export Files to Disk". Click this and you'll be given a drop list from which to choose your export plugin. Select "Export To Your Flickr Account". Setup the plugin with your output preferences and Flickr account information; these settings will be saved for the next time you use the plugin.

Pay particular attention to the "Flickr: Add to Photoset" portion of the window. Select an album or create a new one by pressing the New button. DO NOT upload photos to your Photostream. Your MSS gallery will only display photos that are included in albums/sets in your Flickr account.

When you're ready to send your photos, click the Export button in the lower right of the Export window. Lightroom will display a progress indicator as it uploads your photos to Flickr. When finished, Flickr will launch in your browser, showing your new additions.

You may now access your MSS gallery using your web browser. You should find it displaying an album with the images you just uploaded. Welcome to your new photoblog.

To add additional photos, open Lightroom, select and export your images to Flickr.

Odds and Ends

Using the Cache Period to your advantage

The cache_period setting in the flickermss.php can lead to some confusion, especially while testing your new photoblog. By default, the cache period is set to 86,400 seconds, one day. To wit, your photoblog will only be updated once a day, regardless of how many changes you make between re-caching. During setup, you'll probably want to see your changes as you make them; to do that, open the flickermss.php file and set the cache period to 1.

I've found, however, that leaving the cache period set to 1 can cause problems later on. Once your photoblog reaches a certain number of images, FlickerMSS will begin to crash during cache, resulting in an error and a failure to load your slideshow. For this reason, when you've finished setting up your blog, be sure to reset the cache period to 86400.

If you ever want to force a re-cache of your slideshow before the usual time, you can easily do so using the cache period setting. Set the cache period to 1, save the change and then reload your slideshow. It might crash, but that's okay. Now, reset the cache period to 86400 and reload the slideshow again. The slideshow should run fine, and the cache will be updated, bringing your slideshow up-to-date with your most recent changes.

The Tao of Flickr

Notes on Flickr: For MSS to read images from your Flickr account, those images must be organized into Sets and must also be set as Public images. Images not assigned to a Set, or designated as Private will not appear in your MSS slideshow.

Newest image first

By default, new additions will be appended to the end of your set, and therefore to the end of your photo gallery. This is contrary to standard photoblogging practice, by which newest additions are usually displayed at the front.

Getting your most recent additions to the front of your gallery requires an extra step, but can most certainly be done. Login to your Flickr account and select Organize from the menu. Within the Organizr, select the Sets tab. Double-click the set you'd like to work with. Above the upper left corner of the photo thumbnails, you'll find the Arrange drop menu. Select your preferred organizational method, then click the Save button located lower left. You can also write an album description here that will be used in your MSS gallery.

Unfortunately, your Arrange preference is not applied to new photos on upload. Everytime you add new photos to an album, you will need to repeat any arrangement assignments.

Visitor Comments

Visitors to your blog can post comments to your photos by clicking on an image in your MSS gallery. They will be wisked away to the Flickr page for that image, where comments may be collected.

By default, the Flickr page will be loaded into the same window as your slideshow - goodbye slideshow! The code below, for enabling image descriptions, also allows links to be opened in a new window, so that visitors can continue browsing your slideshow after posting their comments.

Enable descriptions for individual photos

By default, FlickrMSS does not display image descriptions/captions. To enable both Title and Description for your images, open the flickr.class.php file located in the includes folder of FlickrMSS. Replace lines 140 and 141 with the following:

// Create XML tag for each image of the photoset
$photodesc = $f->photos_getInfo($photo['id']);
$xml .= "\t\t".'<img src="http://static.flickr.com/'.$photo['server'].'/'.$photo['id'].'_'.$photo['secret'].'.jpg" link="'.$this->config['photos_url'].$photo['id'].'" target="_blank" thumbnail="http://static.flickr.com/'.$photo['server'].'/'.$photo['id'].'_'.$photo['secret'].'_t.jpg" title="'.$photo['title'].'" description="'.$photodesc['description'].'" />'."
";
Eliminating Links

If you don't want your gallery to link back to Flickr (i.e. you don't want comments), open the flickr.class.php file located in the includes folder of FlickrMSS. Replace lines 140 and 141 with the following:

// Create XML tag for each image of the photoset
$xml .= "\t\t".'<img src="http://static.flickr.com/'.$photo['server'].'/'.$photo['id'].'_'.$photo['secret'].'.jpg" thumbnail="http://static.flickr.com/'.$photo['server'].'/'.$photo['id'].'_'.$photo['secret'].'_t.jpg" title="'.$photo['title'].'" description="'.$photodesc['description'].'" />'."
";

This code also includes the description modification above.

Show the big ones!

By default, FlickrMSS will display Flickr's medium sized renderings of your images, 500 pixels at the longest side. To show Flickr's large renditions (1024 pixels) instead, simply add _b to the image URL.

This code enabled descriptions, opens links in a new window, and displays Flickr's large-size rendering.

// Create XML tag for each image of the photoset
$photodesc = $f->photos_getInfo($photo['id']);
$xml .= "\t\t".'<img src="http://static.flickr.com/'.$photo['server'].'/'.$photo['id'].'_'.$photo['secret'].'_b.jpg" link="'.$this->config['photos_url'].$photo['id'].'" target="_blank" thumbnail="http://static.flickr.com/'.$photo['server'].'/'.$photo['id'].'_'.$photo['secret'].'_t.jpg" title="'.$photo['title'].'" description="'.$photodesc['description'].'" />'."
";

If you want your images to display larger than 500 pixels, but smaller than 1024 pixels, use the code for the large rendering and set MonoSlideshow's image scaling mode to Down Scale to Fit.

Show Flickr's Square Thumbnails

By default, FlickrMSS also grabs Flickr's ratio-faithful thumbnails. If you'd rather use Flickr's square thumbnails, locate the _t at the end of the thumbnail URL code, and replace the t with an s.

My Implementation

My own MSS photoblog is up an running in more-or-less final form. Have a look and click around to get a feel for this tutorial's end-product.

Coda

And there you have it, a Lightroom/PictureSync/Flickr/MonoSlideshow photoblog. Perhaps somewhat convoluted, but I hope useful. Please post any feedback, questions or related photoblog links in the comments.

And most of all, remember rule number five.

Send this article to a friend »

« Next Article | ... ... | Previous Article »

Comment »

Tom
9 October 07 / link / feed

Matt, Great Idea…. but for those of us stuck on the PC side we have no picture sync. I assuming we could just skip that step right.

Also any thoughts on how you would do this if you wanted to just maintain content on a portfolio site.

Thanks

9 October 07 / link / feed

Tom,

PictureSync is in the works for Windows, and will hopefully be along soon. In the meantime, there are alternatives, though none so nicely integrated.

One alternative would be to export images from Lightroom to your desktop, then use <a href=“http://flickr.com/tools/”>Flickr Uploadr</a> to add them to your Flickr account.

As for how to maintain a portfolio site, things get trickier when you try to eliminate Flickr from the process. In that case, you’d need to manually add images to the XML file for the gallery.

I imagine it would be possible to write a PHP script that scans a specified images for images and generates an XML file on the fly, but such a thing is well beyond my capabilities.

Another idea might be to go ahead using Flickr to manage the images, but disable the image links back to the Flickr pages. To disable the links, see the "Eliminating Links" section I've added to the main article above.

And, finally, in the FlickrMSS readme, it explains how to display only select galleries (it displays all galleries by default).

I hope that helps.

Cheers,
Matthew

11 October 07 / link / feed

Hi!

Will this work with SmugMug?

Regards,

Mark Jones

11 October 07 / link / feed

You can use the Lightroom/PictureSync combination to upload images to SmugMug. You cannot, however, use MonoSlideshow (or any other gallery I’m aware of) to retrieve images from a SmugMug account for display on your website.

Using vernacular established above, the Input will work with SmugMug; the Output will not.

For a full list of services with which PictureSync will interface, see the PictureSync website.

Presently, the only options I know of for photo retrieval and display are MonoSlideshow, SlideShowPro and the newly released TiltViewer. All of these work only with Flickr.

Tom
11 October 07 / link / feed

Matthew,
Thanks for the info I think the idea of trying to maintain a portfolio with using flickr as the driver is something worth looking into.

Thanks,
Tom

11 October 07 / link / feed

Just a note to let readers know that I’ve updated the tutorial, adding image descriptions/captions to individual photos.

For details, see the new section Enable descriptions for individual photos above.

26 October 07 / link / feed

Great idea. I’ve got right through all the steps but when I try to open the web gallery it tells me to

Please install Flash® and turn on Javascript.

Any ideas. Thanks,
Adam

Carl
6 November 07 / link / feed

In Windows you can set up flickr uploader as an Export preset to allow you to upload directly to Flickr from Lightroom. Instructions are here (these are Mac instructions, but exactly the same process works for Windows). This gives you the functionality that PictureSync does for this application.

Works fine for uploading multiple images, too.

6 November 07 / link / feed

Cool. Thanks for the tip, Carl.

Glenn
8 November 07 / link / feed

Hi,
Followed the steps above but had some problems when downloading FlickrMSS. After purchasing it, an email was sent to me with a link to download the FlickrMSS file. Following the link on the email, I tried downloading the FlickrMSS file but it prompted me for a password. I was not given any password. Anyone had this problem? Did I miss any steps?
cheers.

8 November 07 / link / feed

I wasn’t prompted for a password that I can remember. You should just need to click the hyperlink in the email you received after purchase to be taken to the download page. If you’re having problem, you might try contacting Brian Sweeting directly, briansweeting [at] gmail.com.

12 November 07 / link / feed

Hello !

I have an error when i try to implement this solution :
“No images found in .XML-file.”

Can you help me ?

Jeff
13 November 07 / link / feed

Waiken,

Have you added your Flikr Images to a set? I had the same problem, which went away as soon as I added the photos to a set and ensured the images were set to display publicly.

Jeff
13 November 07 / link / feed

I tried to implement the large image soution above, but as soon as I add the “b” to the code, I am only able to see the image name and description. The image will not load and I only see a loading icon. As soon as I remove the “b” it returns to working. Any ideas?

13 November 07 / link / feed

Hello Jeff,

What do you named “a set” ? Is it an album in flickr ?

My photos are in a public album.

4 February 08 / link / feed

Hey,
Thought y’all might be interested, this guy wrote a Lightroom preset to export directly to Flickr:
http://regex.info/blog/2007-11-21/642

4 February 08 / link / feed

Yes, I know. I’m using it now. I wrote this article before export plugins existed, and haven’t gotten around to updating it yet.

4 March 08 / link / feed

Hey there I’m trying to implement this on a webpage for client but neither you code nor someonelse that I just lost think to works to disable the link to flickr. Oh no here it is http://www.monoslideshow.com/vanilla/discussion/423/flickrmss-problem/
Any usggestions that work would be greatly appreciated

4 March 08 / link / feed

Jamie,
Did you try the Eliminating Links section, above?

10 March 08 / link / feed

Love your site…

flickrMSS: Preferences propagate into the xml file but I see nothing for accessing my photos on flickr. “No images found in .XML-file.”

10 March 08 / link / feed

Hey still having problems implementing the script I have elimintated links and everything works fine when I test locally on my computer using MAMP as a testing server but when I put it on the net it just keeps coming up with no images in xml file I have changed write permissions on the cache and xml files but still no joy. If you go to www.neuformation.com/projects.html and click on a thumbnail it should open up a shadowbox which links to the page flickrmss/album.html which contains the embedded slideshow. Nada works however and my host tells me its cos they don’t allow executable php files but that doesn’t cut it must be some other explanation. Please help need to finish this site very soon

10 March 08 / link / feed

okay scratch that last comment its now working I had to make all the files in the phpFlickr folder executable I’m using cyberduck as my FTP manager so it was a case of right clicking and setting the permissions that way seems to work perfectly now god I’m so happy!
nayways I hope that solves anybody elses problems it was giving me amajor headache. Matthiew your site is brilliant by the way and your photos are awesome I hope you continue your good working helping us out I hope to contribute something back to the community when my skills have improved

Jamie A
10 March 08 / link / feed

Okay scratch the scratch can somebody do me a favour and tell me whats going on. On my comp (Macbook Pro OS X10.4 plus firefox 2.x.x and safari 3) the links mentioned above work fine. the site loads slowly because at the moment its script heavy I’m looking for away to reduce that but the shadowbox loads the files load and its all fairly timely however when I test the links on firefox pc and internet explorer 6 and 7 the slideshow either fails to materialise (in the case of FF) or takes an age and has problems switching between albums in IE 6 and 7 can anyone give me a clue as to why this might be? Sorry to post so many comments but I’m at my wits end I thought it was working.

10 March 08 / link / feed

Hi Jamie,

It’s working fine in Firefox/Mac and it looks great. Nice work.

Have you narrowed your problems down to either issues with Shadowbox, or issues with MonoSlideshow? If so, you should try posting for assistance in the appropriate forum: MonoSlideshow or Shadowbox. There are a number of threads in each regarding browser issues. Hopefully you can find your solution there.

Jamie A
10 March 08 / link / feed

hey matthew
Thanks for the advice I’m still checking for issues its seems to be an issue with IE and Firefox possible script errors need to check on that. thanks again
J

12 March 08 / link / feed

Matt,
I just noticed your message in the Flickr Lightroom group linking to your page. I initiated the massive discussion on the Piglets plugin infrastructure Jeff Friedl and Tim Armes developed to utilize the Mogrify application to export directly out of LR to Flickr. Am I to understand that this application can be used as a substitute for PictureSync for those of us using Lightroom on an XP? Is this superior to PictureSync?

12 March 08 / link / feed

Josh,

I wrote this article before Lightroom began to support export plugins. At that time, PictureSync was the only way to get images directly from Lightroom to Flickr. Now, I far prefer Jeffrey Friedl’s Flickr export plugin over PictureSync.

PictureSync still has it’s uses for sending images to services not yet supported by export plugins. But for Flickr, I don’t use it anymore.

For Mac and Windows, I recommend Friedl’s export plugin. And one of these days, I need to revisit this article for an update.

13 March 08 / link / feed

Mat, thanks for the info. I am already a current user of SlideshowPro for lightroom so I got flickrssp v1.6 a few weeks ago. The thing is, I can’t figure out how to configure it. When I configure my slideshow and export it to my HD, it creates the following files: An album of images and thumbs, images.xml, index.html, param.xml, swfobjects.js, loader.swf, and slideshowpro.swf. From your description for MSS, I can see some similarities in the file types to work with, but the filenames are different. I’m guessing it is the param.xml that I have to copy my preferences from, but there is no monoslideshow-preferences.txt file or any text file besides release notes to paste them in the SSP folder. I’m not very smart with coding, but I was able to integrate multiple slideshow exports into a single gallery here: www.bastphotography.com/travel.html

Thanks!

13 March 08 / link / feed

Josh,

I’ve never set this up with SlideShowPro, so not sure of the difference. I know FlickrMSS came after and was based upon the code for FlickrSSP, so much of it should be alike. But yes, there are surely differences as well. One of these days, I might have to experiment with FlickrSSP and see what I can figure out specifically.

11 April 08 / link / feed

Hello there, Matt and everybody

I echo the frustration of the other members I’m stuck with “No images found in .XML-file.” I have my images ready on my flickr account www.flickr.com/kx0101 I even bought the pro package just in case. I followed the steps but like others, no magic this is the url of the photo gallery

http://webspace.newschool.edu/~ramok924/index/kx0101/flickrmss/photography.html

index….

http://webspace.newschool.edu/~ramok924/index/kx0101

pls give it a look

Im using fugu as my ftp uploader I right clicked on the mentioned folders and made them writable by changing it to 777

also I noticed I was trying to do the same as Jamie A. by combining both shadowbox and MSS. (Jamie A. if you made it happen pls send me a line) I appreciate all the help that you can give me since im a total web noob .

My deepest respect and appreciation to your work both in photo and in web

Cheers
Karlo
kx0101@gmail.com

11 April 08 / link / feed

Karlo,

Looks to me like you’ve got a couple of problems.

First of all, your XML file is weird. Have a look. Did you set your file permissions correctly using your FTP client or web control panel?

Also, your HTML is a mess. Have a look at your source code. You’re calling MSS into the document three times, twice in the head, where it doesn’t belong. And the one in the body, where it does belong, it’s pointing to flickrmss.php like it’s supposed to be.

I’d suggest sorting out your HTML first, then giving it a shot. If it’s still not working, then take a look at the monoslideshow.xml file and make sure its writable.

christoph
18 April 08 / link / feed

hey,

well actually I have to agree with Karlo, having the same “No images found in .XML-file.”-problem. I did this excellent tutorial above more than 5 times, started reorganising my flickr collections/sets, got new APIs, tested changes in source text of flickrmss.php, index.html and monslideshow-preferences.txt, however it still fails. From this point of view I am disappointed not knowing what is my mistake …

http://www.chkunze.de/flickr/index.html is my test for mss+flickrmss.

Maybe someone get’s into it and could help me and other users.

thx in advance

christoph

JohnV
30 April 08 / link / feed

Hi Matthew,

Tried to get to you website via www.theturninggate.net …didn’t work, just displayed a generic page.

theturninggate.net works fine without the www.

Looks like you have to check a web server setting.

Hey nice web galleries…Thanks!

Best,

John V.

1 May 08 / link / feed

Must have been a server fart. With or without www, the URL is working fine now.

Thanks for letting me know, though.

Name:

Email:

URL:

Comments support Textile formatting & Gravatars.