Category Archives: Software

Auto Blur updated

CS5 meets Auto Blur.

Auto Blur is my moniker for making sharp backgrounds out of focus, an occasional dictate when using small sensor digital cameras, which tend to render everything sharp. You can read about the technique here.

One of the enhanced features in Photoshop CS5 is the outlining abilities of the Lasso tool.

First you do a rough and ready outline thus:

A first rough outline with the Lasso tool.

I use a mouse but if you are serious about doing lots of this sort of thing then a pen tablet would likely be a better tool. Then you click on Refine Edge and in the first box click on Smart Radius, moving the cursor to the right until the outline is just so:

Refined Edges.

The red circle indicates the tool which is selected after Refine Edge is applied; it’s dragged around the areas of extremely fine detail – like the girl’s hair – to make them perfectly defined against the background and reduce the edge halo effect.

The small error at the lower right is easily corrected in the Lasso tool and you are done. Mess some with the other controls if needed. The enhanced outlining is noticeable, not least for the incredible speed of operation – there’s minimal need to make small, time consuming adjustments. Then I simply clicked on Select->Inverse to select everything except the outlined figure, and applied Filter->Blur->Gaussian Blur.

This is a typical G1 image with the kit lens at 18mm fully open at f/3.9. Everything is sharp. Rollover the image to see what I’m talking about (renders fine in Chrome and Safari on my Mac) – this took all of 30 seconds to do; refresh your browser if the picture is not visible:

Thumbsucker before and (mouseover) after AutoBlurâ„¢ with CS5’s Refine Edge tool (left) and CS2 (right).
Note the absence of halos at the edge of the outline in the CS5 version compared to the CS2 one.

The CS2 version took far longer to do.

The outlining in the CS5 version is not only better, it took a fraction of the time to accomplish. This is the sort of real world value added which continues to see me as a great fan of Adobe products. I’m adding CS5 to my toolkit, even if I only know 5% of its power. Heck, a few Auto Blur later and it will have paid for itself!

Photoshop CS5 and CAF

Uncle Joe would be proud.

I have been ticking along for many years with Photoshop CS2 and been quite happy with it for my modest needs. I’m no Photoshop expert, goodness knows, my primary use being for round tripping images from Lightroom to fix leaning verticals, where PS does a better job (Edit->Transform->Distort) than the rudimentary controls in Lightroom 3. A related, occasional use is to remove overhead cables and the like using the clone tool where, once again, the LR tool does not cut it.

A while back I tried CS4, a loaner from a friend, and noticed a couple of things. First, it’s an Intel app in the Mac version, meaning it runs far faster than the older PPC CS2, which has to run through the Rosetta emulator. One simple example is that even on my fast HackPro desktop, CS2 takes 20+ seconds to load whereas CS4 takes 3, using an SSD drive. Everything else is faster too.

Now that speed increase alone is not enough to make me shell out for CS5, the current version but, as luck would have it, I was riding the Caltrain from the South Bay to San Francisco the other day, merrily reading my iPad, when the chap next to me started up a conversation. Turns out he’s an engineer at Adobe which makes its home on Townsend Street, a few hundred yards form the SF Caltrain terminus, our destination. When I told him I was still on CS2 he gently reprimanded me after picking his jaw up off the floor. Consider me reprimanded! “Dude”, quoth he, “You just have to try CS5. Content Aware Fill will blow your mind. And you gotta try the new outlining tool”.

This was both flattering (being a ‘Dude’ just shy of 60 years of age feels pretty good) and intriguing, based on his explanation of Content Aware Fill, which can do a smart job of replacing pixels in an image based on the surrounding details. And the enhanced outliner would be nice for those times I want to use Auto Blur when the ‘everything sharp at all times’ curse of the small sensor on the Panny G1 dictates manual blurring of a distracting background.

A little bit of digging made things more intriguing. CS5 is the first version of Photoshop which runs in 64-bit mode on the Mac. Further, Adobe offers a $199 (at Amazon) upgrade which will work all the way back to CS2! (Trying to upgrade from within CS5 is a waste of time, returning page errors. Adobe- wake up!) No way I was going to pay the $700 asked for CS5, especially as I own CS2, long registered at Adobe, which started life as CS1 on my G5 iMac a few centuries ago. Finally, as the next version of the Mac OS, Lion, will no longer support Rosetta/PPC apps, I have to do something as I’m not about to get left behind by sticking with Snow Leopard when that cat’s time has passed, and while I do not love PS, I do need it now and then. The icing on the cake is that Adobe offers a 30 day free trial of CS5, so before you could say ‘dial-up’ I had the software downloaded and installed. Well, you actually need broadband because downloading this 700mB whopper would take longer than life is worth with dial-up. It would be cheaper to buy the disc! And I’m not talking CS5 Extended – just the basic CS5-only version.

