Skip to content

How to Crop and Straighten Photos: Composition, Ratios and Level Horizons

Cropping in photography means trimming the edges of a picture to strengthen its composition, fit an aspect ratio or remove distractions. Straightening is its partner: you rotate a tilted horizon level first, then crop away the empty corners the turn leaves. It is the simplest edit there is, and one of the most effective, because the same photo can feel cluttered or deliberate depending on where the edges fall. This guide covers the composition choices behind a good crop, how to pick an aspect ratio, how much resolution a crop costs, and how to crop and straighten a photo online.

A lighthouse on a rocky headland. A 4:5 crop frame with rule-of-thirds lines sits around the lighthouse, the rest of the photo is dimmed, and the cropped picture is shown beside it.

What a crop actually does

A crop keeps a rectangle of the original pixels and discards everything outside it. It does not resample, blur or sharpen the part you keep: each remaining pixel is exactly the pixel that was there before. Two things change: the framing (what the viewer sees and where it sits in the frame) and the pixel count (the image is now smaller).

You are trading resolution for a better composition, so make the trade buy something: a stronger subject, a cleaner background, or a shape that fits the destination.

Composition: where to put the edges

The rule of thirds

Imagine two vertical and two horizontal lines dividing the frame into a 3×3 grid. Placing the subject on one of those lines, or where two of them cross, usually looks more dynamic than dead center. A horizon on the lower third line emphasizes the sky; on the upper third, the land or water. It is a starting point rather than a law: symmetrical scenes, such as reflections or architecture shot straight on, often look best centered.

Photoyam draws the grid for you. On the Crop page, thirds lines appear inside the box while you drag it or its handles. In the Pro editor, the Crop tool’s options bar has an Overlay menu set to Rule of Thirds by default; switch it to None if the lines get in the way of judging the edges.

Headroom and lead room

Headroom is the space between the top of a person’s head and the top of the frame. Too much makes the subject look small and sunk; none at all feels cramped. In a tight headshot it is fine, even common, to crop through the top of the hair, as long as the eyes sit roughly on the upper third line.

Lead room (or looking room) is space in front of a subject that is moving or facing sideways. A cyclist heading right needs more space on the right than the left; crop it the other way and the subject seems about to leave the picture.

Where not to cut

Avoid placing an edge exactly at a joint (wrist, knee, ankle, neck), which makes limbs look amputated. Cut mid-thigh or mid-forearm instead. Also check the edges for small distractions, such as a bright patch, half a sign or a stray elbow. A slightly tighter crop usually fixes them.

Choosing an aspect ratio

The aspect ratio is the shape of the crop, written as width to height. Decide it from where the image is going, before you start dragging.

Common crop ratios
RatioTypical useIn Photoyam
1:1Profile pictures, square posts, product gridsPreset
3:2The native shape of most DSLR and mirrorless cameras; 4×6 in and 8×12 in printsPreset (2:3 for portrait)
4:3The native shape of most phone cameras; slidesPreset (swap for 3:4)
16:9Video frames, YouTube thumbnails, desktop wallpapers, website bannersPreset
4:5Tall social feed posts; 8×10 in printsPreset
9:16Stories, Reels, phone wallpapersPreset
FreeAnything where the shape is up to youPreset (the default)

Every ratio in the table is a preset, in portrait as well as landscape. The Crop page lists Free, Original ratio, Square 1:1, 4:5, 3:2, 4:3, 16:9, 9:16, 2:3, an ID / passport photo 35 × 45 mm shape and a Custom ratio you type yourself (such as 5:7 or 21:9), with the most common ones also as one-tap chips above the menu. Its Swap orientation button turns the chosen ratio on its side (4:3 becomes 3:4). A JPG or PNG cropped to the passport shape is saved with the print density that makes it print at exactly 35 × 45 mm, and the page warns when the crop has too few pixels for a sharp print. A second group, Social media (exact size), holds presets such as Instagram portrait 1080 × 1350 or YouTube thumbnail 1280 × 720 that also save the crop at exactly that pixel size. In the Pro editor, the Crop tool’s Ratio menu offers Free, 1:1, 4:3, 3:4, 3:2, 2:3, 5:4, 4:5, 16:9 and 9:16, with a ⇄ button beside it that swaps width and height.

When the destination asks for exact pixels rather than a shape, Image › Canvas Size… (Ctrl+Alt+C) in the editor is the precise route. Enter the exact width and height you want, choose an Anchor to decide which part is kept (the center square trims evenly from both sides), and click OK. A canvas smaller than the image crops it. For example, a 4:5 crop from a 4000×3000 photo is 2400×3000.

Cropping without running out of pixels

