The Transform panel in Lightroom fixes perspective and tilt: it straightens converging vertical lines on buildings, levels crooked horizons, and corrects the keystone effect you get when the camera points up or down. Open the Develop module, scroll to Transform, and click Auto for a one-click fix, Level to straighten only the horizon, or Guided to draw the lines that should be straight. If all you need is to straighten a tilted photo, the Crop tool’s Straighten control or the Level button does it in seconds.
This page covers both jobs: quick straightening, and full perspective correction with Upright, Guided Upright and the manual sliders. In the cloud-based version of Lightroom the same controls live in the Geometry panel instead of Transform.
How to Straighten a Photo Quickly
A tilted horizon is the most common geometry problem and the fastest to fix. There are four ways, all non-destructive:
- Straighten tool in the Crop overlay. Press R to open Crop, click the level icon next to Angle, then drag along a line in the photo that should be horizontal or vertical, such as the horizon or the edge of a door. Lightroom rotates the image so that line becomes true.
- Angle slider. In the same Crop panel, drag the Angle slider, or click and drag outside the crop box to rotate by eye. A grid appears to help you line things up.
- Auto in the Crop panel. The Auto button next to Angle detects lines in the image and levels it for you.
- Level in the Transform panel. Click Level under Upright. It corrects horizon tilt only and leaves perspective alone.
Rotating any image cuts off its corners, so Lightroom crops in to keep a clean rectangle. Shoot a little wider than you need when you know a horizon may be off. Use Rotate in Transform (described below) for small adjustments to a photo you have already corrected for perspective; use the Crop tool’s straightening when tilt is the only problem.
What Perspective Distortion Is
When you tilt the camera up at a tall building, the sensor is no longer parallel to the building’s face. The top is farther from the lens than the bottom, so it records smaller, and the sides appear to lean inward. Tilting down makes them lean outward. The same thing happens horizontally when you photograph a wall at an angle. This is perspective distortion, and it comes from the camera’s position, not from the lens.
It is different from lens distortion, where the lens itself bows straight lines outward (barrel) or inward (pincushion). Fix lens distortion first, then perspective. Converging verticals can be a creative choice, but in architecture, interior photography and real estate photography straight verticals are usually expected.
Why do wide lenses make buildings lean so much? Perspective distortion explains how camera position and angle create it.
Before You Transform: Enable Lens Corrections
In the Lens Corrections panel, tick Enable Profile Corrections (and Remove Chromatic Aberration) before you touch Transform. The lens profile removes barrel or pincushion bowing, so lines are actually straight when Upright analyzes them. If you change lens corrections after applying Upright, click the Upright mode again so it re-analyzes the image.
The Upright Modes
Upright analyzes the lines in the photo and corrects them automatically. The modes:
| Mode | What it corrects | Best for |
|---|---|---|
| Auto | Level, plus a balanced amount of vertical and horizontal perspective | The first thing to try on most photos |
| Level | Horizon tilt only | Landscapes and seascapes |
| Vertical | Level plus converging verticals | Buildings shot from street level |
| Full | Level, vertical and horizontal perspective at full strength | Flat facades shot from an angle; can look extreme |
| Guided | Only the lines you draw | Scenes where the automatic modes pick the wrong lines |
Click each mode and compare. Auto often looks the most natural because it does not force every line to be perfectly true. If a mode does nothing useful, the photo may not have enough clear straight lines for Lightroom to read; use Guided instead.
Using Guided Upright
Guided Upright gives you the most control because you decide which lines matter:
- Click Guided in the Transform panel. The cursor becomes a guide tool, and a loupe appears to help you place points precisely.
- Drag along an edge in the photo that should be vertical, such as the corner of a building.
- Drag a second guide along another vertical edge. After two guides, Lightroom corrects the image so both are vertical.
- Add horizontal guides along features that should be level, such as a roofline or window ledge, to correct horizontal perspective too.
- Drag the ends of any guide to refine it until the correction looks right.
Four guides is the limit. Draw guides along long, clean edges near the sides of the frame; short lines in the middle give less accurate corrections.
The Manual Transform Sliders
The sliders below Upright refine any correction, or do the whole job by hand:
- Vertical tips the image forward or back to straighten converging verticals.
- Horizontal swings it left or right to correct a wall shot at an angle.
- Rotate turns the image to level it. It works alongside the perspective corrections, so use it for small tweaks after Upright.
- Aspect stretches the image horizontally or vertically. Strong vertical correction often makes buildings look short and squat; a small move of Aspect restores their proportions.
- Scale enlarges or shrinks the image within the frame, which is one way to push blank corners out of view.
- X Offset and Y Offset slide the image sideways or up and down, so you can choose which edge loses picture to the correction.
Hold down the mouse button on a slider and a grid overlay appears, which makes it easier to judge when lines are parallel to the frame.
Handling Blank Corners After Correction
Correcting perspective warps the image into a shape that no longer fills the rectangle, leaving blank areas in the corners. Three ways to deal with them:
- Constrain Crop. Tick this box in the Transform panel and Lightroom crops to the largest rectangle inside the corrected image. Clean, but you lose picture area.
- Scale and Offset. Enlarge the image slightly and slide it to keep the most important parts, then crop the rest by hand with the crop tool.
- Fill the corners. Leave the blank areas, finish the edit, and fill them in an editor with content-aware fill, which works well on sky and plain walls.
Choosing the final shape of the frame? Cropping covers aspect ratios and how much you can crop before quality suffers.
Common Mistakes
- Correcting before enabling the lens profile. Upright reads bowed lines and gets the correction wrong.
- Making every vertical perfectly true on a very tall building. Fully corrected towers shot from close up can look top-heavy, as if they lean toward you. Leaving a slight convergence often looks more natural.
- Ignoring stretched subjects. Heavy correction stretches people, round objects and anything near the edges. Check them, and use Aspect to compensate.
- Shooting too tight. Strong correction can crop away a quarter or more of the frame. Leave space around the subject when you know you will correct later.
- Straightening by the wrong line. On a sloping beach or hillside, the land is not level; use the distant horizon or a true vertical such as a lamppost.
Get It Right in Camera
Every correction costs resolution and some sharpness at the edges. To need less of it: turn on the camera’s electronic level or grid display, keep the camera back level when photographing buildings (step back or move higher instead of tilting up), and include more ground than you want so the top of the building fits without tilting. For architectural work where corrections must be perfect, a tilt-shift lens shifts the view upward while the sensor stays parallel to the building, so verticals stay straight with no correction at all.
Try This
Find a photo of a building taken from street level. Enable profile corrections, then click Auto, Vertical and Full in turn and note how each changes the building and how much of the frame is lost. Reset, and correct the same photo with Guided Upright using two vertical guides along the building’s outer edges. Finally nudge Aspect to restore the building’s height. Compare all four versions side by side. Ten minutes of this teaches you which mode suits which kind of scene.
New to the Develop module? Lightroom for beginners walks through the panels in the order most edits use them.
Questions People Ask
Where is the Transform tool in Lightroom?
In Lightroom Classic it is the Transform panel in the Develop module, below Lens Corrections. In the cloud-based version of Lightroom the same Upright controls and sliders are in the Geometry panel.
How do I straighten a crooked photo in Lightroom?
Press R for the Crop tool, click the level icon, and drag along a line that should be straight, or click Auto. You can also click Level under Upright in the Transform panel, which corrects tilt without changing perspective.
Why are the Upright buttons not doing anything?
Upright needs clear straight lines to analyze. Photos of nature, people or soft subjects may give it nothing to work with. Use Guided Upright and draw the lines yourself, or use the Rotate and Vertical sliders by hand.
How do I get rid of white corners after using Transform?
Tick Constrain Crop in the Transform panel to crop them away automatically, or raise Scale and crop by hand. If you want to keep the full frame, fill the corners afterward with content-aware fill in an editor.
Video Tutorial
More Lightroom Tutorials: Browse all Lightroom lessons | Take the Lightroom Quiz