Sub topic 7
Principles of cropping
This chapter covers how to decide what to cut from a photo and what to keep. It assumes you know basic HTML and CSS, including the img element, width and height, and responsive breakpoints. Aspect ratios were covered in the previous chapter. The CSS that applies a crop comes in a later chapter, so here we focus on the decisions.
What cropping does
Cropping removes the outer part of an image. The photo ends up with a different frame, and the subject fills more or less of it. A crop changes what the viewer sees first, so it is an editing decision as well as a technical one.
You crop for three common reasons:
- To fit a layout slot with a fixed aspect ratio, such as a 16:9 hero banner or a square card thumbnail.
- To remove distractions, such as a stranger at the edge, clutter, or a bright patch that pulls the eye away.
- To strengthen the subject by cutting empty space around it.
Principles to follow
Crop for the message first
Decide what the photo is for, then keep what supports that. A photo of a baker at an oven might need the hands and the loaf, or the baker's face and the whole kitchen. The right crop depends on the page's message.
Keep the subject whole
Avoid cuts that slice through a body part at a joint. A frame that ends at a person's ankles, wrists, or chin looks accidental. Cut through the middle of a limb, or leave the full shape inside the frame. Faces need a margin above the head and around the eyes. Never clip the top of a head by accident.
Leave breathing room in the direction of action
If a person looks or moves to the right, leave more space on the right. The subject then seems to have somewhere to go. A subject pressed against the edge they face feels cramped.
Crop from the side with the most spare room
Look at where the photo has unused space (sky, floor, wall) and remove that first. Cutting into the subject should be the last resort.
Crop to a ratio, not just to taste
Pick the target aspect ratio before you drag the crop box. Cropping freehand and then forcing the result into a slot leads to a second, unplanned crop by the browser.
Crop limits and resolution
Every crop discards pixels. A 4000 × 3000 photo cropped to half its width leaves 2000 pixels across. If the page displays that image at 1200 CSS pixels wide on a 2x screen, you need 2400 pixels, and the crop is already too small.
Check the pixel size after cropping, not before. A tight crop of a small source will look soft.
| Source width | Crop keeps | Remaining width | Sharp at 1000 CSS px on a 2x screen? |
|---|---|---|---|
| 4000 px | 100% | 4000 px | Yes |
| 4000 px | 50% | 2000 px | Yes |
| 4000 px | 40% | 1600 px | No, it needs 2000 px |
A simple decision flow
Common errors
- Cropping a photo that was shot tightly, which leaves no margin for different screen shapes.
- Centering every crop by default, so the subject sits in the middle even when it was off-center.
- Cropping once for the desktop layout and assuming it works on a phone. A wide crop shrunk onto a narrow screen makes the subject tiny. Later chapters show how to make separate crops.
- Saving the cropped result over the original. Keep the uncropped master so you can make a new crop later.
Exercise
A 3000 × 2000 photo will fill a 600 CSS pixel wide card on a 2x screen. You crop it to keep 60% of the width. Is the result sharp enough, and what is the first thing you should crop away?
Show answer
Keeping 60% leaves 1800 px across. The card needs 600 × 2 = 1200 px, so the crop is sharp enough. Crop away the spare space (empty sky, floor, or wall) first, and cut into the subject only as a last resort.