Pixel count falls with the area you keep. Keeping the middle half of a 4000×3000 photo in each direction leaves 2000×1500: a quarter of the pixels, 3 megapixels out of 12. That is still plenty for a 1080-pixel social post or a web page, but for a print viewed up close (about 300 pixels per inch is the usual target), 2000 pixels covers only about 6.7 inches.

So before you commit a tight crop, ask how big the result will be shown. If the crop ends up smaller than the display size, the image will be enlarged and look soft. The Crop page shows the crop size under the photo as you drag, and the Pro editor shows the document size in the status bar at the bottom of the window, so check it before you download or right after you apply the crop.

Straighten before you crop

A horizon tilted by even one or two degrees is noticeable, and sea horizons and building edges make it obvious. Straightening rotates the whole picture, which always exposes empty triangles at the corners, so you then crop inward to remove them. That is why straightening comes first.

The cost grows with the angle. For a 3:2 landscape photo, keeping the original shape, a 1° correction trims roughly 2.5% off each dimension and a 3° correction roughly 7%. Past about 5°, ask whether the tilt was intentional.

Photoyam gives you three ways to do it:

  • The Crop tool’s Straighten button. Click Straighten in the options bar, then drag a line along something that should be level, such as the horizon or a windowsill. When you release, the image rotates so that line is horizontal. The canvas keeps its size, so the corners of the photo are clipped and the exposed corners show as transparent.
  • The Ruler tool. Drag along the horizon to read its angle (A) in the options bar, then click Straighten. It works the same way as above, and is handy when you want to see the angle before committing.
  • Image › Image Rotation › Arbitrary… The Rotate Canvas dialog has an angle slider and an Angle field that stay in sync, plus Clockwise and Counterclockwise buttons for the direction. The photo behind the dialog tilts live as you type. Here the canvas grows to fit the rotated photo, so nothing is clipped; you crop the empty corners afterward.

All three live in the Pro editor. The Crop page itself only turns a photo in 90° steps (its 90° left and 90° right buttons), so for a slight tilt use the Rotate page (below), or click Edit further in the Pro editor and straighten there.

One caution with the drag-a-line methods: they always make the line horizontal. Drag along a vertical edge, like a doorframe, and the picture turns almost 90°. If that happens, undo and use the Arbitrary dialog instead.

Crop and straighten online, without the Pro editor

If you would rather not open the Pro editor, two quick tool pages do the same job in sequence. Both work in your browser tab, so the photo is never uploaded.

  1. Level the photo. On the Rotate page, choose Any angle or straighten and drag the Straighten slider under the preview, or tap its ±0.1° and ±1° buttons, until the horizon runs along the grid drawn over the picture. Positive numbers turn clockwise.
  2. Download the levelled image. With Corners left on Automatic, a tilt of up to 10° is cropped to the largest rectangle with the photo’s own shape, so no empty wedge is left. It is saved as name-rotated, a little smaller than the original.
  3. Frame it. If you also want a different shape or a tighter frame, open that file on the Crop page, pick a ratio and drag the box. Then download the finished crop.
Photoyam's Rotate Canvas dialog over a sea photo whose horizon dropped to the right: Angle 3 with Counterclockwise selected, and the photo behind the dialog already turned level, the canvas grown to hold its tilted corners.
The Rotate Canvas dialog (Image › Image Rotation › Arbitrary…) with 3° counterclockwise. The photo behind it previews the turn before you click OK: the horizon is level, and the canvas has grown to hold the rotated corners, which you then crop away.

Step by step: crop a photo in Photoyam

For a straight crop, the Crop page does the whole job in the page. Nothing is uploaded; the photo is processed on your device.

  1. Open the photo. On the Crop page, click Choose an image or drop a file onto the page. The photo appears right there with a crop box over the whole frame.
  2. Choose a ratio. Tap a chip such as 4:5 for a tall feed post, or pick from the Aspect ratio menu, which also holds Custom ratio and the Social media (exact size) group. A new ratio takes the largest box of that shape. Click Swap orientation to turn the ratio on its side.
  3. Frame the shot. Drag inside the box to move it, drag a corner or edge handle to resize it, or press outside it to draw a new one. A thirds grid shows while you drag. For exact values, type Width, Height, X and Y under Crop area (pixels); arrow keys nudge the box (Shift moves 10 pixels) and Alt plus an arrow resizes it. Reset to the whole image starts over.
  4. Turn it if it is sideways. The 90° left and 90° right buttons rotate the photo before you crop.
  5. Download. The readout under the photo shows the crop size and ratio. Click Download (for a JPG it reads Download JPG): the file keeps your photo’s format, gets -cropped added to its name, and is cut at full resolution. JPG and WebP files have a Quality slider under Save as, starting at 92.
