<?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; tools</title>
	<atom:link href="http://singleservingphoto.com/tag/tools/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>Panomania!</title>
		<link>http://singleservingphoto.com/2010/05/30/panomania/</link>
		<comments>http://singleservingphoto.com/2010/05/30/panomania/#comments</comments>
		<pubDate>Sun, 30 May 2010 18:11:39 +0000</pubDate>
		<dc:creator>Aaron</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[panoramas]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[technique]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://singleservingphoto.com/?p=689</guid>
		<description><![CDATA[Seldom do I employ such emphatic punctuation in a blog title, or such bombastic portmanteaus, but it seemed appropriate given the out-of-control creation of panoramas that I&#8217;ve been engaged in lately. As I mentioned in my last post, I&#8217;m out here in the great American westâ€”&#8220;big sky country,&#8221; if you want to call it thatâ€”and [...]<div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2010/05/30/panomania/' addthis:title='Panomania! '  ><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>Seldom do I employ such emphatic punctuation in a blog title, or such bombastic portmanteaus, but it seemed appropriate given the out-of-control creation of panoramas that I&#8217;ve been engaged in lately.</p>

	<p>As I mentioned in my last post, I&#8217;m out here in the great American westâ€”&#8220;big sky country,&#8221; if you want to call it thatâ€”and some of the sights I&#8217;ve seen were nothing less than <em>demanding</em> of a panoramic treatment. On top of that, I suffer from a devastating case of technolust and wanted to really put &#8220;AutoPano Giga&#8221; through the paces. Well, I sure did. I also probably melted the heat sink off my poor laptop&#8217;s <span class="caps">CPU</span>&#8230;</p>

	<p>Arthur C. Clarke once wrote that &#8220;any sufficiently advanced technology is indistinguishable from magic.&#8221; In the case of AutoPano Giga, I think he was wrong; I think it actually <em>is</em> magic. I have tried a few panorama tools out there; the free and open-source Panotools, a couple of Mac-exclusive ones, and so on. AutoPano Giga is so easy and so fast and so accurate, it blows them all out of the water. Of course it also costs an arm and a leg, but at least you know why.</p>

	<p>After the break, actual panoramas!<span id="more-689"></span></p>

	<p>One of the awesome things about AutoPano Giga is that it reads the <span class="caps">EXIF</span> data from your photos to figure out what kind of lens you used, and then adjusts for distortion based on that information. Essentially, this makes it <em>totally kick ass</em> at stitching together fisheye photographs, which normally do not directly overlap whatsoever. The edges have to be flanged out before two fisheye photos taken side-by-side will match up.</p>

	<p>This one, taken at &#8220;Black Sand Basin&#8221; in Yellowstone, was stitched together from only two 15mm fisheye images (I wanted to limit the number in order to take them rapidly because the steam was moving quickly and when parts of the scene move a lot from one image to the next it can cause ghosting and stitching issues). Click for a larger view.</p>

	<p><a href="http://singleservingphoto.com/wp-content/uploads/2010/05/black-sand-basin-pano.jpg" rel="lightbox[689]"><img src="http://singleservingphoto.com/wp-content/uploads/2010/05/black-sand-basin-pano-590x288.jpg" alt="Black Sand Basin Panorama (c) Aaron Bieber" title="Black Sand Basin Panorama (c) Aaron Bieber" width="590" height="288" class="aligncenter size-large wp-image-690" /></a></p>

	<p>I think you get more of a sense of the vastness of a space from a good panoramic image. This place is as big as it looks.</p>

	<p>While leaving the Grand Teton national Park earlier in the week, we stopped by the site of the &#8220;Cunningham Cabin,&#8221; which is exactly what it sounds like it is. The cabin itself, though, wasn&#8217;t much to look at. I was more intoxicated by the mountain range in the distance and the clarity of the sky and clouds. My New England brain, drunk on what is actually a somewhat average afternoon sky in Wyoming, required the capture of a panorama.</p>

	<p><a href="http://singleservingphoto.com/wp-content/uploads/2010/05/cunningham-cabin-pano.jpg" rel="lightbox[689]"><img src="http://singleservingphoto.com/wp-content/uploads/2010/05/cunningham-cabin-pano-590x168.jpg" alt="Cunningham Cabin Panorama (c) Aaron Bieber" title="Cunningham Cabin Panorama (c) Aaron Bieber" width="590" height="168" class="aligncenter size-large wp-image-692" /></a></p>

	<p>Of course, what you can&#8217;t tell by looking at it on this blog is that at actual size, it&#8217;s this big:</p>

	<p><img src="http://singleservingphoto.com/wp-content/uploads/2010/05/cunningham-cabin-pano-inset-590x344.jpg" alt="Cunningham Cabin Pano Detail (c) Aaron Bieber" title="Cunningham Cabin Pano Detail (c) Aaron Bieber" width="590" height="344" class="size-large wp-image-694 aligncenter" /></p>

	<p>The total dimensions of this panorama are 11,154 by 3,186 pixels. I could make a very respectable five-foot-wide print of this image with perfect clarity!</p>

	<p>Finally, on the last morning in Yellowstone, I wound up on this snow-covered road on the east side of the park and just had to try a crazy panorama. By &#8220;crazy&#8221; I mean that I didn&#8217;t just turn around, taking each photo beside the last. I tossed in a total of 53 images, some pointing up, some down, some tilted to the side a bit&#8230; Just to see what AutoPano Giga could do with them.</p>

	<p>Click to embiggen!</p>

	<p><a href="http://singleservingphoto.com/wp-content/uploads/2010/05/snow-tree-pano.jpg" rel="lightbox[689]"><img src="http://singleservingphoto.com/wp-content/uploads/2010/05/snow-tree-pano-590x180.jpg" alt="Snow Tree Panorama (c) Aaron Bieber" title="Snow Tree Panorama (c) Aaron Bieber" width="590" height="180" class="size-large wp-image-698" /></a></p>

	<p>I did this one on my laptop, so in order to make it possible I exported the original 53 images from Lightroom at about 800 pixels wide. If you look closely on the right side, you can see a little stitching error causing a notch in the far side of the road. I am convinced that this happened because of the limited detail in the smaller input files; when I get home to my big desktop I will attempt it again with 53 full-size 22-megapixel images.</p>

	<p>Some of the things about AutoPano Giga that make creating these panoramas easier (or in some cases <em>possible</em>) include:</p>

	<ul>
		<li>The ability to augment the software&#8217;s automatic &#8220;control point&#8221; detection, which is how it links features in one photo to those in another (the core of the &#8220;stitching&#8221; process); for what it&#8217;s worth I&#8217;ve almost never had to use it, the <span class="caps">SIFT</span> key extraction of <span class="caps">APG</span> is extremely good,</li>
		<li>Center point, horizon detection, and vertical correction tools, which allow you to basically coach the software as to what you want the center point to be, or what feature(s) you ultimately want to be horizontal or vertical,</li>
		<li>Numeric yaw, pitch, and roll adjustment, which permits you to tweak the projection of the final image such that the perspective appears the way you want it to,</li>
		<li>Mercator, planar, spherical, and cylindrical projection models, whichâ€”although my understanding of projection is limitedâ€”essentially gives you a few basic effects to choose from when mapping the images into a flat environment.</li>
	</ul>

	<p>With regard to the projection models, cylindrical tends to work best when you have one or more rows of images taken very evenly, whereas spherical and Mercator tend to work better when the images are somewhat more chaotic. I know that&#8217;s not an entirely accurate statement, but if you want to know more about projection models&#8230; Wikipedia is your friend.</p>

	<p>The real challenge of panoramas is that once they&#8217;re stitched together, you inevitably wind up with a weird patchwork of images that needs to be cropped down. Here is what the Cunningham Cabin panorama looked like before cropping:</p>

	<p><img src="http://singleservingphoto.com/wp-content/uploads/2010/05/cunningham-cabin-pano-raw-590x236.jpg" alt="Cunningham Cabin Panorama, Raw (c) Aaron Bieber" title="Cunningham Cabin Panorama, Raw (c) Aaron Bieber" width="590" height="236" class="aligncenter size-large wp-image-700" /></p>

	<p>As you can see, you generally want to photograph beyond the edges of what the final panorama will include, because after distorting and stretching the images to fit together, you lose a lot of corners.</p>

	<p>One other thing I should mention, although I haven&#8217;t yet tried it myself, is that if you <em>bracket</em><sup><a href="http://singleservingphoto.com/2010/05/30/panomania/#footnote_0_689" id="identifier_0_689" class="footnote-link footnote-identifier-link" title="Bracketing means taking the same photo with different exposure settings, generally something like -1 EV, 0 EV, +1 EV">1</a></sup> each image in your panorama, AutoPano Giga will also &#8220;fuse&#8221; the exposures, preserving more highlight and shadow detail. Now, you don&#8217;t have a ton of control over that process; it&#8217;s very hands-off, unlike Photomatix Pro or some of the other actual &#8220;<span class="caps">HDR</span>&#8221; software out there, but it sure makes the whole panorama creation easy!</p>

	<p>That&#8217;s all I have right now for panomania!, but if you folks have any questions or comments, there are a couple of boxes down there at the bottom that you can use to share them, and I continue to encourage it!</p><ol class="footnotes"><li id="footnote_0_689" class="footnote">Bracketing means taking the same photo with different exposure settings, generally something like -1 EV, 0 EV, +1 EV</li></ol><div class="addthis_toolbox addthis_default_style " addthis:url='http://singleservingphoto.com/2010/05/30/panomania/' addthis:title='Panomania! '  ><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/05/30/panomania/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>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>

