Sub topic 3
Setting aspect ratios and exact output sizes
The Crop tool can constrain a crop in two different ways. One fixes the shape of the crop and leaves its pixel size open. The other fixes the exact pixel dimensions of the finished file. They look similar in the options bar, but they behave differently, and mixing them up is a common cause of blurry or wrongly sized output.
This chapter assumes you can already draw and commit a crop with the Crop tool (C), and that you know the difference between pixel dimensions and resolution (pixels per inch). If the difference between cropping and resampling is hazy, review the first chapter of this tutorial.
Aspect ratio versus output size
An aspect ratio is the proportion of width to height, such as 4:5. It says nothing about how many pixels the image has. A 4:5 image can be 400 × 500 or 3200 × 4000 pixels.
The Ratio dropdown in the options bar has two modes that matter here:
| Mode | What you control | Pixel size of the result | Resamples the image? |
|---|---|---|---|
| Ratio (for example 4:5) | Shape of the crop only | Whatever pixels fall inside the crop box | No |
| W x H x Resolution | Exact width, height and resolution | Exactly what you typed | Yes, to match |
In Ratio mode, a crop box that covers 3200 × 4000 pixels gives a 3200 × 4000 file. A smaller box gives a smaller file. Pixels are discarded, but none are invented or averaged.
In W x H x Resolution mode, Photoshop first crops to the shape you asked for. It then scales the result to the exact pixel size. A box smaller than the target is enlarged (upsampled). A box larger than the target is reduced (downsampled).
Using the ratio presets
Choose the Crop tool and open the Ratio dropdown at the left of the options bar. The exact list varies by version. These entries are the usual ones:
- Ratio: lets you type your own values into the two fields.
- W x H x Resolution: adds a resolution field and units.
- Original Ratio: locks the crop to the shape of the current image.
- Square (1:1), 4:5 (8:10), 5:7, 2:3 (4:6), 16:9: common fixed ratios.
- Front Image: copies the width, height and resolution of the image in the front window.
- New Crop Preset and Delete Crop Preset: save and remove your own presets.
When you pick a preset, the crop box snaps to that shape. Dragging a corner or edge resizes it while keeping the shape. Dragging inside the box moves the image underneath it.
Rotating the orientation
A ratio preset is not tied to landscape or portrait. Click the swap arrow between the two fields, or press X while the Crop tool is active, to swap width and height. A 4:5 crop becomes 5:4. Use this when a preset such as 5:7 starts out in the wrong orientation for your photo.
Typing your own ratio
Choose Ratio and type values into the two fields, such as 1.91 and 1. Do not type units in Ratio mode. Typing 3 and 2 and typing 6 and 4 give the same shape.
Clear the fields with the Clear button when you want a free crop again. If you leave a preset active and cannot drag a free shape, the constraint is still on. Clear it, or pick Ratio with empty fields.
> Note: Holding Shift while dragging a corner also toggles proportional resizing, but the result depends on whether a ratio is already set. For predictable results, set the ratio in the options bar.
Working out the largest crop for a ratio
It helps to know in advance how big a given ratio can be. The limiting dimension is whichever one runs out first. The calculation below finds the largest crop of a given ratio that fits inside an image:
def max_crop(width, height, ratio_w, ratio_h):
"""Largest crop with the given aspect ratio that fits in the image."""
scale = min(width / ratio_w, height / ratio_h)
return round(scale * ratio_w), round(scale * ratio_h)
# A 6000 x 4000 px photo (3:2)
print(max_crop(6000, 4000, 4, 5)) # (3200, 4000): height is the limit
print(max_crop(6000, 4000, 16, 9)) # (6000, 3375): width is the limit
print(max_crop(6000, 4000, 1, 1)) # (4000, 4000)Cropping a 3:2 photo to 4:5 discards almost half the width. Cropping the same photo to 16:9 discards only the top and bottom. Wide crops from wide photos lose little. Tall crops from wide photos lose a lot.
Cropping to an exact pixel size
Use W x H x Resolution when a destination demands exact dimensions: a web banner, a social media tile, a print slot.
- Select the Crop tool.
- In the Ratio dropdown, choose W x H x Resolution.
- Type the width, then the height. Set the unit in each field (px, in, cm, mm, pt or pica) by right-clicking the field or typing the unit after the number.
- Type the resolution and choose pixels/inch or pixels/cm.
- Drag the crop box to frame the subject. The box keeps the ratio of your width and height.
- Press
Enterto commit.
The committed image has exactly the size you typed. You do not need to open Image Size afterwards.
A worked print example
You want an 8 × 10 inch print at 300 pixels per inch from the 6000 × 4000 photo above.
- Target size: 8 in × 300 = 2400 px wide, 10 in × 300 = 3000 px tall.
- Enter
8 in,10 inand300 pixels/inch. - The ratio is 4:5, so the largest crop is 3200 × 4000 px, as calculated earlier.
- Photoshop scales 3200 × 4000 down to 2400 × 3000. That is a 75% reduction, so there is plenty of detail.
If you framed a tighter crop of only 1200 × 1500 px, Photoshop would scale it up to 2400 × 3000. That is a 200% enlargement, and the print would look soft.
> callout tip > Before you commit a W x H x Resolution crop, compare the pixels inside your crop box with the target. If the box is much smaller than the target, you are upsampling. Aim for a box at least as large as the target in pixels when you can. > callout
Choosing the interpolation method
When the crop scales pixels, Photoshop uses the method set in Preferences > General > Image Interpolation (Edit > Preferences on Windows, Photoshop > Settings on macOS). Common choices:
- Bicubic Smoother: suited to enlarging.
- Bicubic Sharper: suited to reducing, and keeps detail.
- Bicubic Automatic: lets Photoshop choose based on whether it is enlarging or reducing.
Interpolation only matters in W x H x Resolution mode. In Ratio mode nothing is resampled.
Using Front Image to match another document
Open both the reference image and the image you want to crop. Click the reference to make it the front window, switch to the Crop tool, and choose Front Image in the Ratio dropdown. The fields fill with that image's width, height and resolution. Then click the image you want to crop and drag. Its crop will match the reference exactly.
This is useful when a set of photos must all come out at the same size. For large batches, record the crop as an action instead, because Front Image values are not saved with the document.
Saving your own preset
If you often crop to the same size, save it:
- Choose W x H x Resolution or Ratio and enter your values.
- Open the Ratio dropdown and choose New Crop Preset.
- Give it a clear name, such as
Banner 1200x628 72ppi. Include units and resolution in the name so you can tell similar presets apart. - Click OK. The preset now appears in the Ratio dropdown.
A preset stores width, height, unit and resolution. Choose Delete Crop Preset to remove one you no longer need.
Choosing a mode
The decision depends on whether the final pixel dimensions are fixed.
Common problems
- The image came out blurry. You probably used W x H x Resolution with a crop box smaller than the target, so Photoshop enlarged it. Use a larger crop box, or accept a smaller output size.
- The file has an unexpected pixel size. You used Ratio mode. Ratio mode never sets pixel size, so the result is whatever the box covered. Switch to W x H x Resolution if the size must be exact.
- The crop will not go landscape. The preset is set to portrait. Press
Xor click the swap arrow. - I can't drag freely any more. A ratio or size is still active. Click Clear.
- The wrong units appear. Each field has its own unit. Check that width and height both read the unit you intended, such as
inand notpx. - The resolution field is missing. It appears only in W x H x Resolution mode.
> callout warning > Resolution does not change the number of pixels by itself. In W x H x Resolution mode, typing 8 in at 300 pixels/inch gives 2400 px. Typing 8 in at 72 pixels/inch gives 576 px. If you set the wrong resolution, the pixel size is wrong even though the inch size looks right. > callout
Summary of the key decisions
Use a ratio when you only care about shape and want to keep every original pixel. Use W x H x Resolution when the destination fixes the dimensions, and plan the crop so you downsample rather than upsample. Save the sizes you reuse as presets.
Exercise
A photo is 5000 × 3000 px. You need a 1:1 crop for a profile picture that must be exactly 800 × 800 px. Which Crop tool mode do you use, how large is the largest square crop, and is the result downsampled or upsampled?
Show answer
Use W x H x Resolution mode with 800 px width and 800 px height (any resolution you need). The largest square is limited by the height, so it is 3000 × 3000 px. Photoshop scales it down to 800 × 800 px, so the result is downsampled. In plain Ratio mode with 1:1, the file would stay 3000 × 3000 px or whatever size the box covered.
Exercise
You choose the 5:7 preset, but the crop box comes out landscape and your photo is portrait. How do you fix it without touching any other setting, and what does the committed crop's pixel size depend on if you stay in Ratio mode?
Show answer
Press X, or click the swap arrow between the fields, to switch to 7:5 orientation... then swap again if needed so the box matches the photo's orientation. In Ratio mode, the committed pixel size depends only on how many pixels the crop box covers, because no resampling happens.
Exercise
You commit a 1000 × 1250 px crop area using W x H x Resolution set to 8 in × 10 in at 300 pixels/inch. What is the output size in pixels, and why might the result look soft?
Show answer
The output is 2400 × 3000 px. The 1000 × 1250 px area is enlarged by a factor of 2.4, so Photoshop has to invent the extra pixels by interpolation, which makes the image look soft.