Archive for January, 2011

Straightening a crooked photo using GIMP (Part 2 of 14)

Sunday, January 2nd, 2011
Get oriented to the user interface of GIMP, and get your feet wet with a basic correction like straightening a crooked photo.

Yesterday, we took a peek at some of the things that GIMP can be used to correct or enhance a digital photograph. Today we get our toes wet putting GIMP to work actually doing something simple.

Getting oriented to the interface (see Picture 1)

User interface of GIMP

User interface of GIMP

When you first fire up GIMP, you will see three separate windows on the screen. The centre empty window is the image window where the photo appears when you open a digital photo file.

To the left is the Toolbox which contains icons representing the tools available in GIMP. These tools include those for painting, selecting or moving parts of the photo. Mouse over an icon to display tooltips about which tool is associated with the icon, a brief description of what the tool does, and its keyboard shortcut.

Clicking an icon selects the tool. The relevant settings and options for controlling the selected tool are displayed in the lower half of the Toolbox.

To the right of the image window, there is another panel containing “dialogs” for manipulating image layers, colour channels and Undo History. Each of these dialogs is organised as a tab in the panel and can be displayed by clicking on the tab heading of the dialog.

Opening a photo

Open Image dialog box in GIMP

Open Image dialog box in GIMP

The main menu for GIMP can be found along the top of the image window. To open a photo file, choose the File > Open command from the main menu.

Inside the “Open Image” dialog box (see Picture 2) that pops up, a list of folders is displayed in the “Places” column to the left. Click the relevant folder and the files and subfolders in it are displayed in the centre “Name” column. Double-click a subfolder to further dive into its contents until you get to the photo you want to open.

Clicking a photo file will generate a thumbnail preview to the right. Click the “Okay” button at the bottom to open the photo.

You can have more than one photo open in GIMP at a time. Each photo will appear in its own separate image window.

Straightening a crooked photo

Select the Rotate Tool and adjust the grid overlay

Select the Rotate Tool and adjust the grid overlay

A common reason for discarding photos is when they are crooked because the camera was not held level when the snapshots were taken – the horizons are not horizontal or the buildings are tilted. Here is how to straighten a photo by rotating it in GIMP.

First, click on the Rotate tool icon in the Toolbox (see Picture 3) to select it.

In the lower half of the Toolbox, select the “Corrective (Backward)” radio button for Direction, and select “Image + Grid” from the dropdown box for Preview. These are the settings that I find most intuitive for straightening crooked photos. Set the Clipping to “Crop to result” for GIMP to crop off the corners after the photo has been rotated.

Click on the photo in the image window. A Rotate dialog box appears (ignore it for the moment) while a grid is overlaid onto the photo in the image window. Drag the mouse within the grid to rotate the grid. Rotate the grid until the horizon in the photo is aligned with a horizontal line in the grid. You can also align lampposts or sides of buildings that are supposed to be vertical to the vertical lines of the grid.

Photo of sea with slanted horizon

I took this photo off the beach in Nice, France. The camera was not level and resulted in a slanted horizon.

Straightened photo with horizontal horizon

The photo was straightened using the Rotate Tool in GIMP so that the horizon has become - but of course - horizontal.

Once you are happy with the alignment of the photo to the grid, click the Rotate button in the dialog box and the photo is straightened (see Pictures 4 and 5). Select the Image > Autocrop Image command from the main menu to crop away the empty spaces around the photo.

Tomorrow, we’ll try out the Perspective Tool to correct distortion when snapping photos of tall buildings and the Crop tool for recomposing snapshots.

Free photo editing with GIMP (Part 1 of 14)

Saturday, January 1st, 2011

Touch up and enhance your digital photographs using GIMP – the free photo editor. This is the first of a 14-part series on the basics of using GIMP for the absolute beginner.

Photo of dog ornament with strong blue cast

Picture 1: This photo of a dog ornament in a flower pot was taken in Tsumago in Japan. A wrong white balance setting in the camera resulted in a strong blue cast

Today is the first day of 2011. What better way to start a New Year than to pick up a new skill – like using a free photo-editor to edit your digital photographs?

Wow your friends when you next show them your vacation photos by enhancing your snapshots with a photo editor on the computer.

Digital cameras nowadays produce pretty decent photos even for a novice photographer. But a few fast and easy tweaks in a photo editor on a computer can make them look as if they were taken by a pro.

Photo of dog ornament with dull colours

Picture 2: GIMP can be used to remove the blue cast in the original photo. However, the colours remain dull and uninspiring.

Does your spouse look like a visitor from Pluto in those snapshots? Use the photo editor to remove that awful blue colour cast in the photo (see Pictures 1 and 2).

Do those vacation photos look dull and flat because they were taken on an overcast day? Make those snapshots pop by intensifying the colours and increasing contrast with a few clicks of the mouse (see Picture 3).

Free photo editors

Beautifying or correcting your digital photos does not need to cost you an arm and a leg. There is a plethora of free but capable photo editors available on the Internet.

Photo of dog ornament with enhanced colour and contrast

Picture 3: The colour and contrast of the photo has been enhanced to make it "pop".

www.picnik.com is an online photo editor while Google’s Picasa is a desktop based editor that comes with an image browser. Both of these enable simple tweaks and addition of special effects to digital photos through easy-to-use interfaces.

GIMP is my favourite recommendation to those who want more powerful photo editing features but is reluctant to dish out the moolah for the industry standard Photoshop CS5 (S$1091).

Over the next two weeks, I will be posting a short how-to each day on the basics of using GIMP – a free photo editing software that you can download from the Web.

What is GIMP?

The name GIMP is an acronym for “GNU Image Manipulation Program”. It is a free desktop-based photo-editor with features and interfaces similar (but not identical) to Photoshop. It runs on Windows XP SP2 or newer, Mac OS X and Linux. Go to www.gimp.org/downloads and follow the links to the relevant installers for different operating systems.

Tightly cropped final photo of dog ornament

Picture 4: The photo was tightly cropped around the dog ornament to make it fill the frame.

Using GIMP, you can do simple tasks like straightening a crooked photo, or cropping out distractions in the background to fill the frame with the main subject (see Pictures 4).

Powerful tools, like Levels and Curves, enable fine control of exactly which part of a photo to tweak for colour and contrast adjustments.

For advanced adjustments and compositing, a few photos or different parts of the a single photo can be put on separate layers and manipulated independently of each other.

Tomorrow, we’ll get ourselves orientated to GIMP’s interface, and set it to work straightening a crooked photo.