Category Archives: Software

PTLens

The easy way to fix distortions.

PTLens was recommended to me by a fellow photographer and proves to be one of the easiest ways of fixing four common problems:

  • ‘De-fishing’ fisheye images
  • Correcting common lens distortions
  • Perspective correction (leaning verticals, etc.)
  • Correcting chromatic aberration (color fringing) and vignetting – not tested here

It comes in Mac and Windows versions; on the Mac it runs in native 64-bit mode if invoked from Lightroom and is a Universal application, meaning no need for the buggy Rosetta application (which causes spontaneous reboots in Snow Leopard) and supports full 16-bit color TIFF and PSD file formats. It’s a free download permitting 10 uses, whereafter the price is $25 – a very sensible policy.

Up to now I have been using ImageAlign for de-fishing snaps on the 5D taken with the Canon fisheye and Photoshop CS2 (a Rosetta application) and for correcting leaning verticals and barrel and pincushion distortion from Canon’s poor wide-angle lenses. ImageAlign does not work in PS CS3 or CS4. Perspective correction has been done in Photoshop CS2. As for chromatic aberration and vignetting, Lightroom version 2.0 and later does all I need, so I do not touch on that aspect of PTLens here.

I downloaded the PTLens application and installed the the programs (PTLens and PTLensEdit), making the latter the choice in Lightroom under Preferences->External Editing.

Many common lenses are programmed in though not, for some reason, fisheyes. No matter – correcting distortion in the latter is child’s play using the slider.

Here’s an original fisheye image of one of the bedrooms in Hearst Castle where I very much wanted to retain the ceiling in the final image:

Here is the same image ‘defished’ in both ImageAlign (left) and PTLens:

There is no practical difference, defishing rendering the field of view of a 12mm hyper-wide rectilinear lens. PTLens saves the processed file back into the image stack in Lightroom and is very fast, the preview reacting in real time as the sliders are worked. As ImageAlign has folded and the application/PS plugin are no longer available, PTLens is a viable and inexpensive modern alternative.

When it comes to correcting more regular lens distortions, PTLens is in its element, as it has a large database of lenses with all the settings stored for you, whereas Photoshop has none – you have to do everything manually. Here’s an example from the over-rated 24-105mm Canon L zoom which noticeable barrel distortion at 24mm as is clear in this picture:


Barrel time – 24-105mm Canon lens at 24mm.

Here are the before and after images, the latter processed in PTLens using the programmed settings from PTLens with no other adjustments:


Take a good look at the handicapped parking sign before and after correction.

Finally, perspective correction – here’s the picture I published the other day showing the correction of perspective using GIMP; in PTLens it’s even easier.

Before PTLens

After PTLens

A slam dunk purchase at $25 and you can even make it use all four cores of your CPU if it has that many. Highly recommended. PTLens has finally consigned Photoshop to the trash, where I have long wanted to place it. Lightroom and PTLens does all this working photographer needs and neither needs Apple’s compromised Rosetta PPC CPU emulator whose repair is doubtless a low priority in Cupertino, though they do admit its existence:

.

GIMP

Great price beats Photoshop.

Stupidly named, GIMP, or “The GNU Image Manipulation Program”, this Mac application does itself no justice with that dumb name. It’s a fine alternative to Photoshop for users who, like me, detest the user interface of that Adobe application and like the ridiculous price asked even less.

One of the reasons I still make do with Photoshop CS2 (an older version of the current CS4 which runs under the Rosetta PPC emulator in Snow Leopard) is that the upgrade price makes no sense for this photographer who gets most of the tools he needs in Lightroom and basically roundtrips to Photoshop from Lightroom to fix converging verticals and pincushion and barrel lens distortion. (Try Canon’s 24-105mm at 24mm to see real barrel distortion).

The problem is that Snow Leopard suffers from a huge problem in the Rosetta emulator, as widely reported on Apple’s Discussion Forum. Rosetta applications are prone to spontaneously reboot your Mac! This has happened to me on all three I run – Quicken 2005, Excel v.X and Photoshop CS2. It has never happened with any Universal/Intel applications. Maybe Apple will admit error and fix this. Who knows? More likely they will just tell users to upgrade to Universal versions of the affected applications (impossible with Quicken where none exists, by the way).

GIMP fixes all of that. It’s a Universal application so there are no Rosetta issues. Exporting to GIMP from Lightroom is merely a question of setting Lightroom’s Preferences->External Editing to use GIMP as the external image editor. Then hitting Photo->Edit In->Edit in GIMP in LR moves a TIFF copy of your image to GIMP for distortion or perspective correction. Correction is applied in Filters->Distorts->Lens Distortions (for lens distortions) or in Tools->Transform Tools->Perspective to fix leaning verticals. Unlike in CS2, there is no need to create a Background Layer when doing the latter – it’s much easier in GIMP. When you tell GIMP to save the processed picture it will save it right back into Lightroom alongside the original, in a stack. Just like CS2.

GIMP can only handle 8-bit files. I have experimented with it and compared output to the 16-bit ones from Photoshop and cannot tell the difference in 30″ x 40″ prints. You can read lots of technical articles explaining why 16-bit is better but not a one of those will be illustrated with the only thing that matters – real pictures. The Label Drinkers are at work again.

