Book a call Free rebuild

Cropping

May 18, 2023 Updated November 16, 2026 2 min read

Design glossaryCropping is trimming the edges of an image to remove what is not needed, change its proportions, or focus attention on the subject.

Cropping removes the outer parts of an image and keeps a smaller rectangle from inside it. Unlike resizing, which shrinks or enlarges the whole picture, cropping throws pixels away: the result shows less of the scene, and it has fewer pixels than the original. Photographers and designers crop to tighten a composition, cut out distractions, straighten a horizon, or fit an image into a set shape such as a square thumbnail or a wide banner.

Why crop an image

  • Composition. Moving the subject off center, often near one of the lines in the rule of thirds, usually makes a photo more interesting than placing it dead center.
  • Focus. Trimming empty sky, clutter, or a stray elbow at the edge puts the attention where it belongs.
  • Aspect ratio. Layouts need images in fixed proportions, such as 1:1 for avatars, 4:3 or 3:2 for cards, and 16:9 for heroes and video.
  • File size. Fewer pixels means a lighter file, though compression and sensible dimensions matter more.

Leave some breathing room. Cropping tight to a face or a product edge looks cramped, and a heavy crop of a small photo leaves too few pixels to look sharp on large or high-density screens. Check the resolution of what is left.

Cropping in WordPress

WordPress crops in three places:

  1. Automatic sizes. On upload, WordPress generates several thumbnail sizes. The thumbnail size is cropped to exact dimensions by default (an option under Settings, Media), and themes can register their own hard-cropped sizes with add_image_size(). These crops come from the center, so a subject near the edge can lose its head.
  2. The image editor. In the Media Library, Edit Image offers crop, rotate, flip, and scale, with fixed aspect ratios. WordPress saves the edit as a new file and keeps the original, so you can restore it later.
  3. The Image block. The block toolbar has a crop button with preset ratios and zoom, handy for fixing a single image in place.

Cropping with CSS

A browser can also crop visually without touching the file. Giving an image a fixed aspect-ratio and object-fit: cover fills the box and trims whatever overflows, and object-position chooses which part stays visible. It is the usual way to keep a grid of cards even when the uploaded photos come in mixed shapes.

When a crop needs to change with the screen, such as a wide landscape on desktop and a tight portrait on a phone, the <picture> element can serve a different crop at each breakpoint. Designers call this art direction.

Source: MDN, object-fit.

WP Services

WordPress services at revolutionary pricing.

Productized WordPress services, from builds to care, delivered by Seahawk and tracked in one app. For the WordPress lovers.