Sub topic 2
Set pixel dimensions and resample correctly
This chapter assumes you can navigate layers, the canvas, and menus in Photoshop. It also assumes you know that raster images are grids of pixels and that print units such as inches do not control how big an image looks on a screen.
Why pixel dimensions come first
A web or social image is displayed at a size measured in pixels. A browser or app does not care about inches or the "resolution" field in the file. It reads the width and height in pixels and draws that many pixels, scaled to fit the space it has.
Every later decision depends on this number. File size grows with the pixel count. Sharpness depends on whether the image has enough pixels for the screen it appears on. Picking the right size early avoids exporting twice.
Work out the target size from the destination, as in the previous chapter. Typical examples:
| Destination | Typical target |
|---|---|
| Blog content column, 800 px wide | 800 px wide (1x), 1600 px wide (2x) |
| Full-width hero banner | 1920 px wide or 2400 px wide |
| Square social post | 1080 x 1080 px |
| Small icon or avatar | 64 x 64 px, plus larger scales |
Check each platform's current published specifications before you finalize. Platforms change them.
Pixels, PPI, and the Resolution field
The Image Size dialog (Image > Image Size, or Alt+Ctrl+I on Windows and Option+Cmd+I on macOS) shows Width, Height, and Resolution. Resolution is measured in pixels per inch (PPI). It is a label that tells a printer how large to print the pixels.
For screen delivery, PPI has no effect. An image that is 1200 x 800 px displays the same at 72 PPI and at 300 PPI. What matters is the pixel count.
- Changing PPI with Resample turned off changes only the print size. The pixels stay the same.
- Changing PPI with Resample turned on changes the number of pixels. This is a different operation and affects quality.
A common mistake is to set the resolution to 72 and expect a smaller file. It does nothing for a web export.
Resampling
Resampling means changing the number of pixels in an image. Photoshop has to invent new pixels when you enlarge it, or discard and blend pixels when you reduce it. The method it uses is the interpolation method, chosen in the Resample drop-down.
Choosing an interpolation method
| Method | Use it for |
|---|---|
| Automatic | A reasonable default. Photoshop picks a method based on whether you enlarge or reduce. |
| Preserve Details 2.0 | Enlarging. It tries to keep detail and has a Reduce Noise slider. |
| Bicubic Smoother | Enlarging smooth images with less harshness. |
| Bicubic Sharper | Reducing. It keeps edges crisp after downsizing. |
| Bicubic | General purpose, smooth gradients. |
| Bilinear | Fast, lower quality. |
| Nearest Neighbor | Hard-edged pixel art, where you want no blending. |
Exact method names and availability can vary slightly between Photoshop versions. For photos you shrink for the web, Bicubic Sharper (reduction) is a sound choice. For pixel art, use Nearest Neighbor so edges stay hard.
Reduce more than you enlarge
Reducing an image is safe. Enlarging is not. When you enlarge, Photoshop cannot recover detail that was never captured, so the result looks soft. Whenever possible, start from the largest source and export down.
Avoid several steps of shrinking and enlarging on the same pixels. Each resample blends pixels and loses a little sharpness. Resample once, from the best source, to the final size.
A worked example: resize a photo for a blog
Suppose your document is 4000 x 2667 px and the blog column is 800 px wide. You want a 1x file and a 2x file.
- Open the document and choose Image > Image Size.
- Click the link icon between Width and Height so the aspect ratio stays locked.
- Make sure Resample is checked and the method is Automatic or Bicubic Sharper (reduction).
- Set the unit next to Width to Pixels and type
1600. Height updates to about 1067. - Export this size as the 2x file.
- Reopen Image Size (or undo with Ctrl+Z / Cmd+Z and return to the original), set Width to
800, and export the 1x file.
Resize from the original each time. Do not take the 1600 px version and shrink it again unless you must. That repeats the resample.
The two exported files can then be used together in a responsive image. This is the code example from the spine that uses both widths:
<img
src="photo-800.jpg"
srcset="photo-800.jpg 800w, photo-1600.jpg 1600w"
sizes="(max-width: 800px) 100vw, 800px"
width="800" height="533"
alt="Describe the photo">The srcset attribute lists the available files with their widths. The sizes attribute tells the browser how wide the image will be in the layout, so it can pick the file that fits the screen density. The width and height attributes reserve space so the page does not jump while loading. The ratio 800 x 533 matches the 1600 x 1067 file, rounded.
Canvas Size versus Image Size
These two commands are easy to confuse.
- Image Size scales the whole image. The pixels are resampled.
- Canvas Size (Image > Canvas Size) changes the working area. It crops or adds empty space around the image, with no scaling.
Use Canvas Size to add padding or to fit an image into a fixed frame, such as a square post. Use Image Size to scale.
Cropping to an aspect ratio
Social platforms often require specific ratios, for example 1:1 or 4:5. Resizing alone cannot fix a wrong ratio, because it would stretch the image. Crop first, then resize.
- Choose the Crop tool (C).
- In the options bar, pick a ratio such as 1:1 or enter a custom width and height.
- Drag the crop box over the part you want to keep.
- Optionally enter a pixel width, height, and resolution in the options bar to have the crop resample to an exact size when you commit it.
- Press Enter to apply.
Check that Delete Cropped Pixels is off if you want to adjust the crop later. With it off, Photoshop keeps the hidden pixels so the crop stays non-destructive.
Resizing layers and Smart Objects
When you scale a normal pixel layer with Free Transform (Ctrl+T / Cmd+T), the pixels are resampled and the change is baked in. Scale it down and then back up and the detail is gone.
A Smart Object is a layer that stores the original pixels and applies the scaling as a live transform. You can scale it repeatedly without cumulative loss, because Photoshop always goes back to the source. Convert a layer with right-click > Convert to Smart Object before you resize it, especially if you may change the size again.
Placed images inserted with File > Place Embedded are Smart Objects by default.
Common errors and how to avoid them
- Soft or blurry export. The source had fewer pixels than the target, so you enlarged it. Start from a larger source, or export at a smaller size.
- Stretched image. The aspect ratio link was off. Turn it on, or crop to the right ratio first.
- File too large for its use. The pixel count is far above the display size. A 6000 px wide image in an 800 px slot wastes bandwidth.
- Wrong size after reopening. You changed the unit to inches or percent. Switch the unit back to Pixels and check.
- Resample unchecked by accident. You changed the width and the height or PPI shifted instead of the pixel count. Verify the pixel readout at the top of the dialog.
- Rounded dimensions. A locked ratio can produce a height such as 533.33, which Photoshop rounds. If an exact size matters, crop to the exact ratio first.
Sharpening after resizing
Downsizing softens an image slightly. A light pass of Filter > Sharpen > Smart Sharpen or Unsharp Mask after the final resize can restore apparent crispness. Apply it once, at the final size, to a Smart Object or a copy, and keep it subtle. Oversharpening creates halos around edges and exaggerates JPEG compression artifacts later.
Exercise
A designer has a 3000 x 2000 px photo and needs a 1080 x 1350 px (4:5) Instagram-style portrait post. She opens Image Size, unlinks the aspect ratio, and types 1080 and 1350. What goes wrong, and what is the correct approach?
Show answer
Unlinking the ratio and typing both values squeezes the 3:2 photo into 4:5, so the image is distorted. The correct approach is to crop first with the Crop tool set to a 4:5 ratio, choosing the part of the photo to keep, and then resample that crop to 1080 x 1350 px. Because the source has more pixels than the target, the resize is a reduction and keeps good quality.
Exercise
You set Resolution to 72 PPI with Resample turned off on a 2400 x 1600 px image. How many pixels wide is the image afterward, and does the change shrink the exported file?
Show answer
It is still 2400 px wide. With Resample off, changing PPI only changes the print size label, not the pixel count, so the exported file does not get smaller.