Here’s a ‘before’ and ‘after’ showing the use of perspective correction to get rid of extraneous detail on the right of the picture – I simply could not get into a better position from which to take this:

Original snap before applying perspective correction.

Here’s the ‘after’ image:

Morro Bay at sunset. 5D, 24-105mm @ 105mm. Perspective corrected in GIMP.

The price of GIMP? How about free?

You can download it here and it runs fine on Snow Leopard 10.6.1. If you need the Help file, that’s a separate download (strange) but it integrates nicely. Just use a keyword search to find what you need after invoking Help from within GIMP.

Friend of the blog Greg Littell has pointed me to a couple of useful links. To make GIMP feel more like Photoshop and to use your old Photoshop plug-ins, click here. For a complete directory of hundreds of GIMP plug-ins, click here.

Snow Leopard coming around

Compatibility issues are quickly disappearing.

Six weeks ago I cautioned against an early upgrade to Snow Leopard largely on grounds of its lack of compatibility with many common applications.

Having tried SL 6.1 on my iMac I can report that most of the most commonly used applications I use now run fine. It’s especially satisfying to see that legacy PPC applications (ones written for the old Macs using the IBM G3/4/5 CPUs) run really well under Rosetta, though why on earth Apple makes Rosetta an optional install which you have to search for (under ‘Customize’) beats me. Most specifically, Photoshop CS2 runs perfectly and I have no need or desire to pay Adobe for a later version given my limited PS use. And yes, I still run ancient versions of Microsoft Word and Excel as they do all I need and I simply hate paying Microsoft for anything.

Lightroom in 64-bit mode runs fine and, once again, it’s a wonder to me Adobe doesn’t simply detect 64-bit systems automatically rather than insisting on installing in 32-bit mode by default. The switch is beyond obscure – right click on LR in Finder and uncheck the ’32-bit’ box. Jeez! To confirm you are running in 64-bit mode, switch on the splash screen to make it show when LR starts (it’s under ‘Preferences’) and you should see the ’64-bit’ narrative there.

Why switch to Snow Leopard at all? Because sooner or later it will be mandatory as older OS version are supported less and less. Do it now and it’s easier. Do it later and lots of things have to be fixed all at once. And Apple does a decent job in major OS revisions (Panther->Tiger->Leopard->Snow Leopard) that once they are past the first or second version things tend to run pretty well. They have for me.

Now if we could only get the likes of Adobe to rewrite their applications to properly use multi-core CPUs and all that 64-bit goodness, wouldn’t life be sweet? Unfortunately, one of the sadder aspects of the gradual demise of Aperture is that Adobe has less competition. Would that Apple bought Adobe (chump change to Apple) and brought some modernization and proper user interface design to Photoshop, though why anyone would want the aggravation of all those angry help calls from Windows users beats me.

But look, I’m not grumbling. Lightroom 2.5 runs just fine with Snow Leopard. For that I am sincerely grateful.

There’s actually some pretty interesting technical information on 64-bit technology and related developments to be found on Apple’s site which those so inclined can find by clicking the picture below.

Lightroom wins

Aperture is dead in the water.

Having started serious volume digital photo processing with Apple’s Aperture and finally made the switch to Lightroom almost two years ago, the following data recently released by Adobe hardly surprise me:

Clearly, I’m not the only one making the move, especially if you take into account the large increase in Mac sales in the past few quarters. Forget the upper table – Aperture does not run on Windows so it’s not a fair comparison. The lower table is.

When did you last hear of a meaningful update to Aperture or see any advertising for the product?

Those still using Aperture should be getting worried and would do well to consult my earlier piece on abandoning that major stress source for Mac performance. Aperture is another orphan application which couldn’t handle the heat in the kitchen. It’s future is …. well, what future? Have you noticed how Aperture does not even support Panasonic G1/GH1/GF1 RAW file import – maybe the most signifiant camera design to hot the market in the past year? That makes me think it’s a dying application, starved of capital as Apple concentrates on making …. cell phones.

It bears repeating – the user interface in Lightroom is not only logical and linear, it actually makes photo processing fun. That’s not something I thought I would ever write. And you don’t lose track of originals or accidentally erase them, either.

Spam in the RSS feed

Spam, spam, spam, spam, spam eggs and spam.

Putting aside the Monthy Python quote, above, readers using an RSS feed (such as Google Reader, NetNewsWire, Vienna, etc.) will have noticed that yesterday’s postings had summaries inundated with spam. This spam appears to advertise stimulants which readers here have no need of, this blog offering a natural high.

This is what it looks like:

Mercifully, my RSS feed only contains a brief extract of the posting so the schmuck who did this doesn’t get his click-through link to show up. I reposted the piece under a different name but no joy. The same spam in the summary field showed up.

Some very smart people are on to this and I found the fix on Anwyn’s Blog which I recommend if your blog is similarly afflicted.

Suffice it to say that the problem is fixed and the revised posting of yesterday’s piece now looks like this in the RSS reader:

Unfortunately, there’s no way of deleting individual articles from the RSS history but at least newer pieces are now shown without spam, viz: