Monday, October 27, 2008

Straighten Crooked Photos

By David Peters

The Measure Tool is the best way to straighten images in Photoshop, taking all the guess work out of it. As I will show you in a moment, Photoshop will do most of the work for you as long as there's something in the image that should be straight! By default the Measure Tool is buried behind the Eyedropper Tool in the Tools palette, so in order to select it, you need to click and hold your mouse button down on the Eyedropper Tool for a second or two. A fly-out menu appears showing you the other tools buried behind it. Select the Measure Tool by clicking on it.

Look for something in your image that should be straight, either horizontally or vertically. We're going to drag along its edge with the Measure Tool so Photoshop has something to work with when trying to figure out how crooked the photo actually is. In my case, I'm going to click and drag horizontally along the roof of the building directly behind Ms. Liberty. Obviously the roof should be perfectly horizontal, yet it clearly isn't at the moment. I'll simply click once on the left side of the roof, then hold my mouse button down and drag over to the right side of the roof. This draws a thin line between where I first clicked on the left and where I finished dragging on the right, and Photoshop uses the angle of this line to determine how far the image will need to be rotated in order to straighten it.

Click and drag with the Measure Tool along the edge of something in the photo that should be straight horizontally or vertically. If you look up in the Options Bar at the top of the screen, you can see the angle of the line you've just drawn (it's the number listed to the right of the letter "A"). In my case, we can see that my line is on an angle of 1.9 degrees:

The Options Bar should be showing the angle of the line you have drawn with the Measure Tool. Photoshop now uses this angle to find out how far to turn the image in order to straighten it. To find the "Rotate Canvas - Arbitrary" Command Click on the Image menu at the top of the program, choose Rotate Canvas, and then select Arbitrary:

Go to Image > Rotate Canvas > Arbitrary. Funnily enough the word "arbitrary" is defined as "random or by chance", yet that's precisely the reverse of what we're doing here. This is not random rotation; we are not leaving anything to chance. The Measure Tool has been used to find out precisely what angle and how much our image needs to be rotated by: now Photoshop can use the measurements we've given it to level our image without any guess work. As you probably are already aware, much of the problem with learning Photoshop comes from understanding the terminology, and in this particular case, I don't know what Adobe was thinking.

However, life goes on. Once you click on "Arbitrary", Photoshop pops up the Rotate Canvas dialog box, and as you can see, the work has already been done for you. In this case, Photoshop has entered a value of 1.85 for the Angle option, and it even recognized that the image needs to be rotated counter-clockwise, which is why the CCW option is also selected:

Photoshop Tutorials: The "Rotate Canvas" dialog box with the angle and direction already selected for us. You may be wondering why Photoshop entered an angle of 1.85 when the Options Bar showed an angle of 1.9 a moment ago. The reason is because Photoshop rounds off the angles in the Options Bar to 1 decimal place, so it showed 1.9 even though the angle of the line we drew with the Measure Tool was actually 1.85. The angle shown in the Rotate Canvas dialog box is the correct angle.

At this point, all we need to do is click OK in the Rotate Canvas dialog box to exit out of it and have Photoshop rotate and straighten our image for us. The image has now been rotated and straightened. Everything looks good, and the Statue of Liberty is no longer leaning to the right. We were able to straighten the image perfectly without any guess work thanks to the Measure Tool and the Rotate Canvas command.

You might notice that there is a small problem. Since we rotated the image inside the document window, we now have some white canvas areas around the outside of the photo. We need to fix this problem by removing those areas; for this we use Photoshop's Crop Tool. You can find the Crop Tool from the Tools palette, or simply press the letter C on your keyboard to select it with the shortcut:

With the Crop Tool chosen click near the top left corner of your image and drag down towards the bottom right to create a border around the part of the image you want to keep. Fine-tune your selection by dragging any of corner handles or by dragging the top, bottom, left or right sides of the selection:

Use the Crop Tool to drag out a selection around the part of the image you want to keep. Once you've dragged out your cropping border, press Enter (Win) / Return (Mac) to have Photoshop crop the image. - 15437

About the Author: