Sub topic 4
Document size: how pixels and resolution set print size
This chapter covers how Photoshop derives print size from pixel dimensions and resolution. It assumes you can open, save, and export files, that you know your way around the Layers panel, and that you know what a pixel is. Earlier chapters covered pixel dimensions and resolution (ppi) separately. Here they combine into document size.
The relationship in one formula
A raster image is a fixed grid of pixels. It has no inherent physical size. Physical size appears only when you pair the pixel count with a resolution, which is a number of pixels per inch (ppi).
pixels = inches x ppi
3000 px / 300 ppi = 10 in
3000 px / 150 ppi = 20 in
6 in x 4 in at 300 ppi = 1800 x 1200 pxRearranged, the formula gives three questions you can answer:
| You know | You want | Calculation |
|---|---|---|
| Pixels and ppi | Print size | inches = pixels / ppi |
| Print size and ppi | Pixels needed | pixels = inches x ppi |
| Pixels and print size | Resolution | ppi = pixels / inches |
Photoshop calls the result of the first row the document size. It appears in the Image Size dialog as Width, Height, and Resolution, in the units you choose (inches, centimeters, millimeters, points, picas, or percent).
Why the same pixels print at different sizes
Imagine one photo that is 3000 px wide. If a printer places 300 pixels in each inch, the photo is 10 inches wide. If it places 150 pixels per inch, each pixel is bigger and the photo is 20 inches wide. The data is identical. Only the density differs.
Higher ppi means smaller print size and finer detail per inch. Lower ppi means larger print size and visibly coarser detail. This is why "resolution" and "size" are not independent knobs unless you let Photoshop change the pixel count.
Three variables, two degrees of freedom
Pixel dimensions, resolution, and document size are linked by one equation, so you can freely set only two of the three. The third follows. In the Image Size dialog, the Resample checkbox decides which two you are setting.
- Resample off: The pixel count is locked. Changing resolution changes document size, and changing document size changes resolution. The pixel data is never touched.
- Resample on: Resolution can be held fixed while you change document size or pixel dimensions. Photoshop adds or removes pixels to make the equation hold.
Image > Image Size (Alt+Ctrl+I on Windows, Option+Cmd+I on macOS)
Resample OFF: Width 10 in, Resolution 300 ppi -> set Resolution to 150 ppi
Result: Width becomes 20 in, pixel dimensions stay 3000 px, no pixels are changed.
Resample ON: Width 3000 px -> set Width to 1500 px
Result: Photoshop removes pixels using the chosen interpolation method.Worked example: preparing a photo for print
You have a photo of 4500 x 3000 px and want a print at 300 ppi.
- Choose Image > Image Size and clear the Resample checkbox.
- Set Resolution to 300 ppi.
- Read the Width and Height: 4500 / 300 = 15 in and 3000 / 300 = 10 in.
The result is a 15 x 10 in print at 300 ppi with no loss of data. If you need a smaller print, such as 6 x 4 in, you can keep Resample off and raise the resolution, but only up to the point where the pixel count still equals inches times ppi. Here 6 in at 750 ppi uses all 4500 px, and that is far more than a printer needs.
Now suppose you need a 24 in wide print at 300 ppi from the same file. You would need 24 x 300 = 7200 px across, but the file has only 4500. You have two choices:
- Accept a lower resolution: 4500 / 24 = 187.5 ppi. No pixels change.
- Turn Resample on and enlarge to 7200 px wide. Photoshop invents the missing pixels by interpolation, so the file reaches 300 ppi but contains no extra real detail.
What resolution you actually need
There is no single correct ppi. It depends on the output and the viewing distance.
| Output | Typical ppi | Reason |
|---|---|---|
| Photo book or fine art print | 300 | Viewed close up, detail is judged carefully |
| Magazine or brochure | 300 | Commercial printing expects it |
| Poster viewed from a few feet | 150 to 200 | Distance hides individual pixels |
| Billboard | 20 to 50 | Viewed from far away |
| Screen display | Not relevant | Screens use pixel dimensions, not inches |
The last row matters. A web image is displayed at its pixel dimensions. A 1200 px wide image appears 1200 CSS pixels wide in a browser whether its resolution tag says 72 ppi or 300 ppi. For web work, pay attention to pixel dimensions and ignore the ppi field.
Common errors and gotchas
Mistaking the ppi tag for quality. A file labeled 300 ppi can be tiny, such as 600 x 400 px, and a file labeled 72 ppi can be large, such as 6000 x 4000 px. The 6000 px file printed at 20 in wide is 300 ppi. The label is only a conversion factor, so judge a file by its pixel dimensions first.
Resample on when you meant off. If you change the resolution from 72 to 300 with Resample on and the document size held fixed, Photoshop multiplies the pixel count by about 4.17 in each direction. You get an upsampled, softer, much larger file. When you only want to relabel print size, clear Resample first.
Resample off and the link between values. With Resample off, changing Width also changes Height and Resolution. This is correct behavior, not a bug. If you want to set a width without altering the proportions, keep the constrain-proportions chain link enabled.
Rounding. Document size is calculated, so a width of 10.001 in can appear after a resample. Pixel counts are whole numbers, but inches are not. If exact print dimensions matter, set the pixel dimensions first and then choose a resolution that divides them evenly.
Units drift. The Image Size dialog remembers its last unit. Check whether the field says inches, centimeters, or pixels before typing a value. A "10" typed into a field set to pixels produces a 10 px image.
Resolution is stored per file, not per layer. Pasted or placed content from a file with a different resolution is scaled to match the destination's resolution on paste. A 1000 px image at 300 ppi pasted into a 72 ppi document can appear much larger than expected, because Photoshop matches physical size. Place and check the result in the Layers panel before assuming the scale.
Checking document size without opening a dialog
You can see current values in several places.
- The status bar at the bottom of the document window can show Document Dimensions.
- The Image Size dialog shows the pixel size at the top and the Width, Height, and Resolution fields below.
- Image > Image Size also shows a preview of the file size in memory. This is the uncompressed size, not the saved file size.
You can also calculate the uncompressed memory size yourself. An 8-bit RGB image uses 3 bytes per pixel, so 4500 x 3000 px takes 4500 x 3000 x 3 = 40,500,000 bytes, about 38.6 MiB. A 16-bit image doubles that. This is one reason very large resamples slow Photoshop down.
Reading document size in a script
If you automate work, you can read the same values in ExtendScript. Pixel values and inches are separate unit settings, and the resolution property is in ppi.
// Photoshop ExtendScript (.jsx)
app.preferences.rulerUnits = Units.PIXELS;
var doc = app.activeDocument;
var pxW = doc.width.value;
var pxH = doc.height.value;
var ppi = doc.resolution;
alert(
pxW + " x " + pxH + " px at " + ppi + " ppi\n" +
"Print size: " + (pxW / ppi).toFixed(2) + " x " + (pxH / ppi).toFixed(2) + " in"
);The script prints the same document size that the Image Size dialog shows, using the formula inches = pixels / ppi. A later chapter covers scripted resizing in detail.
A decision routine
Before you change anything, run through these steps.
- Write down the pixel dimensions and ppi the file has now.
- Write down the print size you need and the ppi the printer or print shop asks for.
- Multiply print inches by target ppi to get the pixels you need.
- Compare. If the file has at least that many pixels, you can resample down or simply relabel with Resample off. If it has fewer, decide whether a lower ppi is acceptable or whether enlarging is worth the softness.
- Do the operation once, from the original, rather than in several steps.
Exercise
A scan is 2400 x 1800 px. A print shop asks for 300 ppi. What is the largest print size you can make without resampling, and what resolution results if you want it to print 16 in wide instead?
Show answer
At 300 ppi the size is 2400 / 300 = 8 in wide and 1800 / 300 = 6 in tall, so 8 x 6 in. For 16 in wide with no resampling, the resolution is 2400 / 16 = 150 ppi, and the height becomes 1800 / 150 = 12 in.
Exercise
You open a 1200 x 800 px file tagged 72 ppi. In Image Size you change Resolution to 300 with Resample on and leave the document width at its original value of 16.67 in. What happens to the pixel dimensions, and what should you have done if you only wanted the file to print at a smaller size?
Show answer
Photoshop adds pixels to keep the width at 16.67 in, giving about 5000 x 3333 px (16.67 x 300 = 5001). The new pixels are interpolated, so the file is larger but no sharper. To only change the print size, clear Resample and set Resolution to 300. The file stays 1200 x 800 px and prints 4 x 2.67 in.