Sub topic 10
Using grids to crop photos and lay out designs
This chapter assumes you know what the thirds grid is, where its four lines and four intersections fall, and how to place a subject and a horizon on it. Here you apply those ideas to existing material: cropping a photo you already have, and laying out a design such as a poster or a web banner.
Cropping is composing after the fact
A crop changes the frame. The subject stays where it was in the scene, but the edges move, so the subject's position relative to the edges changes. That means a crop can move a subject onto a thirds line or intersection, remove empty space, and add or remove lead room.
A crop only works if the frame you cut is still a good frame. Always draw the grid on the new crop rectangle, not on the original image. Beginners often check the original grid, crop, and then find the subject no longer sits where they planned.
A crop workflow
- Turn on the thirds overlay in your editor's crop tool.
- Pick the subject's key point. For a portrait this is usually the nearer eye. For a landscape it is the horizon or the main object.
- Drag the crop edges so that point lands on a line or intersection.
- Check lead room: the subject should have more space in the direction it faces or moves.
- Check the edges for distractions, such as a bright patch or a cut-off limb, and adjust.
Compute a crop in code
You can find the crop rectangle that puts a point on the upper-left intersection. Suppose the subject is at pixel (x, y) in the original and you want a crop of width w and height h. The subject should land at (w / 3, h / 3) inside the crop, so the crop's top-left corner is the subject's position minus that offset.
def crop_for_intersection(subject, crop_size, image_size):
sx, sy = subject
w, h = crop_size
iw, ih = image_size
left = sx - w / 3
top = sy - h / 3
if left < 0 or top < 0 or left + w > iw or top + h > ih:
return None # crop would fall outside the image
return (left, top, left + w, top + h)
print(crop_for_intersection((1500, 900), (1200, 800), (3000, 2000)))
# (1100.0, 633.3333333333334, 2300.0, 1433.3333333333335)
print(crop_for_intersection((100, 100), (1200, 800), (3000, 2000)))
# NoneThe second call returns None because the subject is too close to the corner for that crop size. A smaller crop or a different intersection would be needed.
Aspect ratio matters
Most crop tools can lock the aspect ratio, for example 16:9 or 4:5. Lock it before you place the subject. If you change the ratio afterward, the grid lines move and the placement breaks.
Grids in layout design
Designers use the same grid to place elements, not just subjects. A banner or slide has a few things to place: a headline, an image, a button, a logo. The grid gives each one a reason for its position.
- Put the main image or headline block on a thirds line or intersection.
- Use the left third for text and the right two thirds for an image, or the reverse. This is a simple two-column split derived from the same lines.
- Keep the cells' margins consistent so elements align to the same lines.
The CSS overlay from the earlier chapters is useful here as a check. Place it over a mockup and see whether your elements sit on the lines.
.banner {
display: grid;
grid-template-columns: 1fr 2fr;
align-items: center;
gap: 24px;
}
.banner .text { grid-column: 1; }
.banner .image { grid-column: 2; }The 1fr 2fr columns put the boundary between text and image at one third of the width, so the layout follows the thirds line directly.
Common errors
- Cropping so tightly that the image loses resolution. Check the final pixel size against what you need.
- Forcing the subject to an intersection when it makes the crop cut off something important.
- Cropping away lead room to land on a line.
- Treating the grid as a rule for every element, which makes a layout rigid and crowded.
Exercise
A photo is 3000 by 2000 pixels. The subject's eye is at (1800, 1000). You want a 1500 by 1000 crop with the eye on the upper-left intersection. What are the crop's left and top coordinates, and is the crop valid?
Show answer
The eye should land at (1500 / 3, 1000 / 3) = (500, 333.3) inside the crop. So left = 1800 - 500 = 1300 and top = 1000 - 333.3 = 666.7. The crop spans x from 1300 to 2800 and y from 666.7 to 1666.7. Both fit inside 3000 by 2000, so the crop is valid.
Exercise
Why should you set the aspect ratio of a crop before you position the subject on the grid?
Show answer
The grid is drawn on the crop rectangle. Changing the aspect ratio afterward changes the rectangle's shape, so the grid lines move and the subject no longer sits where you placed it.