<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Single-Serving Photo &#187; workflow</title>
	<atom:link href="http://singleservingphoto.com/tag/workflow/feed/" rel="self" type="application/rss+xml" />
	<link>http://singleservingphoto.com</link>
	<description>Photography in Small Doses</description>
	<lastBuildDate>Fri, 06 Jan 2012 00:58:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Controlling Lightroom with Physical Knobs</title>
		<link>http://singleservingphoto.com/2011/12/02/controlling-lightroom-with-physical-knobs/</link>
		<comments>http://singleservingphoto.com/2011/12/02/controlling-lightroom-with-physical-knobs/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 18:03:13 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[lightroom]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[plug-in]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://singleservingphoto.com/?p=1226</guid>
		<description><![CDATA[Using Lightroom is a joy compared to Photoshop. But it isn&#8217;t a joy compared to, for example, cheesecake. It&#8217;s definitely nice to be able to adjust nearly every aspect of an image with convenient sliders, to have all of the settings right in front of you without having to open lots of dialog boxes. At [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2011/12/02/controlling-lightroom-with-physical-knobs/' addthis:title='Controlling Lightroom with Physical Knobs '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[	<p>Using Lightroom is a joy compared to Photoshop. But it isn&#8217;t a joy compared to, for example, cheesecake. It&#8217;s definitely nice to be able to adjust nearly every aspect of an image with convenient sliders, to have all of the settings right in front of you without having to open lots of dialog boxes. At the same time, though, your mouse hand can get pretty tired, and that never happens with cheesecake, now does it?</p>

	<p>Never fear, there is finally a solution. Well, the beginning of a solution. A solution in the early stages of beta testing, but a solution nonetheless, and it doesn&#8217;t involve uninstalling Lightroom and eating more cheesecake. Although you are welcome to eat more cheesecake anyway if that&#8217;s your thing.<span id="more-1226"></span></p>

	<p><a href="http://singleservingphoto.com/wp-content/uploads/2011/12/BCR2000_P0245_Reflective_web.png" rel="lightbox[1226]"><img src="http://singleservingphoto.com/wp-content/uploads/2011/12/BCR2000-P0245-Reflective-web-300x295.png" alt="" title="Behringer BCR2000" width="300" height="295" class="alignright size-medium wp-image-1231" /></a></p>

	<p>No, friends, what I&#8217;m talking about is <strong>Knobroom</strong>. What is Knobroom? Knobroom is a plug-in for Lightroom written by Jarno Heikkinen. Now hold on, I know what you&#8217;re going to ask: &#8220;What is that picture to the right?&#8221; It&#8217;s a good question. That is a Behringer B-Control Rotary BCR2000 32-channel <span class="caps">MIDI</span> encoder panel.</p>

	<p>Oh, you want to know what Knobroom does! You haven&#8217;t guessed yet? Knobroom connects the sliders in Lightroom to <span class="caps">MIDI</span> control channels. <span class="caps">MIDI</span> stands for Musical Instrument Digital Interface and is essentially the standard by which electronic instruments communicate with one another (and with computers). The Behringer shown on the right is just one example of a <span class="caps">MIDI</span> control panel that would commonly be used to control volume, pan, vibrato, loudness, and other such attributes in music software.</p>

	<p>Of course, it&#8217;s just a <span class="caps">USB</span> device that communicates through the well-documented <span class="caps">MIDI</span> protocol, so Jarno wrote a plug-in that takes that information and allows you to say &#8220;when knob 1 is turned, change the exposure slider.&#8221; This allows you to move settings up and down with the knobs without having to move the mouse or even have the appropriate panels in the develop module <em>open</em>.</p>

	<p>How cool is that?!</p>

	<p>I&#8217;m seriously considering the purchase of a Behringer BCR2000 as that is the model Max Edin used in his demonstration video, which sort of proves that it works. There are some issues and the software is in a beta stage of development so you have to expect some bumps in the road, but it looks very promising.</p>

	<p>Read more on Max Edin&#8217;s blog: <a href="http://maxedin.net/2011/11/using-hardware-controllers-with-lightroom/">Using Hardware Controllers with Lightroom</a>. Check out the <a href="http://www.knobroom.com/">Knobroom home page</a> for more of the gritty details.</p><div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2011/12/02/controlling-lightroom-with-physical-knobs/' addthis:title='Controlling Lightroom with Physical Knobs '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://singleservingphoto.com/2011/12/02/controlling-lightroom-with-physical-knobs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lightroom Organization 101</title>
		<link>http://singleservingphoto.com/2010/02/25/lightroom-organization-101/</link>
		<comments>http://singleservingphoto.com/2010/02/25/lightroom-organization-101/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 14:26:00 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[advice]]></category>
		<category><![CDATA[lightroom]]></category>
		<category><![CDATA[organization]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://singleservingphoto.com/?p=539</guid>
		<description><![CDATA[What you're about to read is a totally inclusive, top-to-bottom, front-to-back workflow for organizing, sorting, and managing your digital photos using Adobe Photoshop Lightroom. Similar techniques will, I'm sure, apply to Apple Aperture, though all keyboard shortcuts and terminology will be Lightroom-specific.<div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2010/02/25/lightroom-organization-101/' addthis:title='Lightroom Organization 101 '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[	<p>In <a href="http://artphotoworkshops.com">my workshops</a> I teach people how to organize their photos, both the physical files on disk as well as their Photoshop Lightroom catalogs. Although I&#8217;ve been teaching these classes for years, I realized that I&#8217;ve never once written about it.</p>

	<p>Well, that&#8217;s coming to an end.</p>

	<p>What you&#8217;re about to read is a totally inclusive, top-to-bottom, front-to-back workflow for organizing, sorting, and managing your digital photos using Adobe Photoshop Lightroom. Similar techniques will, I&#8217;m sure, apply to Apple Aperture, though all keyboard shortcuts and terminology will be Lightroom-specific.</p>

	<p>For the record, I use Lightroom on a Mac and chose it because of Adobe&#8217;s openness to beta testing and feedback from the photography community, which I believe has made Lightroom the best tool for the job. Let&#8217;s get to it.<span id="more-539"></span></p>

	<h2>Organizing Files on Disk</h2>

	<p>First, why? Why organize your files on disk when Lightroom is such an apt cataloging tool? Why add another layer of complexity to your photo import workflow when Lightroom can just &#8220;take care of it,&#8221; assuring you that each <span class="caps">RAW</span> file is placed in a location appropriate to its metadata?</p>

	<p><strong>Because that&#8217;s totally wrong</strong>, that&#8217;s why. Lightroom is an <em>amazing</em> cataloging and organizational tool, but what if you couldn&#8217;t use it? What if your catalog, and its backup, and the backup&#8217;s backup, got destroyed? Or what if your operating system was in some state of utter bedlam, preventing you from opening Lightroom at all? Or what if you brought your external drive full of photos with you on a trip and found out that Lightroom on your laptop wouldn&#8217;t work?</p>

	<p>Applying at least some moderate level of organization to your physical <span class="caps">RAW</span> files will make finding them that much easier if you ever have to do so without the aid of Lightroom. Surely not an eventuality we all hope for, but one that we should nonetheless plan for.</p>

	<h3>My Method</h3>

	<p>There are an infinite number of ways to organize your <span class="caps">RAW</span> files on disk, but I don&#8217;t have an infinite amount of time (and neither do you) so I will only tell you how I do it.</p>

	<ol>
		<li>My top-level folder is called &#8220;Photography,&#8221; then</li>
		<li>Within that folder there are three folders for the main categories of my work, &#8220;Events,&#8221; &#8220;Places,&#8221; and &#8220;Portraits.&#8221;
	<ol>
		<li>Events contains folders named for each event and those folders contain the photos.</li>
		<li>Portraits contains folders usually of models&#8217; names, and those folders contain photos. If I have done more than one shoot with a model, there are folders by date for those.</li>
		<li>Places, however, contains a geographical hierarchy like &#8220;United States,&#8221; then &#8220;California,&#8221; then &#8220;Death Valley NP,&#8221; and
	<ol>
		<li>As with portraits, if I&#8217;ve been to a location more than once, there are folders by date.</li>
	</ol></li>
	</ol></li>
	</ol>

	<p>I know that list might be a little bit complicated to absorb, so go ahead and re-read it if you want to. The basic idea is to have your major categories represented as folders on your hard drive such that you can locate, at the very least, the group of photos you&#8217;re looking for in the event you can&#8217;t use your catalog for it.</p>

	<h3>Enlisting Lightroom&#8217;s Help</h3>

	<p>You can get Lightroom to help you build this structure. Let me tell you what I would do if I were importing photos from a location shoot that I did in a place I had never photographed before.</p>

	<ol>
		<li>Open the import dialog and choose the photos I want to import from the thumbnail view.</li>
		<li>Choose &#8220;Copy Photos To A New Location And Add To Catalog.&#8221;</li>
		<li>Browse for the correct geographical folder. I usually use the browse dialog to create the folders I need along the way. For example, I might browse into &#8220;Places,&#8221; then &#8220;United States,&#8221; and then I may have to create a folder for &#8220;Massachusetts,&#8221; and then another within that for &#8220;Boston.&#8221; <span class="note">There is a &#8220;Make New Folder&#8221; or &#8220;Make Folder&#8221; button in the dialog (in Windows and OS X, respectively).</span></li>
		<li>In the future, if I already have the state folder created, I may simply select that and check off the box next to &#8220;Put in subfolder&#8221; and type the city or location name in there. That&#8217;s completely up to you.</li>
		<li>If you want to organize the photos by date within the folder you&#8217;ve selected (and this precludes using the &#8220;subfolder&#8221; option above), select &#8220;Organize: By Date&#8221; and Lightroom will create a subfolder for each date in your import (by the photo&#8217;s created date).</li>
	</ol>

	<p>A quick side-note: this is the time to select your metadata preset and choose some basic keywords to apply to all the photos you&#8217;re importing. This article isn&#8217;t really about keywording, but that won&#8217;t stop me from giving you orders: <strong>keyword your photos</strong>. That is all.</p>

	<p>Awesome! Now all of your <span class="caps">RAW</span> files are organized in a coherent way on your hard drive. But you still have thousands of new photos that you just imported and unless you&#8217;re Ansel Adams they&#8217;re not all keepers. Actually, even if you were Ansel Adams, they still wouldn&#8217;t all be keepers. So what you need to is <em>treat your catalog like an emergency room</em>.</p>

	<h2>Treat Your Catalog Like an Emergency Room</h2>

	<p>What I&#8217;m talking about is <em>triage</em>.</p>

	<p><strong>tri</strong> &bull; <strong>age</strong> <em>n.</em></p>

	<ol>
		<li>The determination of priorities for action in an emergency.</li>
		<li>Sweeping through your photos and separating the good from the bad.</li>
	</ol>

	<p>Obviously the second definition is not exactly Miriam Webster material, but&#8230; I reserve the right to exercise my creative liberty.</p>

	<p>Anyway, the idea is to prioritize photos by their quality so you can spend more time sorting through the really good ones and less time staring at the really bad ones. Doctors do this in emergency situations to make sure that patients who most need care get it first, to maximize the survival rate. For a doctor, determining priority among patients can be a real challenge, and prioritizing your photos can be tricky, too.</p>

	<p>Luckily, Lightroom gives us some very helpful tools that come to our aid in this situation. You probably already know of them. They are:</p>

	<ol>
		<li>Flags (picks and rejects)</li>
		<li>Ratings (on a scale from one star to five)</li>
		<li>Labels (colors)</li>
	</ol>

	<p>Any given photo can have a flag (<em>picked</em> or <em>rejected</em>), a rating (one through five stars), and a color label, although all three attributes are optional. By default, a photo has no flag, no rating, and no color label.</p>

	<p>With two possible flags, five possible ratings, and five possible color labels, that&#8217;s a whopping <em>50</em> potential categorizations a photo could fall into (if you use all three attributes)! So how can you best put these attributes to use to streamline your workflow?</p>

	<p>I don&#8217;t know. But I can tell you how I use them.</p>

	<h3>My Method</h3>

	<p>The very high-level outline of my process goes something like this:</p>

	<ol>
		<li>Eliminate rejects (using the reject flag, &#8220;X&#8221; on the keyboard)</li>
		<li>Mark potential keepers (using the pick flag, &#8220;P&#8221; on the keyboard)</li>
		<li>Light, experimental development to test the viability of the keepers</li>
		<li>Un-flag bad picks (if development doesn&#8217;t work out; that&#8217;s &#8220;U&#8221; on the keyboard)</li>
		<li>Complete development
	<ol>
		<li>Label completed images ready to go to the gallery in green (green for gallery, get it?)</li>
		<li>Label experimental or fun images that will go to Flickr in blue (no mnemonic device for that one, I have a Post-It note on my monitor to remind me)</li>
	</ol></li>
	</ol>

	<p>I then I use either the Export to Photoshelter or <a href="http://regex.info/blog/lightroom-goodies/flickr">Jeffrey&#8217;s Export to Flickr</a> plugins within Lightroom to send the images where they need to go.</p>

	<p>You may notice that I don&#8217;t use star ratings at all. I used to use star ratings to differentiate between images to throw away, edit, or which had been completed, but since the advent of flagging and color labels I find that star ratings provide more specificity than I need. There are only rare occasions when I have a few photos that are very similar where I might use star ratings to indicate which ones I like more, just so I can remember later when I come back to them, but that isn&#8217;t part of my everyday workflow.</p>

	<h2>You&#8217;re Done!</h2>

	<p>You have absorbed my entire workflow and read all of my suggestions for using Lightroom&#8217;s sorting and cataloging tools. I hope that this helps you to keep your images in order!</p><div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2010/02/25/lightroom-organization-101/' addthis:title='Lightroom Organization 101 '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://singleservingphoto.com/2010/02/25/lightroom-organization-101/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>To DNG or Not to DNG</title>
		<link>http://singleservingphoto.com/2010/01/29/to-dng-or-not-to-dng/</link>
		<comments>http://singleservingphoto.com/2010/01/29/to-dng-or-not-to-dng/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 20:53:16 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[digital]]></category>
		<category><![CDATA[formats]]></category>
		<category><![CDATA[lightroom]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://singleservingphoto.com/?p=373</guid>
		<description><![CDATA[That is the question. Whether &#8216;tis nobler in the mind to wrangle the proprietary formats of your camera manufacturer, or to take arms against a sea of sidecar files, and by opposing, end them&#8230; But enough pseudo-Shakespeare for one post. There has been some chatter on the Interwebs lately concerning the DNG format: there are [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2010/01/29/to-dng-or-not-to-dng/' addthis:title='To DNG or Not to DNG '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[	<p><a href="http://singleservingphoto.com/wp-content/uploads/2010/01/dng_tm.gif" rel="lightbox[373]"><img src="http://singleservingphoto.com/wp-content/uploads/2010/01/dng_tm.gif" alt="DNG (tm)" title="DNG (tm)" width="163" height="127" class="alignright size-full wp-image-380" /></a></p>

	<p>That is the question.</p>

<blockquote>Whether &#8216;tis nobler in the mind to wrangle the proprietary formats of your camera manufacturer, or to take arms against a sea of sidecar files, and by opposing, end them&#8230;</blockquote>

	<p>But enough pseudo-Shakespeare for one post.</p>

	<p>There has been some chatter on the Interwebs lately concerning the <span class="caps">DNG</span> format: there are quality and archival concerns, whether it&#8217;s worth converting one&#8217;s entire library to the format, what the benefits might be, and whether one ought to care. Today, I weigh in. For what it&#8217;s worth.</p>

	<p>Coincidentally, I&#8217;ve used the same post title as Matt Kloskowski did in his take on the subject on <a href="http://www.lightroomkillertips.com/2010/to-dng-or-not-to-dng/">Lightroom Killer Tips</a>. Matt didn&#8217;t add a pseudo-Hamlet line, though, so I feel like I&#8217;ve done the headline proud.</p>

	<p>After the break, a complete rundown on <span class="caps">DNG</span>; trust me, it&#8217;s going to be technical <em>and</em> editorial.<span id="more-373"></span></p>

	<h2>What Is <span class="caps">DNG</span>?</h2>

	<p>Skip this section if you already know what <span class="caps">DNG</span> is, or read it if you want to know what I think <span class="caps">DNG</span> is.</p>

	<p><span class="caps">DNG</span> is the &#8220;Digital Negative&#8221; format, spearheaded by Adobe. It is an &#8220;open&#8221; format, and a &#8220;standard&#8221; in some sense, though not an official <span class="caps">ISO</span> standard (yet). When we say that the format is &#8220;open,&#8221; we mean that the precise contents of a <span class="caps">DNG</span> file, its byte offsets, containers, methods of generating and reading the files, and so forth, are publicly available. This is not the case with any other <span class="caps">RAW</span> file format out there. The ability to read and write manufacturers&#8217; <span class="caps">RAW</span> files (e.g. Canon, Nikon, et al.) is either licensed from the manufacturer or reverse-engineered.</p>

	<p>Adobe created the standard out of, apparently, a desire to &#8220;universalize&#8221; (if you will) the ubiquitous <span class="caps">RAW</span> file formats that all manufacturers have created for themselves, and to introduce a truly interoperable format that any software or hardware maker could employ without 1) wrangling many different formats at once, or 2) singling out particular users of particular products<sup><a href="http://singleservingphoto.com/2010/01/29/to-dng-or-not-to-dng/#footnote_0_373" id="identifier_0_373" class="footnote-link footnote-identifier-link" title="Like yours, for example.">1</a></sup>.</p>

	<p>The <span class="caps">DNG</span> format is based on many existing standards owned by prestigious &#8220;standards development organizations&#8221; (or <span class="caps">SDO</span>s), some of which you&#8217;ve probably heard of; they go by the names <span class="caps">TIFF</span>, <span class="caps">JPEG</span>, <span class="caps">XMP</span>, <span class="caps">IPTC</span>, <span class="caps">ICC</span>, <span class="caps">CIE</span>, and <span class="caps">ZIP</span>, to name a few. So, although the <span class="caps">DNG</span> format itself hasn&#8217;t been embraced by an <span class="caps">SDO</span> such as the International Standards Organization (<span class="caps">ISO</span>), it comprises previously standardized formats and is only a snippet of red tape away from being <span class="caps">SDO</span>-backed.</p>

	<p>You can read a lot of nitty gritty on the format itself explained by Barry Pearson on his <a href="http://www.barrypearson.co.uk/articles/dng/specification.htm"><span class="caps">DNG</span> Specification page</a>.</p>

	<h2>Why Would You Want to Use <span class="caps">DNG</span>?</h2>

	<p>There are three main reasons that are generally cited:</p>

	<ul>
		<li>Archivability (future-proof-ness, if you want)</li>
		<li>Interoperability (openness, we like to say)</li>
		<li>Efficiency (<acronym title="Your Mileage May Vary"><span class="caps">YMMV</span></acronym>, more on this later)</li>
	</ul>

	<p><strong>Archivability</strong> (which I&#8217;m pretty sure isn&#8217;t even a word) means that fifty years from now, when Canon owns the world and Nikon is completely extinct (<em>har har</em>), flying cars are a reality, and everyone has an army of robotic servants, your <span class="caps">DNG</span> files will still be supportable by manufacturers of hardware and software alike, because no secrets about it have been kept from the public.</p>

	<p><span class="pullquote pq-left">&#8220;[I]f Nikon decides to not support my raw files one day, there&#8217;s some 15 year old in his room that&#8217;ll code up a raw conversion program in his sleep.&#8221;<br />
&#8212;Matt Kloskowski</span></p>

	<p>Does this claim hold water? I don&#8217;t know, you can download free software right now that can read the Photoshop version 3.0 format, which is already decades old, so it seems to me that if the ability to parse a format is out there (even if it was obtained semi-legally or with much effort by third-parties), it will be difficult to lose it. Moreover, a format such as Canon <span class="caps">DNG</span> or Nikon <span class="caps">NEF</span> will likely remain supported by anyone you care about, or, as Matt Kloskowski put it, &#8220;&#8230;there&#8217;s some 15 year old in his room that&#8217;ll code up a raw conversion program in his sleep.&#8221; So I am not worried about losing access to my <span class="caps">RAW</span> image data.</p>

	<p><strong>Interoperability</strong> means the ability for you to take the same file and use it in many different places. Of course whether this is an advantage to you or not depends on the places where you want to be able to use your <span class="caps">RAW</span> files. For me, Lightroom is the only program on my entire computer that ever sees a <span class="caps">RAW</span> file. I suppose if I round-trip through Photoshop, Lightroom is going to pass the CR2 through Camera Raw, but we&#8217;re talking about two closely-integrated Adobe applications there; whatever formats one supports, the other is sure to. Photomatix is going to see <span class="caps">TIFF</span>s, on the web you&#8217;ll see <span class="caps">JPEG</span>s, etc.</p>

	<p>So why does interoperability matter? Adobe&#8217;s point in creating <span class="caps">DNG</span> is that it may matter in the future. If Great New Software X decides they can&#8217;t support your camera&#8217;s <span class="caps">RAW</span> format, and if you&#8217;ve converted it to <span class="caps">DNG</span> already, well, problem solved. Because Great New Software X will certainly support <span class="caps">DNG</span> given that the format is completely open and drop-dead simple (not to mention free) to implement, you have a much better chance of being able to drop your existing <span class="caps">DNG</span> images into any new, shiny tool.</p>

	<p><span class="pullquote pq-right">&#8220;I actually tried <span class="caps">ZIP</span> compression in prototype versions of <span class="caps">DNG</span>, but the compression ratio was much better using lossless <span class="caps">JPEG</span>.&#8221;&#8212;Thomas Knoll</span></p>

	<p>Okay, what about <strong>efficiency</strong>? This is where things get kind of cool. The Adobe <span class="caps">DNG</span> format stores the actual pixel image data in what is called <em>Huffmann lossless <span class="caps">JPEG</span></em> format. What that means is that <span class="caps">DNG</span> files can sometimes be as much as 20% more efficient at storing image data on disk than a comparable <span class="caps">RAW</span> format, thus <span class="caps">DNG</span> files may be as much as 20% smaller. Lossless <span class="caps">JPEG</span> is completely pristine; there is no image-altering compression done, so the data is totally preserved, albeit compacted. The Huffmann algorithm for this compression happens to be more efficient than <span class="caps">ZIP</span> when there are more than 8 bits of data per channel (<span class="caps">RAW</span> is 12 or 16), so the Huffmann algorithm was used.</p>

	<p>But here comes the kicker&#8230; Canon&#8217;s <span class="caps">RAW</span> (CR2) format already uses Huffmann lossless <span class="caps">JPEG</span> for its internal image data storage. So if you shoot Canon <span class="caps">RAW</span>, you will see no increase in data compression, since the data is stored in exactly the same way already. If you shoot in Nikon <span class="caps">RAW</span> (<span class="caps">NEF</span>), you will immediately see a 20% decrease in file size and no change in image quality.</p>

	<p>For non-Canon shooters, that&#8217;s probably the most compelling reason to convert to <span class="caps">DNG</span> right now, which I should point out <em>Lightroom can do automatically for you at import time</em>. You&#8217;ve seen the option, right? There are a couple of ways to convert to <span class="caps">DNG</span> in Lightroom, and there are <a href="http://thelightroomlab.com/2009/06/converting-digital-camera-raw-files-to-the-dng-format-using-adobe-photoshop-lightroom/">three of them explained on TheLightroomLab.com</a>.</p>

	<h2>Sidecars Aren&#8217;t Just for Kids</h2>

	<p><a href="http://en.wikipedia.org/wiki/File:Vespa_sidecar.png" rel="lightbox[373]"><img src="http://singleservingphoto.com/wp-content/uploads/2010/01/697px-Vespa_sidecar-300x257.png" alt="Photo by Rastaman3000" title="Vespa" width="300" height="257" class="alignright size-medium wp-image-411" /></a></p>

	<p>No, seriously, most motorcycle sidecars could definitely seat an adult&#8230;</p>

	<p>Joking aside, what we&#8217;re talking about are metadata &#8220;sidecar&#8221; files, typically named something like <span class="caps">IMG</span>_0195.xmp and so-called because they are saved alongside your original <span class="caps">RAW</span> image files, like the sidecar on a motorcycle. Sidecar files have been around since the invention of metadata and metadata libraries. The <span class="caps">XMP</span> format for storing image metadata in a sidecar file was developed by (guess who&#8230;) Adobe. <span class="caps">XMP</span> is necessary because the metadata support within <span class="caps">RAW</span> file formats and other imaging formats may comprise only a subset of what, for example, Lightroom is able to save and search.</p>

	<p>Certain formats such as <span class="caps">PSD</span>, <span class="caps">TIFF</span>, and <span class="caps">JPEG</span> have pretty flexible metadata support in them already. <span class="caps">DNG</span> is no different. The &#8220;sidecar bonus&#8221; of the <span class="caps">DNG</span> format is that when you&#8217;re using <span class="caps">DNG</span>, you don&#8217;t need sidecars.</p>

	<p>But who does, anyway? The fact is, Lightroom stores all of your image metadata in its own catalog. This is done 1) to make it quickly searchable and editable, and 2) to centralize it. If you want to write metadata to disk for certain files (or the whole catalog), then Lightroom will decide, based on the source format of each image, whether to save it directly into the file or to create an <span class="caps">XMP</span> sidecar file.</p>

	<p>The purpose of <span class="caps">XMP</span> is to give your image metadata a place to live when the image file itself can&#8217;t accommodate it. So why would you need this ability? Two reasons. (Assuming your <span class="caps">RAW</span> files are in <span class="caps">NEF</span>, CR2, or similar; non-<span class="caps">DNG</span>).</p>

	<ol>
		<li>If you share images with other people who use Lightroom and you want them to be able to see what you have done in the Develop module, as well as the <span class="caps">IPTC</span> tags, you will need to send them <span class="caps">XMP</span> sidecar files. This is preferable to sending your entire Lightroom catalog or creating a new one to house only the images you are sending.</li>
		<li>In the event of a catastrophic disaster where your Lightroom catalog backups are corrupted, you can restore 95% of your data using the source <span class="caps">RAW</span> image files and associated <span class="caps">XMP</span> sidecar files. What you would lose is <em>virtual copies</em>, your <em>history</em>, and any <em>collections</em>. All edits and other settings are stored in the <span class="caps">XMP</span> files.</li>
	</ol>

	<p>There are some major caveats here, though.</p>

	<ol>
		<li>When you&#8217;re sharing images, you can always <em>export them</em> to <span class="caps">DNG</span>, which makes <span class="caps">XMP</span> unnecessary.</li>
		<li>In the event of a catastrophic disaster, you&#8217;ll only have <span class="caps">XMP</span> files if you&#8217;ve previously selected batches of images within Lightroom and triggered the &#8220;Export Metadata to Files&#8221; function. Presumably you would carry out this procedure on images you have finished editing as part of your backup strategy. For the record, I do not do this.</li>
	</ol>

	<h2>Conclusions</h2>

	<p>So where does this leave us as far as <span class="caps">DNG</span> goes? Should we all run back to our computers right now and convert our whole libraries to <span class="caps">DNG</span> format? Once again, here are the major advertised benefits of the <span class="caps">DNG</span> format:</p>

	<ol>
		<li>Archival (future-proof)</li>
		<li>Interoperable (widely compatible)</li>
		<li>Efficient (storage-wise, at least)</li>
		<li>All-inclusive (obsoletes <span class="caps">XMP</span> sidecars)</li>
	</ol>

	<p>It seems to me that the &#8220;archival&#8221; and &#8220;interoperable&#8221; characteristics of the format are bonuses, and as a supporter of free and open standards, I tip my hat to Adobe simply on principle. These characteristics don&#8217;t, however, increase the immediate convenience or reliability of my workflow, nor do I think the archival nature of the <span class="caps">DNG</span> format will have a measurable impact on my workflow in the coming years.</p>

	<p>Since I am a Canon shooter, my Canon <span class="caps">RAW</span> (CR2) files already compress image data using the same <em>Huffmann</em> lossless <span class="caps">JPEG</span> system that <span class="caps">DNG</span> does, so I get no benefit there. If you use Nikon, et al., you may see an immediate storage benefit from converting your library to <span class="caps">DNG</span>.</p>

	<p>Perhaps the most compelling reason to convert your library to <span class="caps">DNG</span>, or to start using <span class="caps">DNG</span> for your imports going forward, is the fact that <span class="caps">DNG</span> files are capable of storing all Lightroom-specific metadata directly within themselves, without the use of <span class="caps">XMP</span> sidecar files. If you are diligent in writing metadata to the files when you are through editing them, those files then fully encapsulate all the work that you&#8217;ve done, in one place, suitable for backup.</p>

	<p>Even in the event that you lost your Lightroom catalog, you could still restore the final, edited versions of the images (which is where all of your hard work goes, after all), as well as tags and other helpful metadata. The only things you&#8217;d lose are virtual copies, history (of limited long-term utility, anyway), and collections (which can be rebuilt without nearly as much work as re-developing all your images).</p>

	<p>To <span class="caps">DNG</span> or not to <span class="caps">DNG</span>? I think I will.</p><ol class="footnotes"><li id="footnote_0_373" class="footnote">Like yours, for example.</li></ol><div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2010/01/29/to-dng-or-not-to-dng/' addthis:title='To DNG or Not to DNG '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://singleservingphoto.com/2010/01/29/to-dng-or-not-to-dng/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally, Photoshop Lightroom 1.1!</title>
		<link>http://singleservingphoto.com/2007/06/27/finally-photoshop-lightroom-11/</link>
		<comments>http://singleservingphoto.com/2007/06/27/finally-photoshop-lightroom-11/#comments</comments>
		<pubDate>Wed, 27 Jun 2007 18:01:46 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[lightroom]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://www.singleservingphoto.com/2007/06/27/finally-photoshop-lightroom-11/</guid>
		<description><![CDATA[Adobe has finally released the first upgrade package for Photoshop Lightroom, which brings us to version 1.1. I say &#8220;finally&#8221; because this upgrade introduces at least one feature that we hoped against hope would be in the first release, the ability to merge libraries, among other enhancements. First, if you have Lightroom and it hasn&#8217;t [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2007/06/27/finally-photoshop-lightroom-11/' addthis:title='Finally, Photoshop Lightroom 1.1! '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[	<p><img src="/articles/images/lightroom.jpg" style="float: left;" alt="Photoshop Lightroom 1.1" /></p>

	<p>Adobe has finally released the first upgrade package for Photoshop Lightroom, which brings us to version 1.1. I say &#8220;finally&#8221; because this upgrade introduces at least one feature that we hoped against hope would be in the first release, the ability to <em>merge libraries</em>, among other enhancements.</p>

	<p>First, if you have Lightroom and it hasn&#8217;t already popped up and told you to <a href="http://www.adobe.com/products/photoshoplightroom">download the upgrade</a>, you should seriously click over there and do that.<span id="more-130"></span></p>

	<p>When I went out to <a href="http://www.fisheyegallery.com/Places/Yosemite">Yosemite National Park</a> and <a href="http://www.fisheyegallery.com/Places/SantaCruz">Santa Cruz</a>, I brought my laptop with Lightroom on it. Because my home Lightroom library (now called a catalog in v1.1 and also in the rest of this post) is tied to photos saved in certain places on my home network and also because it&#8217;s gigantic, I started a fresh new catalog on my laptop. It was great to be able to use Lightroom to import the <span class="caps">RAW</span> files, do some work on them, see which ones were going to work out, even edit a few to completion while on the road.</p>

	<p>However, upon returning home, I had two Lightroom catalogs. Lightroom has always supported switching between catalogs, which is nice, but never <em>merging</em> them. That feature was supposed to have been in the 1.0 release, but the developers decided it wasn&#8217;t up to snuff, so they nixed it until it was more fleshed out. I was very excited to see the new options available in version 1.1 for importing photos from one catalog into another, satisfying my every desire. Last night I imported all of my Yosemite and Santa Cruz photos into my primary catalog, which took a good ten minutes to process on my older G4, but I now have a nice, solid, unified catalog.</p>

	<p>As a workflow tool, it&#8217;s excellent to be able to create a new catalog on, say, your laptop, take it where you&#8217;re going, do what you need to do, and then be able to merge that into your home catalog when you return. Did I mention that the &#8220;import from another catalog&#8221; feature imports only the photos you select and puts them where you want them (or leaves them where they are), just like importing from anywhere else? They thought of everything.</p>

	<p>There are a variety of other new features, including a <em>really slick</em> &#8220;spray can&#8221; tool (replacing the rubber stamp) within the Library module that allows you to &#8220;spray&#8221; photos with keywords, ratings, flags, labels, develop presets, metadata presets, or rotations. As soon as I saw it I actually giggled a little bit. Out loud. I&#8217;m a huge nerd.</p>

	<p>To see what else is new and review known issues, read the <a href="http://www.adobe.com/special/photoshop/Lightroom_ReadMe.pdf">Lightroom 1.1 release notes</a> (pdf).</p><div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2007/06/27/finally-photoshop-lightroom-11/' addthis:title='Finally, Photoshop Lightroom 1.1! '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://singleservingphoto.com/2007/06/27/finally-photoshop-lightroom-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Many Bits? Is Eight Enough?</title>
		<link>http://singleservingphoto.com/2007/06/06/how-many-bits-is-eight-enough/</link>
		<comments>http://singleservingphoto.com/2007/06/06/how-many-bits-is-eight-enough/#comments</comments>
		<pubDate>Thu, 07 Jun 2007 02:28:52 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Featured Posts]]></category>
		<category><![CDATA[editing]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://www.singleservingphoto.com/2007/06/06/how-many-bits-is-eight-enough/</guid>
		<description><![CDATA[If you are serious about photography, you should answer this question very carefully: Is eight bits of color depth enough? Today I will uncover some truths about bit depth; explain what it means, demonstrate what it can do for you, and answer the question that gets so many photographers hot under the collar: 8-bit or [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2007/06/06/how-many-bits-is-eight-enough/' addthis:title='How Many Bits? Is Eight Enough? '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[	<p>If you are serious about photography, you should answer this question very carefully: <em>Is eight bits of color depth enough?</em> Today I will uncover some truths about bit depth; explain what it means, demonstrate what it can do for you, and answer the question that gets so many photographers hot under the collar: <em>8-bit or 16-bit?</em></p>

	<p>It&#8217;s never as simple as it sounds.<span id="more-123"></span></p>

	<h2>What Is Bit Depth?</h2>

	<p>If you already know what bit depth is all about, you can skip this section. Without getting into too much technical detail, bit depth describes how many colors (or shades of gray) an image is capable of storing (for the sake of simplicity, I will be discussing grayscale images in this article). Eight bits of color depth means that an eight-digit binary number is available to store the value of each pixel in the image<sup><a href="http://singleservingphoto.com/2007/06/06/how-many-bits-is-eight-enough/#footnote_0_123" id="identifier_0_123" class="footnote-link footnote-identifier-link" title="In a color image, eight bits are used to store each of the red, green, and blue values for each pixel, which is why you sometimes see images referred to as &amp;#8220;24-bit.&amp;#8221; An 8-bit color image and a 24-bit color image are the same thing.">1</a></sup>. With eight digits in binary you can count up to 255. Including zero, that gives you 256 available shades of gray for each pixel in an 8-bit grayscale image. Zero is black and 255 is white. Making sense?</p>

	<p>As you might predict, a 16-bit image gives you a 16-digit binary number to store your pixel information. With a 16-digit binary number, you can count up to 65,535! Including zero, that gives you 65,536 shades of gray to work with. Clearly there are immediate theoretical advantages to using 16 bits of color depth in photography.</p>

	<h2>The Case for More Depth</h2>

	<p>If all cameras captured images with eight bits of depth, there would be no debate; converting from an 8-bit image to a 16-bit image doesn&#8217;t do much for you, as I&#8217;ve casually proven in a few tests (which I won&#8217;t bore you with). However, cameras that capture in <span class="caps">RAW</span> format (which includes basically all <span class="caps">DSLR</span> cameras today), capture about 12 bits per pixel of data<sup><a href="http://singleservingphoto.com/2007/06/06/how-many-bits-is-eight-enough/#footnote_1_123" id="identifier_1_123" class="footnote-link footnote-identifier-link" title="That means 12 bits each for red, green, and blue per pixel, roughly, but the specifics of different sensors and the exact math is not important for this discussion.">2</a></sup>.</p>

	<p>The savvy among you will already have thought, <em>But 99% of printers today can only output eight bits, so who cares!</em> You are correct.</p>

	<p>But you&#8217;re also wrong.</p>

	<p>The trick to this bit depth discussion is that you don&#8217;t need the extra bits to print your image. In fact, if you took pristine photos in 8-bit <span class="caps">JPEG</span> and printed them without ever touching a pixel, you&#8217;d be fine; you&#8217;d lose nothing. But I suspect most of you are photographers and you know that post-processing is increasingly important, if not necessary. It is for the <em>editing</em> that you need more bits. Let me explain why.</p>

	<h2>The Bit Crusher (aka Photoshop)</h2>

	<p>When I was discussing <a href="http://www.singleservingphoto.com/2007/06/03/histograms-huh/">histograms</a>, I mentioned in passing that making changes using <em>e.g.</em> levels or curves causes Photoshop (or the editor of your choice) to expand or compress the range of tones in the image, redistributing their values.</p>

	<p>That sounds a lot more complicated than it is, which is why I like to use illustrations. Below, you will see a very subtle gradient that proceeds from a gray value of 90 on the left to 160 on the right. As you should be able to tell, there is no pure black and no pure white in this image.</p>

	<p><img src="/articles/8vs16/Figure-1.jpg" alt="" width="600" height="100" /></p>

	<p>In the 8-bit space, if I use levels to expand the tonal range of the image, you will see that a lot of dithering and banding occurs. What Photoshop is doing, very simply, is making the gradient start at a pixel value of zero and end at a pixel value of 255. The values of the intermediate pixels are then redistributed.</p>

	<p>If you look closely at the image below you will see that the results aren&#8217;t too great, and it&#8217;s because there are a limited number of gray tones to choose from when averaging out the intermediate pixel values.</p>

	<p><img src="/articles/8vs16/Figure-2.jpg" alt="" width="600" height="100" /></p>

	<p>Here is the center area of the above image scaled by 300% so you can see exactly what&#8217;s going on.</p>

	<p><img src="/articles/8vs16/Figure-3.jpg" alt="" width="600" height="100" /></p>

	<p>So what happens if you have 16 bits? To find out, I created a 16-bit image exactly the same size as the ones above, drew an identical gradient, and performed the same levels adjustment (numerically, to be sure it was done precisely the same way). Because Photoshop has <em>256 times</em> more gray values to choose from when redistributing the intermediate pixels, the gradient still looks pretty nice. In order to show you the result, I had to save it as an 8-bit <span class="caps">JPEG</span>, but as you can see below, converting to eight bits after doing the edit produces a noticeably better result.</p>

	<p><img src="/articles/8vs16/Figure-4.jpg" alt="" width="600" height="100" /></p>

	<p>Again, here is the middle section of the above image scaled to 300%.</p>

	<p><img src="/articles/8vs16/Figure-5.jpg" alt="" width="600" height="100" /></p>

	<p>I have racked my brain for a couple of days trying to come up with a lucid explanation for why editing in 16 bits and converting to eight produces a better result than editing in eight bits directly, but I&#8217;m no mathematician and regardless of the mechanics behind it, this workflow obviously delivers.</p>

	<h2>Putting 16 Bits to Good Use</h2>

	<p>$random:right$</p>

	<p>I spent a good deal of time putting this article together and building these examples, and I think I&#8217;ve proven almost without a shadow of a doubt that editing in a 16-bit space is noticeably beneficial. So you would probably think that I have a hard drive full of 16-bit Photoshop files, but you&#8217;d be wrong.</p>

	<p>As I hope I have demonstrated in the examples above, 8-bit files are most vulnerable to what I call &#8220;broad tonal changes,&#8221; which describes levels, curves, or any adjustment that expands or compresses your tonal range. These are the types of edits that would cause your 8-bit histogram to be divided into many separate lines, as I showed in my <a href="http://www.singleservingphoto.com/2007/06/03/histograms-huh/">histograms article</a>. For that reason, those types of edits should be performed in the largest bit depth possible within your workflow to prevent banding and aliasing.</p>

	<p>I like to make my broad tonal changes with the Develop module within Lightroom while the file is still a native 12-bit <span class="caps">RAW</span>. Once the histogram is compressed or expanded to my satisfaction, I will drop it into an 8-bit <span class="caps">PSD</span> for local edits if I have to, and save it that way. If, somewhere down the line, 16-bit printing becomes the norm, I can always re-process those files as 16-bit <span class="caps">PSD</span>s and print them. Somehow, though, I think I&#8217;ll be on to bigger and better things by then. One can hope, at least, right?</p>

	<p>$random:left$</p>

	<p>The 8-bit versus 16-bit debate is one steeped in personal preference, and somehow has mutated into a rather divisive topic. I hope I&#8217;ve shown that no matter what your workflow preferences may be, you can benefit from the flexibility of 16-bit editing without filling your hard drives or waiting for your computer to crunch huge files.</p>

	<p>I&#8217;d love to hear about your personal workflow preferences, too. Just leave a comment or drop me an e-mail!</p><ol class="footnotes"><li id="footnote_0_123" class="footnote">In a color image, eight bits are used to store each of the red, green, and blue values for each pixel, which is why you sometimes see images referred to as &#8220;24-bit.&#8221; An 8-bit color image and a 24-bit color image are the same thing.</li><li id="footnote_1_123" class="footnote">That means 12 bits each for red, green, and blue per pixel, roughly, but the specifics of different sensors and the exact math is not important for this discussion.</li></ol><div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2007/06/06/how-many-bits-is-eight-enough/' addthis:title='How Many Bits? Is Eight Enough? '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://singleservingphoto.com/2007/06/06/how-many-bits-is-eight-enough/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Automated Workflow II</title>
		<link>http://singleservingphoto.com/2007/04/19/automated-workflow-ii/</link>
		<comments>http://singleservingphoto.com/2007/04/19/automated-workflow-ii/#comments</comments>
		<pubDate>Fri, 20 Apr 2007 02:26:20 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://www.singleservingphoto.com/2007/04/19/automated-workflow-ii/</guid>
		<description><![CDATA[In the last chapter of my Automated Workflow series, I showed you how to use some neat scripting tricks to apply watermarks to your photos automatically. In this chapter, I&#8217;m going to talk about naming and organizing photos and show you how to set up some scripts to make things easier for you. You have [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2007/04/19/automated-workflow-ii/' addthis:title='Automated Workflow II '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[	<p>In the <a href="http://www.singleservingphoto.com/2007/04/15/automated-workflow-i/">last chapter of my Automated Workflow series</a>, I showed you how to use some neat scripting tricks to apply watermarks to your photos automatically. In this chapter, I&#8217;m going to talk about naming and organizing photos and show you how to set up some scripts to make things easier for you.</p>

	<p>You have a bunch of pretty photos; shouldn&#8217;t they have pretty names?<span id="more-104"></span></p>

	<p>I always name my photographs. Even if the names are sometimes trite or clichéd, I think that any photo that has worked its way into the gallery deserves a name. When I put photos into <a href="http://www.fisheyegallery.com">my gallery</a>, I like to name the files themselves with the name of the photograph so that the <span class="caps">URL</span>s are pretty. It makes more sense to see a <span class="caps">URL</span> like <code>/Places/Chicago/MillenniumPark.jpg.html</code> than something ugly like <code>/plc/chg-il/chg-mp-01.jpg</code>, don&#8217;t you think?</p>

	<p>One thing I hate is to do things more than once. Isn&#8217;t that why we have computers? &#8220;So,&#8221; I thought to myself, &#8220;if I&#8217;m going to enter the names of the photos into the <code>Title</code> field of their metadata anyway,&#8221; which I do, &#8220;shouldn&#8217;t I be able to read that out somehow and name the file with it?&#8221; Yes, yes I can. This is because I am a nerd. It is this power that I will give you today. Nerd power.</p>

	<h2>Getting the Programs</h2>

	<p>First, you&#8217;re going to need a working installation of <a href="http://www.macports.org">MacPorts</a>. In my <a href="http://www.singleservingphoto.com/2007/04/15/automated-workflow-i/">previous article</a> I explained how to get that working, so go over that part again if you need to. I will assume you have it installed, even if you didn&#8217;t install the ports I talked about last time.</p>

	<p>Now install a program called <code>exiv2</code>, which is a terminal utility for reading Exif and other data out of (primarily) <span class="caps">JPEG</span> files. Installing it should be as easy as opening up your terminal program of choice and typing:</p>

	<div class="code text" style="font-family: monospace;">
airborne@Auriga ~ $ sudo port install exiv2

&nbsp;</div>

	<p>Remember, you&#8217;re only typing the part after the dollar sign. You will probably be prompted for your password and then it&#8217;ll run off and download things and install them for you. Once it&#8217;s done, make sure it worked by running the program:</p>

	<div class="code text" style="font-family: monospace;">
airborne@Auriga ~ $ exiv2<br />
exiv2: An action must be specified<br />
exiv2: At least one file is required<br />
Usage: exiv2 [ options ] [ action ] file ...<br />
<br />
Manipulate the Exif metadata of images.

&nbsp;</div>

	<p>It should look more or less like that. If you get a <code>-bash: exiv2: command not found</code> error, that&#8217;s not good, so you should look back at what MacPorts told you during the installation to find out what went wrong. Now that you have <code>exiv2</code> installed, you can use it to read information out of files. Here is what the basic output of <code>exiv2</code> looks like if you don&#8217;t specify any extra options:</p>

	<div class="code text" style="font-family: monospace;">
airborne@Auriga ~ $ exiv2 24Jun06-03.jpg <br />
Filename&nbsp; &nbsp; &nbsp; &nbsp; : 24Jun06-03.jpg<br />
Filesize&nbsp; &nbsp; &nbsp; &nbsp; : 147491 Bytes<br />
Camera make&nbsp; &nbsp; &nbsp;: Canon<br />
Camera model&nbsp; &nbsp; : Canon EOS 10D<br />
Image timestamp : 2006:06:24 17:45:27<br />
Image number&nbsp; &nbsp; : <br />
Exposure time&nbsp; &nbsp;: 1/90 s<br />
Aperture&nbsp; &nbsp; &nbsp; &nbsp; : F11<br />
Exposure bias&nbsp; &nbsp;: 0<br />
Flash&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;: No<br />
Flash bias&nbsp; &nbsp; &nbsp; : <br />
Focal length&nbsp; &nbsp; : 44.0 mm<br />
Subject distance: <br />
ISO speed&nbsp; &nbsp; &nbsp; &nbsp;: 200<br />
Exposure mode&nbsp; &nbsp;: <br />
Metering mode&nbsp; &nbsp;: Matrix<br />
Macro mode&nbsp; &nbsp; &nbsp; : <br />
Image quality&nbsp; &nbsp;: <br />
Exif Resolution : <br />
White balance&nbsp; &nbsp;: <br />
Thumbnail&nbsp; &nbsp; &nbsp; &nbsp;: None<br />
Copyright&nbsp; &nbsp; &nbsp; &nbsp;: Copyright (c) 2006 Aaron Bieber<br />
Exif comment&nbsp; &nbsp; : 

&nbsp;</div>

	<p>But wait, there&#8217;s no image name in there, only the filename! By default, <code>exiv2</code> only prints out the Exif data, not any of the <span class="caps">IPTC</span> data, which is where things like the image&#8217;s creator, <span class="caps">URL</span>, title, etc., are stored. We can tell <code>exiv2</code> to print out <span class="caps">IPTC</span> data by using the <code>-pi</code> switch. By the way, you can find out what else it can do by asking it for help with <code>exiv2 --help</code>.</p>

	<div class="code text" style="font-family: monospace;">
airborne@Auriga ~ $ exiv2 -pi 24Jun06-03.jpg <br />
Iptc.Application2.RecordVersion&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Short&nbsp; &nbsp; &nbsp; &nbsp;1&nbsp; 2<br />
Iptc.Application2.ObjectName&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;String&nbsp; &nbsp; &nbsp;17&nbsp; Onward, Upward II<br />
Iptc.Application2.Keywords&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;String&nbsp; &nbsp; &nbsp;13&nbsp; portrait ilva<br />
Iptc.Application2.Byline&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;String&nbsp; &nbsp; &nbsp;12&nbsp; Aaron Bieber<br />
Iptc.Application2.Copyright&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String&nbsp; &nbsp; &nbsp;31&nbsp; Copyright (c) 2006 Aaron Bieber

&nbsp;</div>

	<h2>Shelling out the Name!</h2>

	<p>You can see that this <span class="caps">JPEG</span> has been given a title (in the <span class="caps">IPTC</span> spec. they call it ObjectName), a couple of keywords, a byline (the creator&#8217;s name, usually), and a copyright notice. What we want is just the value of ObjectName. We can get this with a piece of shell scripting like so:</p>

	<div class="code bash" style="font-family: monospace;">
exiv2 -pi <span style="color: #ff0000;">&quot;a-file-with-metadata.jpg&quot;</span> | grep ObjectName | cut -c <span style="color: #cc66cc;">61</span>- | tr -<span style="color: #000066;">cd</span> <span style="color: #ff0000;">&quot;[:alpha:]&quot;</span>

&nbsp;</div>

	<p>I&#8217;m not going to explain how this works; the fun of <code>bash</code> is looking up each command and figuring out how it all comes together. If you want to figure it out, I&#8217;m confident that you will. If not, that&#8217;s okay, you can still use it! Suffice it to say, that line should output <em>only</em> the title of the image, or nothing if there isn&#8217;t one. We need to save that into a little script so that it can be given a filename to work on and so it can check to make sure everything works the way it&#8217;s supposed to. To that end, here is the script:</p>

	<div class="code bash" style="font-family: monospace;">
<span style="color: #808080; font-style: italic;">#!/bin/sh</span><br />
<br />
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#91;</span> ! -z <span style="color: #ff0000;">&quot;$1&quot;</span> &amp;&amp; -e <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span>; <span style="color: #b1b100;">then</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">EXIV=</span><span style="color: #ff0000;">&quot;/opt/local/bin/exiv2&quot;</span><br />
&nbsp; &nbsp; <span style="color: #0000ff;">TITLE=</span>`<span style="color: #0000ff;">$EXIV</span> -pi <span style="color: #ff0000;">&quot;${1}&quot;</span> <span style="color: #cc66cc;">2</span>&gt;/dev/null | grep ObjectName | cut -c <span style="color: #cc66cc;">61</span>- | tr -<span style="color: #000066;">cd</span> <span style="color: #ff0000;">&quot;[:alpha:]&quot;</span>`;<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#91;</span> -z <span style="color: #ff0000;">&quot;$TITLE&quot;</span> <span style="color: #66cc66;">&#93;</span>; <span style="color: #b1b100;">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">echo</span> <span style="color: #ff0000;">&quot;There is no title in the metadata.&quot;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">exit</span> <span style="color: #cc66cc;">1</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">else</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; `mv <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #ff0000;">&quot;$TITLE.jpg&quot;</span>`;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000066;">exit</span> <span style="color: #cc66cc;">0</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">fi</span><br />
<span style="color: #b1b100;">else</span><br />
&nbsp; &nbsp; <span style="color: #000066;">echo</span> <span style="color: #ff0000;">&quot;You must supply a filename and the file must exist.&quot;</span><br />
&nbsp; &nbsp; <span style="color: #000066;">exit</span> <span style="color: #cc66cc;">0</span><br />
<span style="color: #b1b100;">fi</span>

&nbsp;</div>

	<p><strong>Note:</strong> You may have to change the path to <code>exiv2</code> in the part that starts <code>EXIV=</code> if MacPorts installed it in a different place than where it is on my system. In all likelihood it&#8217;s in the same place, but you can check by running <code>which exiv2</code>. Use the path printed by that command in your script.</p>

	<p>This script takes the filename of your photograph as an argument and renames the file with that name. It also removes any non-alphanumeric characters from the title to make sure the filename will be valid. If you wanted to change spaces into hyphens instead of removing them or something else along those lines, you&#8217;d want to examine and alter the <code>tr</code> portion of the long command at the beginning.</p>

	<p>Save that script into a file and make sure it&#8217;s executable by running <code>chmod u+x yourscriptname</code>, and you&#8217;re done!</p>

	<h2>Making a Droplet</h2>

	<p>Well, almost. Wouldn&#8217;t it be handy to be able to drag and drop a bunch of photos onto an icon and have this thing rename them all at once? You bet it would. We can easily make an AppleScript droplet that will do that, just like I showed you in the previous chapter! Here&#8217;s the code:</p>

	<div class="code applescript" style="font-family: monospace;">
<span style="color: #b1b100;">on</span> <span style="color: #000066;">open</span> theObjects<br />
&nbsp; &nbsp; <span style="color: #b1b100;">repeat</span> <span style="color: #b1b100;">with</span> theObject <span style="color: #b1b100;">in</span> theObjects<br />
&nbsp; &nbsp; &nbsp; &nbsp; do shell <span style="color: #b1b100;">script</span> <span style="color: #ff0000;">&quot;~/bin/namewithtitles &quot;</span> &amp; <span style="color: #ff0000;">&quot;'&quot;</span> &amp; ¬<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#40;</span>POSIX path <span style="color: #b1b100;">of</span> theObject <span style="color: #000066;">as</span> string<span style="color: #66cc66;">&#41;</span> &amp; <span style="color: #ff0000;">&quot;'&quot;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">end</span> <span style="color: #b1b100;">repeat</span><br />
<span style="color: #b1b100;">end</span> <span style="color: #000066;">open</span>

&nbsp;</div>

	<p>Hit Save As and make sure to select &#8220;application&#8221; as the type and also make sure that the &#8220;Startup Screen&#8221; option is unchecked. You really don&#8217;t want that one.</p>

	<p>If all has gone according to plan, you should be able to drag photos onto the droplet and they should be renamed for you! Of course, they must have title information in the <span class="caps">IPTC</span> header; Lightroom calls the field Title and will export that data with your images automatically.</p>

	<p>If you felt the urge, you could integrate these AppleScript commands into the post-processing script for Lightroom that I showed you how to set up in the previous chapter. I will leave that as a challenge for the adventurous reader.</p>

	<p>Until next time, fellow photo-nerds.</p><div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2007/04/19/automated-workflow-ii/' addthis:title='Automated Workflow II '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://singleservingphoto.com/2007/04/19/automated-workflow-ii/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automated Workflow I</title>
		<link>http://singleservingphoto.com/2007/04/15/automated-workflow-i/</link>
		<comments>http://singleservingphoto.com/2007/04/15/automated-workflow-i/#comments</comments>
		<pubDate>Mon, 16 Apr 2007 01:41:27 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[lightroom]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[workflow]]></category>

		<guid isPermaLink="false">http://www.singleservingphoto.com/2007/04/15/automated-workflow-i/</guid>
		<description><![CDATA[Do you find yourself performing the same mundane tasks over and over? Exporting photos, sorting them, watermarking them, renaming the files, applying metadata, uploading them, etc., etc. These kinds of tasks are simply ripe for automation. Make the computer do all the work, that&#8217;s my mantra. In this series of articles, I will discuss the [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2007/04/15/automated-workflow-i/' addthis:title='Automated Workflow I '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></description>
			<content:encoded><![CDATA[	<p>Do you find yourself performing the same mundane tasks over and over? Exporting photos, sorting them, watermarking them, renaming the files, applying metadata, uploading them, etc., etc. These kinds of tasks are simply <em>ripe</em> for automation. Make the computer do all the work, that&#8217;s my mantra.</p>

	<p>In this series of articles, I will discuss the down and dirty mechanics of how I&#8217;ve automated a good deal of my workflow. I&#8217;ll probably continue to add chapters to this series as I figure out new methods, but hopefully you can start saving time right off the bat with some of these tips!</p>

	<p>Today&#8217;s topic is <strong>exporting</strong> and <strong>watermarking</strong>.<span id="more-103"></span></p>

	<p>For starters, I&#8217;m using a Mac and I&#8217;m using Adobe Lightroom 1.0. If you use different software or a different platform, a lot of this probably won&#8217;t work for you. If you manage to port some of my automation processes to a different platform or software package, please share with me!</p>

	<p>What we&#8217;re going to do together right now is build an AppleScript application that acts as a <em>droplet</em>, which allows you to (as you might expect) <em>drop</em> image files onto it to watermark them. This droplet takes all of the overhead of Photoshop and the monotony of manual labor out of the watermarking process, which I think you will come to love as much as I do.</p>

	<p>As a bonus, we can set up Adobe Lightroom to use this droplet as a post-processing filter (and I&#8217;ll show you how!), so the activity of applying a custom watermark to your images becomes tightly integrated into the activity of exporting from Lightroom. If you don&#8217;t have Lightroom, or don&#8217;t even <em>like</em> Lightroom, you can still use the AppleScript droplet to watermark a bunch of photos at once.</p>

	<p>The first step is&#8230;</p>

	<h2>Building the Watermark</h2>

	<p>The first step in automating the watermark process is to have a watermark graphic you want to use. You will need a standalone graphic file that will work in any photo scenario. In other words, if your watermark uses transparency and the text is white, you probably won&#8217;t be able to read it if it&#8217;s applied to a very light photo.</p>

	<p>For my watermark, I have gone with a very small and very controlled image, which I&#8217;ve named simply <code>copyright.gif</code>:</p>

	<p><img src="/articles/AutomationI/copyright.gif" alt="" width="310" height="9" /></p>

	<p>The only technical considerations when composing a watermark image are:</p>

	<ul>
		<li>It should be narrower than the smallest for-web image you will export, so that it isn&#8217;t cut off. I always export my images for this blog at 600 pixels wide, so I&#8217;m safe with this watermark (which is 310 pixels wide).</li>
		<li>It should be legible on any image, regardless of the image&#8217;s lightness or darkness. To solve this problem, I&#8217;ve used a black background. I experimented with different approaches and found this one to be the most reliable, even if not always the most attractive.</li>
	</ul>

	<p>Now that we have a workable watermark image, it&#8217;s time to&#8230;</p>

	<h2>Install ImageMagick</h2>

	<p>ImageMagick is a command-line image manipulation suite originally developed in the Linux community. It&#8217;s free, powerful, and could serve you in more ways than watermarking, so let&#8217;s get this thing installed! The easiest way to install ImageMagick is through the package management system called MacPorts (formerly known as DarwinPorts).</p>

	<p>Pop over to <a href="http://www.macports.org/">MacPorts</a> and download the latest version. You install MacPorts in the same way you&#8217;d install any other Mac application: open the .dmg file, run the installer, wait a while, and there you have it. Now that MacPorts is installed, it&#8217;s time to delve into darker territories: <strong>the terminal</strong>. If you are unfamiliar with the terminal, don&#8217;t be too intimidated; I&#8217;ll show you exactly what to type.</p>

	<p>Open up the terminal (the default Terminal application or your choice of <a href="http://iterm.sf.net">replacement terminal</a>) and make sure MacPorts is working properly:</p>

	<div class="code text" style="font-family: monospace;">
airborne@Auriga ~ $ port

&nbsp;</div>

	<p><em>Note that your prompt will look different than mine; the only part you need to type is</em> <code>port</code>. Press return and, if everything has gone according to plan, you should see the default output of the <code>port</code> program:</p>

	<div class="code text" style="font-family: monospace;">
Usage: port [-vdqfonasbcktu] [-D portdir] action [actionflags]<br />
[[portname|pseudo-portname|port-url] [@version] [+-variant]... [option=value]...]...<br />
<br />
&quot;port help&quot; or &quot;man 1 port&quot; for more information.

&nbsp;</div>

	<p>Installing ImageMagick should be as simple as:</p>

	<div class="code text" style="font-family: monospace;">
airborne@Auriga ~ $ sudo port install imagemagick

&nbsp;</div>

	<p>The <code>sudo</code> command allows you to run a program as the superuser, which is required in order to install things into locations within the OS X system folders (much the same as entering your password when running certain installer packages). You will be prompted for <em>your</em> password; enter it and press return. It will take some time to download the required files, decompress them, etc., etc. When it&#8217;s done, it will let you know. If you get any errors along the way, you will want to refer to the <a href="http://www.macports.org">MacPorts website</a> or search on the Internet for solutions; fixing MacPorts problems is too vast an area to cover in this article.</p>

	<p>You can now confirm that ImageMagick is installed by trying to run one of its included tools, <code>convert</code>. Just type that in and see what happens:</p>

	<div class="code text" style="font-family: monospace;">
airborne@Auriga ~ $ convert

&nbsp;</div>

	<p>A whole bunch of stuff should print out. Don&#8217;t worry about reading it. If you get an error message like <code>-bash: convert: command not found</code> then try closing and re-opening the terminal. If it doesn&#8217;t work after that, well, something must have gone wrong with the installation and you should try to figure out what that is. There are a lot of resources available through the <a href="http://www.macports.org/">MacPorts</a> site and through The Google to help you out.</p>

	<p>Now that we have ImageMagic set up, we need to write some&#8230;</p>

	<h2>AppleScript</h2>

	<p>I love AppleScript. What we&#8217;re going to do now is write a small script (or &#8220;droplet&#8221;) that opens images and places your watermark image on them. Here is the code:</p>

	<div class="code applescript" style="font-family: monospace;">
<span style="color: #b1b100;">on</span> <span style="color: #000066;">open</span> theObjects<br />
&nbsp; &nbsp; <span style="color: #b1b100;">repeat</span> <span style="color: #b1b100;">with</span> theObject <span style="color: #b1b100;">in</span> theObjects<br />
&nbsp; &nbsp; &nbsp; &nbsp; do shell <span style="color: #b1b100;">script</span> <span style="color: #ff0000;">&quot;/opt/local/bin/composite -compose Over &quot;</span> &amp; ¬<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #ff0000;">&quot;-gravity southwest /Users/airborne/Pictures/copyright.gif '&quot;</span> &amp; ¬<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#40;</span>POSIX path <span style="color: #b1b100;">of</span> theObject <span style="color: #000066;">as</span> string<span style="color: #66cc66;">&#41;</span> &amp; <span style="color: #ff0000;">&quot;' '&quot;</span> &amp; <span style="color: #66cc66;">&#40;</span>POSIX path <span style="color: #b1b100;">of</span> theObject <span style="color: #000066;">as</span> string<span style="color: #66cc66;">&#41;</span> &amp; <span style="color: #ff0000;">&quot;'&quot;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">end</span> <span style="color: #b1b100;">repeat</span><br />
<span style="color: #b1b100;">end</span> <span style="color: #000066;">open</span>

&nbsp;</div>

	<p><strong>Beware</strong>. I have broken up a couple of the lines to make it appear properly on the blog. The linebreak character, which should look like the upper right corner of a square, might not appear properly in your browser.</p>

	<p>If you want, you can just <a href="/articles/AutomationI/Watermark.app">download the script</a> from my site. You should be able to open this file in Script Editor and change the paths to suit your environment (mostly change the path to your watermark file), and in fact, you <em>must change this path</em> or the script will not work. In the above code, <code>/Users/airborne/Pictures/copyright.gif</code> is the part you need to change.</p>

	<p>I will now explain the code in greater detail for anyone interested. If you couldn&#8217;t care less how it works, skip the next couple of paragraphs. The first part, <code>on open theObjects</code> means that this script expects to be opened with files passed into it, either by dragging and dropping files onto its icon in the Finder, or by being triggered from Lightroom, et al. (Image Capture can also use post-import scripts and they work in precisely the same way). When the script runs, <code>theObjects</code> will be a list of files to do something with.</p>

	<p>The following block (<code>repeat with</code>) is then repeated with each file that was passed in. The <code>composite</code> program included in ImageMagick is used to layer an image on top of another image, so we call that with the <code>do shell script</code> command, which basically simulates typing something into the terminal. The <code>-compose Over</code> option tells it to place the second image on top of the first, and <code>-gravity southwest</code> means to place it in the lower left corner. I then supply the paths to my <code>copyright.gif</code> and the <span class="caps">POSIX</span> path of each of the files opened by this script (the ones dropped onto its icon or passed in by Lightroom). If any of this is unclear, leave a comment.</p>

	<p>If you are re-creating this script for yourself, just be sure to save it as an application. In the &#8220;save&#8221; dialog, you can choose a few different formats to save the script in, but only &#8220;application&#8221; will give it the ability to operate as a droplet (a program you can drop files onto).</p>

	<p>Great, now let&#8217;s make it run automatically from Lightroom!</p>

	<h2>Configuring Lightroom</h2>

	<p>When you run the Export command from Lightroom, you are presented with a dialog box much like the one you see below. We are chiefly concerned with the option highlighted in this picture.</p>

	<p><img src="/articles/AutomationI/Figure-1.jpg" alt="" width="600" height="637" /></p>

	<p>When you open that menu, you will want to choose &#8220;Go to Export Actions Folder Now&#8221; as shown below.</p>

	<p><img src="/articles/AutomationI/Figure-2.jpg" alt="" width="585" height="186" /></p>

	<p><em>Note: disregard the &#8220;Watermark+Upload&#8221; option; that is a modified version of this Watermark script that also opens Transmit and uploads the photos to my website. I&#8217;ll cover that functionality in another article. See, AppleScript rules!</em></p>

	<p>When you choose that option, the Export Actions folder will be revealed in the Finder and you can then place the Watermark script into it. Make sure it&#8217;s <strong>in</strong> the Export Actions folder and not in the Lightroom folder! If you cancel and re-open the Export dialog, you will now be able to select Watermark in the list. Exporting photos using that post-processing filter should now automatically apply your watermark image!</p>

	<p>This has been a long-winded and very technical article. I realize that all of you are coming here with different levels of familiarity with the terminal, ImageMagick, AppleScript, etc., so I covered what I thought were the most important points. If you have any questions, just leave a comment and I&#8217;ll be glad to explain anything I left out.</p>

	<p>Good luck and happy watermarking!</p>

	<p>P.S. Learn even more about scripting in <a href="/2007/04/19/automated-workflow-ii/">Automated Workflow II</a></p><div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2007/04/15/automated-workflow-i/' addthis:title='Automated Workflow I '  ><a class="addthis_button_facebook_like" fb:like:layout="button_count"></a><a class="addthis_button_tweet"></a><a class="addthis_button_google_plusone" g:plusone:size="medium"></a><a class="addthis_counter addthis_pill_style"></a></div>]]></content:encoded>
			<wfw:commentRss>http://singleservingphoto.com/2007/04/15/automated-workflow-i/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

