Sub topic 2
Pixel dimensions: the real size of an image
Pixel dimensions describe how many pixels make up a raster image. A raster image is a picture built from a rectangular grid of colored dots. A file listed as 3000 × 2000 pixels has 3000 pixels across and 2000 pixels down.
This chapter assumes you can open and save Photoshop files, use the Layers panel, and recognize a pixel. The pixel dimensions are the image’s actual data. Resolution and print size describe how that data is displayed or printed.
Width, height, and aspect ratio
The first number is the width, and the second is the height. The aspect ratio is the relationship between these numbers.
For example, a 3000 × 2000 image has a 3:2 aspect ratio. If you resize it proportionally, a width of 1500 pixels produces a height of 1000 pixels. If you enter different proportions, Photoshop must stretch or crop the image unless you lock the proportions.
| Pixel dimensions | Aspect ratio | Common use |
|---|---|---|
| 1920 × 1080 | 16:9 | HD video or presentation |
| 3000 × 2000 | 3:2 | Many cameras |
| 1080 × 1080 | 1:1 | Square social post |
Pixel dimensions affect detail, display size, and the amount of image data. They do not directly determine the physical size of a printed image. Resolution connects pixels to inches.
Calculating pixels for print
Resolution is measured in pixels per inch, or ppi. To calculate the required pixel dimensions, multiply each print measurement by the target resolution:
function pixelsForPrint(inches, ppi) {
if (inches <= 0 || ppi <= 0) {
throw new Error("Inches and ppi must be positive.");
}
return Math.round(inches * ppi);
}
const width = pixelsForPrint(6, 300);
const height = pixelsForPrint(4, 300);
console.log(`${width} × ${height} pixels`);This prints 1800 × 1200 pixels. That is the pixel size needed for a 6 × 4 inch print at 300 ppi.
The same 3000-pixel width can print at different physical sizes:
- At 300 ppi: 3000 ÷ 300 = 10 inches
- At 150 ppi: 3000 ÷ 150 = 20 inches
The image still contains 3000 pixels across in both cases. Only the amount of space assigned to each pixel changes.
Inspecting pixel dimensions in Photoshop
Choose Image > Image Size. The dialog shows pixel dimensions near the top and document dimensions below. Turn on the link icon when you want Photoshop to preserve the aspect ratio.
With Resample turned off, changing resolution changes the calculated print width and height but does not add or remove pixels. This is useful when preparing the same image for a different print size.
With Resample turned on, changing the pixel width or height changes the actual image data. Photoshop must calculate new pixels. This process is called resampling.
Avoiding unwanted changes
Upsampling increases pixel dimensions. It can make a small image larger, but it cannot restore detail that was never captured. Downsampling removes pixels and can reduce file size, but excessive reduction can erase fine details.
Use Image Size when you need to change the image’s pixel dimensions or print-size calculation. Use Canvas Size when you need more or less working area around existing artwork. Use Crop when you want to remove outer image content and usually set a new composition.
For repeated scaling, convert a layer to a Smart Object first. Photoshop preserves the original source inside the Smart Object, so you can resize the layer again with less damage than repeatedly resampling ordinary pixels.
Exercise
You need a 5 × 7 inch print at 300 ppi. What pixel dimensions should the image have, and what happens if you change 300 ppi to 150 ppi with Resample turned off?
Show answer
The image should be 1500 × 2100 pixels. With Resample off, the pixel dimensions stay the same, while the calculated print size becomes 10 × 14 inches.