The Photoyam Crop page with a lighthouse photo: a 4:5 crop box with handles around the lighthouse and its rock, the rest of the photo dimmed; the side panel shows Aspect ratio 4:5, Swap orientation, and Width 600, Height 750, X 150, Y 200, and the readout under the photo reads Crop 600 × 750 px (4:5), image 1500 × 1000, above Download JPG and Edit further in the Pro editor.
A 4:5 crop on a 1500 × 1000 photo on the Crop page. The box can sit anywhere in the frame; the readout under the photo confirms 600 × 750 before you download.

In the Pro editor

Use the editor when you also need to straighten, check the size against other layers, or crop to a perspective. Click Edit further in the Pro editor on the Crop page, or open the photo in the editor and press C for the Crop tool.

  1. Straighten if needed. Click Straighten in the options bar and drag along the horizon. Skip this if the photo is already level.
  2. Choose a ratio. In the options bar, set Ratio (Free, 1:1, 4:3, 3:4, 3:2, 2:3, 5:4, 4:5, 16:9 or 9:16) and use the ⇄ button to swap width and height. Leave Overlay on Rule of Thirds to see the grid.
  3. Drag the crop box. Drag from one corner of the area you want to keep to the opposite corner. With a ratio set, the height follows the width automatically. Then drag a corner or edge handle to resize the box, drag inside it to move it, or nudge it with the arrow keys; a drag that starts outside the box draws a new one. After straightening, keep the box inside the photo so no transparent corner is included.
  4. Apply. Click Apply or press Enter. Press Escape or click Cancel to clear the box without cropping.
  5. Check and export. Look at the new size in the status bar, then use File › Export As to save a PNG, JPG or WebP copy.
The Photoyam Pro editor with the Crop tool active on a lighthouse photo: the options bar shows Ratio 4:5, the swap button, W 536 and H 670, Overlay set to Rule of Thirds, Apply, Cancel, Straighten and Perspective, and a portrait crop box with a thirds grid sits around the lighthouse.
The Pro editor’s Crop tool with a 4:5 ratio. The thirds grid inside the box helps place the horizon and subject; nothing is removed until you click Apply.

The options bar also has a Perspective mode for a different job: squaring up something photographed at an angle, such as a document, a painting or a sign. Turn it on, drag the four corner handles onto the corners of the object, and click Apply Perspective. The result is a flat, rectangular image of just that object.

Common mistakes

  • Cropping before straightening. The rotation then exposes corners inside your carefully chosen frame, and you have to crop a second time, losing more.
  • Cropping too tight for the destination. A crop that looks great on a phone can be too small for a print or a full-width banner. Check the pixel size against where the image will be shown.
  • Centering everything by habit. Try the subject on a third line and compare. Keep the centered version only if it is clearly stronger.
  • Leaving a subject no room to move or look into. Give space in the direction of motion or gaze.
  • Choosing the ratio last. If the image must be 16:9 or square, set that first; otherwise a crop you like may not survive the forced reshape later.

Try it in Photoyam

Crop to a free shape, a portrait or landscape ratio, or an exact social size right in the page, then open the Pro editor when you need to straighten a tilted horizon. Free, no sign-up, and your photo stays on your device.

FAQ

Does cropping reduce image quality?

The pixels you keep are unchanged, so the cropped area is exactly as sharp as before. What drops is the pixel count. That only becomes visible if you then display or print the crop larger than its new resolution supports.

How do I crop to a portrait ratio like 4:5 or 9:16?

Pick it from the presets. The Crop page lists 4:5, 9:16 and 2:3 next to the landscape ratios, plus exact social sizes such as Instagram portrait 1080 × 1350, and Swap orientation turns any ratio on its side. The Pro editor's Crop tool has 3:4, 2:3, 4:5 and 9:16 in its Ratio menu and a swap button next to it. Use Image, Canvas Size only when you need an exact pixel size.

Can I adjust the crop box after drawing it?

On the Crop page, yes: drag inside the box to move it, drag any of its eight handles to resize it, or type exact Width, Height, X and Y values. In the Pro editor's Crop tool too: drag a handle to resize the box, drag inside it to move it, or use the arrow keys; a drag that starts outside the box draws a new one. Press Escape or click Cancel to clear it, and Enter or Apply to commit. If you commit a crop you don't like, Undo brings the full image back.

Why are there empty corners after I straighten?

Rotating a rectangle inside a rectangle always exposes triangles at the corners. Crop inward afterward until the empty areas are gone; the Rotate page does this for you on a small tilt. The bigger the tilt, the more you have to trim.

Can I crop and straighten a photo online without installing anything?

Yes. Level the photo on the Rotate page with its Straighten slider; for a tilt of up to 10 degrees the empty corners are cropped off automatically, and the Crop page can then reframe it. For a drag-along-the-horizon method, open the photo in the Pro editor and use the Crop tool's Straighten button. Both run in your browser and nothing is uploaded.