I have found the best way to straighten images in Photoshop is to use the Measure Tool, which fortunately takes all the guess work out of the process. As you will see in a moment, as long as you have something in the photo that needs to be straight, Photoshop will do almost all of the work for us! The Measure Tool is hidden behind the Eyedropper Tool in the Tools palette and you'll need to click and hold your mouse button down on the Eyedropper Tool for a second or two. A fly-out menu appears and shows you the other tools hiding behind it. Click on the Measure Tool to select 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.
Using the Measure Tool click and drag along the edge of the item in the photo that should be straight horizontally or vertically. Check in the Options Bar at the top of the screen and 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 this instance, we can see that my line is on an angle of 1.9 degrees:
The Options Bar showing the angle of the line drawn with the Measure Tool. Photoshop can now use this angle to determine how far to rotate the image in order to straighten it. Choose The "Rotate Canvas - Arbitrary" Command Go up to the Image menu at the top of the screen, choose Rotate Canvas, and then choose Arbitrary:
Go to Image > Rotate Canvas > Arbitrary. I have to laugh every time I do this because the word "arbitrary" actually means "random or by chance", yet that's exactly the opposite of what we're doing here. We're not randomly rotating our image or leaving anything to chance. We've used the Measure Tool to find out exactly how much of an angle our image needs to be rotated by, and now Photoshop can use the information we've given it to straighten our image without any guess work. As I've said before, much of the problem with learning Photoshop comes from getting around the terminology, and in this case, I don't know what Adobe was thinking.
However, life goes on. Once you choose "Arbitrary", Photoshop opens up the Rotate Canvas dialog box, and as we can see, all the work has already been done for us. In my case, Photoshop has already 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 we simply need to click "OK" in the Rotate Canvas dialog box to exit out of it and have Photoshop rotate and straighten our image automatically for us. You should notice that the image has now been rotated and straightened. Everything looks great and fortunately the Statue of Liberty is no longer leaning to the right. Thanks to the Measure Tool and the Rotate Canvas command we were able to straighten the image perfectly without any guess work.
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:
Then, with the Crop Tool selected, simply click near the top left corner of your image and drag down towards the bottom right to create a border around the area 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.