Let me pause and jump to some recent history before writing further of Content Aware Fill. When the British and Americans gave away Eastern Europe at Yalta in early-1945 to a grasping Stalin, the Cold War commenced. For reasons never quite clear to me, FDR and Churchill, the donors of countries they did not own, referred to Stalin as Uncle Joe; it’s tough to ascribe avuncular qualities to the greatest psychotic mass killer in history, but FDR was gaga by then and WSC was down to his uppers (and about to lose a General Election to an ungrateful nation), having just barely saved Englishmen from having to learn German. So I suppose while Eastern Europeans would disagree, those two Western leaders might be excused for their poor judgment. Heck, I still named our son Winston. Great men have great faults.

The point of this historical flashback is that Uncle Joe would have loved (I almost wrote ‘killed for’) Content Aware Fill (CAF). You see, in those days before Photoshop, when he would whack the occasional cabinet member just to keep the other boys on the Politburo in line, photo retouchers would have to set to and start editing out the whackee from all know official pictures. Then, after hundreds of hours of careful retouching to eliminate all trace of Comrade Whackee, the history books would be republished – pity the poor proof reader who missed a name – and schoolchildren indoctrinated afresh in whoever the new leaders were. People would literally be ‘disappeared’ from photographs, which took a good deal longer than two shots in the back of the head. Suffice it to say that Content Aware Fill is so good that Uncle J would have been at the front of the line at Adobe on Townsend Street, San Francisco, credit card in hand, long before the ink was dry on the first glowing reviews a year ago. Mercifully, UJ has long been six feet under, thus saving the lives of many soon-to-be-whacked photo retouchers, as their work could now be done in minutes instead of months.

The best way to illustrate CAF is with a ‘before and after’.

After and Before applying CAF

The overhead wires, a bugaboo of architectural and city photographers everywhere, took all of a minute to replace. I simply dragged the Healing Brush tool along them, regardless of background, hit Enter and after a few seconds of the spinning gear wheel here is what I got. It’s not perfect once enlarged, but a little local fixing wth the regular Clone tool and it’s done. Doing something like this in areas with complex detail would have taken ages using the Stamp and Clone tool.

Here’s another far more extreme example, which took 15 minutes to do:

CAF at the max. Streetcar lines be gone!

Where fine detail is involved I have found that using the Healing Brush to confer CAF is more effective than the alternative method. That method has you using the lasso tool to select a large area to be replaced, then clicking Shift-F5->Content Aware. The latter method takes a larger, cruder surrounding data sample in doing its thing, and tends to be best on a subject against a uniform background.

A handy related use of CAF is when you use the Edit->Transform->Distort tool in PS to correct leaning verticals. If the nature of your stretching of the original image leaves white areas within the picture, you can use CAF to fill those in.

CAF is not perfect. It likes a fair amount of surrounding area to sample and if that area includes other image elements, it will unnecessarily place them in the fill, but after a bit of use you get the hang of it and learn how much has to be sampled around the object to be replaced. It’s pretty remarkable technology and Uncle Joe would be proud as must be his many latter day descendants across the world. Judging by the fact that even the HackPro spins its gear wheel when doing CAF you really need a powerful CPU and GPU in your Mac unless you place little value on your time. There is some very complex processing going on here.

I fancy Adobe and Amazon will be finding themselves $199 better off when my 30-day Photoshop CS5 trial is up. Meanwhile, my hat is off to Adobe for a superb idea, well executed. Version two will likely be able to remove whole armies without a shot fired.

Here’s how UJ did it – before/after whacking Comrade Yezhov:

Now you see him, now you don’t.

You can read about Uncle Joe and Comrade Yezhov here.

As for the enhanced outlining tool mentioned by my new found friend from Adobe on the train, more of that later.

Mac OS X is Ten years old

The OS that made me switch.

Say what you may about Mac hardware (I’m in the ‘overpriced, poorly heat managed, form-over-function-even-if-gorgeous-to-contemplate’ camp) the compelling reason for switching to the Mac today is the same as it was ten years ago when OS X was launched, replacing OS 9. I had long thought about switching from Windows by that time, but was aware that OS 9 was every bit as buggy and unstable as Windows ’98, so when OS 10.0 (Cheetah) came out, I decided to wait a while for the bugs to be worked out. But early trials set the heart racing – clean, quick, logical, uncluttered and with readable fonts.

So when OS 10.3 ‘Panther’ arrived and with it the first LCD iMac came out, so did my credit card and the new iMac was soon at work. (I skipped OS 10.1 ‘Puma’ and 10.2 ‘Jaguar’, as the original iMac hardware with its luridly colored translucent shell was ghastly to look at and had very modest specifications for the price). The excellent Epson 1270 ink printer plugged in and ‘just worked’, all sorts of other peripherals did likewise, and as a photographer I have never looked back. The first task was to start scanning all my negatives and slides using a Nikon Coolscan 2000 scanner. After connectivity agonies with Windows it was an unforgettable experience to plug the Coolscan in and find it was ready to go. Thereafter I simply had high quality scans made of all my negatives when they were processed and dumped them on the iMac’s hard drive.

My first Mac – $2,632.79!

At today’s prices, using the US CPI, that comes to $3,149.39, almost twice the cost of my quad core, three screen, SSD equipped Hackintosh! But it was worth every penny and more.

I bought the iMac for the OS, not the OS for the iMac though, strangely, that G4 iMac ‘screen on a stick’ continues to be the only one that has not failed and works to this day. It’s called proper heat management.

There’s an argument to be made that OS X saved Apple from oblivion and for the whole fascinating story of its development, chronicled by estimable British journalist Leander Kahney at Cult of Mac, click the picture below. Leica used to design a camera like this – prototype after prototype – until it worked right.

Click for the story.

The latest changes to OS X are at the margin and mostly icing on the cake, as the primary effort must go where the money is, meaning iOS. But while desktops and laptops are in inexorable decline, I expect that future versions of OS X will build on the iOS experience and only make things better. And as my quick check of the latest version of Snow Leopard the other day confirms, Apple is not letting code bloat slow things down. Indeed, Snow Leopard appears to be the fastest version of OS X yet.

Here’s to the next ten years. Well done Mr. Jobs and the whole team at Apple.

Snow Leopard 10.6.7

The latest release.

Snow Leopard 10.6.7 came out yesterday, with bug fixes and security enhancements, and before you could say ‘Hackintosh’ I had it installed on the HackPro.

It’s worth the upgrade. Running in 64-bit mode here is the Geekbench (OS performance as reflected in CPU and RAM throughput – no disk factors, so the SSD I have recently installed is irrelevant to comparisons) report:

Snow Leopard 10.6.7

Here is 10.6.6 with the same configuration:

Snow Leopard 10.6.6

That’s 2.4% faster. Not enough to notice, but nice to know that the newer version is not the victim of performance drag from code bloat. The biggest component of the overall change is in the memory performance result which is 8.0% faster. Nice code optimization, Apple!

On the 2010 MacBook Air (mine is the 11″ with the base spec and minimum RAM) the change in speed is +5%. Once again, not noticeable but nice to know.

Collections and Slideshows

Useful Lightroom tools.

Two powerful tools in Lightroom which perhaps don’t get the recognition they deserve are Collections and Slideshows.

Collections allow you to group selected images in one place, suitably named. No catalog bloat results, as a Collection is simply a set of pointers to existing pictures in your Lightroom catalog.

Collections in Lightroom.

The other day a relative asked for a selection of recent snaps so that she might choose one or two for display in large print format. I simply placed four dozen into a Collection, based on her taste for the simple and uncluttered, then went into the Slideshow module of Lightroom, choosing that Collection for the slideshow.

The Lightroom Slideshow module.

I saved the whole thing in low quality, to keep the files size down, exported it to DropBox and, minutes after receiving the request my relative had a file of proofs for review. The only things I did in the Slideshow module were to add a face page, which you can see below, and numbering, so that she need only report back the identifying numbers of the images she wants printed. The slideshow was saved as a PDF file in 1024 x 768 page size, formatted for her iPad. (The images break up if viewed larger than that).

If you like you can even embed a sound file to accompany the slideshow and can also save the slideshow as a video in a wide variety of sizes and formats. Adobe is totally on the ball here. Be warned that video creation really stresses your CPU and owners of iMacs should think twice before doing this, owing to the atrocious cooling design of those machines. Even the extraordinarily well cooled HackPro I use showed its quad core CPU temperature rising from the usual 115F to 165F when processing the related RAW files into a video, with the process taking 10 minutes. To put that upper temperature in perspective, I have the overheating warning buzzer in the HackPro’s BIOS set at 175F, near the CPU’s service limit, so that’s getting up there. The video, whose delay between slides can be set in the Slideshow module, came in at a whopping 88mB in 720P format.

Don’t try this on an iMac. Dramatic CPU temperature rise when
creating a video in the LR Slideshow module – all four cores shown.

The PDF file is a modest 4mB in size, by comparison, and you can download it by clicking the picture below.

Click to download. Best viewed in GoodReader on the iPad or in Preview on a Mac.