Sub topic 8
Correcting Perspective with the Perspective Crop Tool
This chapter assumes you can open and save images in Photoshop, find tools and the options bar, and understand layers and pixel dimensions at a basic level. You should also know how the standard Crop tool works, including how it handles the area outside the crop boundary.
What the Perspective Crop tool does
The Perspective Crop tool crops an image and corrects perspective distortion in one step. Perspective distortion happens when the camera is not square to the subject. A building photographed from the ground looks like it leans inward at the top. A document photographed at an angle looks like a trapezoid. The edges that should be parallel converge instead.
The standard Crop tool always produces a rectangle from a rectangle. The Perspective Crop tool lets you draw a four-sided shape that is not a rectangle. Photoshop then stretches that shape into a rectangle. The result is a flat, rectangular image in which the lines you aligned to are parallel.
The tool is grouped with the Crop tool in the toolbar. Press and hold the Crop tool icon, then choose Perspective Crop. The shortcut C selects the Crop tool group, and Shift+C cycles through the tools in the group.
The following diagram shows what happens to the four points you place.
Placing the crop shape
Draw the initial box
Select the tool, then click and drag across the image to draw a rectangle. It does not need to be accurate. You can also click once and let Photoshop show a default boundary around the whole image, depending on your version and settings.
A grid appears inside the box. The grid is the most useful part of the tool, because it shows how Photoshop will warp the image. The correction is correct when the grid lines run parallel to the lines in the image that should be parallel.
Move the corner handles
Each corner has a handle. Drag a corner to a new position and the box becomes a four-sided shape. You can move each of the four corners independently.
For a building with converging vertical lines, the usual procedure is:
- Drag the top-left handle to the top-left corner of the building face.
- Drag the top-right handle to the top-right corner.
- Do the same with the two bottom handles.
- Look at the vertical grid lines. They should sit parallel to the vertical edges of the building, such as window frames and wall corners.
You can also drag a side handle. This moves a whole edge, which is helpful when you only need to correct in one direction.
Align to something that is truly straight
The tool corrects whatever you tell it is rectangular. If you align the grid to a feature that is not really straight or not really parallel, the result will look wrong. Good references include:
- Door frames and window frames.
- Wall corners and the edges of a facade.
- The edges of a sheet of paper, a whiteboard or a picture frame.
- Tile lines and shelf edges.
Poor references include curved roofs, trees, a wall that actually slopes, and any object that is itself rotated or tapered by design.
Options bar settings
The options bar shows settings that control what Photoshop does when you commit the crop.
| Setting | What it does |
|---|---|
| W x H | Sets the width and height of the output as a ratio or a fixed size, but only when you fill in the fields. |
| Front Image | Fills the W and H fields with the dimensions of the current image. |
| Clear | Empties the fields so the tool does not force a size. |
| Show Grid | Turns the perspective grid on or off. |
If the W and H fields are empty, the output size is determined by the shape you draw. Photoshop takes the dimensions of the shape and uses them for the final rectangle. If you fill in both fields, Photoshop crops to that exact proportion and size, which can change the look of the result.
Why leave W and H empty
For most corrections, leave the fields empty. When you fill them, the tool must fit your four-sided shape into a fixed output, which can stretch the content. The stretching makes circles look like ellipses and text look wide or narrow. If you need a specific size, it is safer to commit the crop first, then use Image > Image Size or the Crop tool with a preset.
Show Grid
The grid exists to help you judge alignment. Keep it on while you work. If it distracts you when you check the result, turn it off. The setting does not change the final image.
Committing the crop
Press Enter or Return, or click the checkmark in the options bar, to apply the crop. Press Esc to cancel and keep the original.
When you commit, Photoshop does three things:
- It cuts away everything outside the four-sided shape.
- It warps the pixels inside the shape so the shape becomes a rectangle.
- It resamples the result. This means it calculates new pixel values, because the warp does not map pixels one to one.
Resampling softens the image slightly. Areas that Photoshop stretches the most lose the most sharpness, and the stretching is greatest where the trapezoid is narrowest. A strong correction of a very distorted photo will look softer at the narrow end than at the wide end.
Perspective Crop and non-destructive editing
The Perspective Crop tool is destructive. It always changes the pixels in the layer, and it does not offer a Delete Cropped Pixels checkbox in the way that the standard Crop tool does. After you commit, the cropped area is gone from that layer, apart from the undo history.
Plan for this before you start:
- Duplicate the layer (
Ctrl+Jon Windows,Cmd+Jon macOS) and crop the copy, or save a version of the file first. - If the image is a Smart Object, convert it carefully. Cropping a Smart Object with the Perspective Crop tool may flatten or rasterize its content depending on the version. Test on a copy.
- Keep a copy of the original file when the source is a one-off scan or photo you cannot retake.
If you need an adjustable correction instead, consider Edit > Transform > Perspective or Edit > Transform > Distort on a Smart Object layer, or the Filter > Adaptive Wide Angle and Filter > Lens Correction tools. These can be reapplied or changed later, which the Perspective Crop tool cannot do.
Worked example: rectifying a photographed document
You photograph a printed page lying on a desk. The camera was above and slightly to the left, so the page looks like a trapezoid. You want a flat rectangular page.
- Open the photo and duplicate the background layer.
- Choose the Perspective Crop tool.
- Drag a box roughly over the page.
- Move each corner handle to the matching corner of the paper. Zoom in with
Ctrl+PlusorCmd+Plusto place each handle precisely. - Check that the grid lines follow the edges of the page. The outer border of the grid should sit on the paper's edge.
- Leave W and H empty.
- Press
Enter.
Photoshop returns a rectangular page. The text lines are now horizontal and parallel, and the margins are even.
Check the proportions. A sheet of A4 paper has a height-to-width ratio of about 1.414. If the result looks too tall or too wide, the correction has altered the proportion, because the tool does not know the real shape of the page. In that case, undo and either adjust the handles or set the correct ratio in the W and H fields. For A4 in portrait, entering a width of 210 and a height of 297 in the fields gives the correct ratio. Photoshop then fits the shape into that proportion.
Correcting a building
The same procedure works for architecture, with more judgement involved.
Suppose you shot a tall building from the ground with the camera tilted upward. The vertical edges lean toward a point above the building.
- Place the two top handles on the top corners of the facade.
- Place the two bottom handles on the bottom corners.
- Check that the vertical grid lines match the vertical edges you trust, such as window columns.
- Commit.
Because the top is narrower than the bottom in the source, Photoshop widens the top. The result can look stretched vertically, since the tool pulls pixels outward at the top. If the building now looks too short or too wide, you have overcorrected. Undo and move the handles so they sit a little inside the true edges, then correct only part of the way. A building that is fully straightened can look unnatural, and a partial correction often looks better.
You may also need to leave extra space around the shape. The warp can push content beyond the edge of the canvas at the top. If that happens, include a margin of sky above the roof when you place the handles, so the correction has room to work.
Common problems and how to fix them
| Problem | Likely cause | Fix |
|---|---|---|
| The result looks stretched or squashed | The W and H fields hold a ratio that does not match the subject | Click Clear, or enter the correct ratio |
| Text or circles look distorted | The four handles do not form the true rectangle | Zoom in and reposition the handles on exact corners |
| The result is soft | The correction was strong, so resampling spread pixels | Apply a gentle correction, or sharpen the result afterward |
| Part of the subject is cut off | The shape was drawn inside the subject's edge | Undo and move the handles outward |
| The lines are still not parallel | You aligned to an edge that is not straight | Choose a different reference, such as a door frame |
| You cannot adjust the crop later | The tool is destructive | Work on a duplicate layer or a saved copy |
Choosing between Perspective Crop and other tools
The Perspective Crop tool is quick for flat subjects and for simple building corrections. It has limits.
- Use Perspective Crop when you have a flat, rectangular subject, such as a document, a painting or a screen.
- Use
Filter > Lens CorrectionorEdit > Transform > Perspectivewhen you want to adjust after the fact or correct barrel distortion from the lens. - Use the standard Crop tool with the Straighten option when the only problem is a tilted horizon and the lines do not converge.
If the image has both a tilt and converging lines, correct the perspective first. Then straighten any remaining rotation with the standard tool. Doing the perspective step first avoids correcting a rotation that the perspective change would have altered anyway.
Practical checklist
- Duplicate the layer before you crop.
- Zoom in and place each handle on an exact corner.
- Judge the grid against lines you know are straight.
- Leave W and H empty unless you know the correct ratio.
- Check the proportions of the result against what the subject should look like.
- Prefer a partial correction for buildings.
- Sharpen lightly if the correction was strong.
Exercise
You photograph a framed poster from the side. After using the Perspective Crop tool with the W and H fields empty, the poster is rectangular but looks too wide. The real poster is 24 inches wide and 36 inches tall. What do you do, and why did the problem happen?
Show answer
Undo the crop and enter the true ratio, such as 24 in the W field and 36 in the H field (or any values with the same 2:3 proportion), then commit again. The problem happened because the tool only makes the four-sided shape into a rectangle. It does not know the real proportions of the poster, so the shape you drew decided the output ratio. Because the camera was to the side, the shape was wider than the poster really is.
Exercise
A colleague asks you to correct a building photo with the Perspective Crop tool and says they will want to tweak the correction next week. Is this tool a good fit? Name one alternative and one precaution.
Show answer
Not a good fit, because the Perspective Crop tool is destructive and cannot be adjusted after you commit it. An alternative is to convert the layer to a Smart Object and use Edit > Transform > Perspective, or use Filter > Lens Correction, so the correction can be changed later. A precaution, if the tool is used anyway, is to duplicate the layer or save a copy of the file first.
Exercise
You are correcting a photo that is both rotated a few degrees and has converging vertical lines. In what order should you correct them, and what do you align the Perspective Crop grid to?
Show answer
Correct the perspective first with the Perspective Crop tool, then fix any remaining rotation with the Crop tool's Straighten option. Align the grid to edges that you know are straight and should be parallel, such as door frames, window frames and wall corners.