Image resolution explained
Most confusion about image size comes from one word used for three different things. Once the vocabulary is clear, choosing dimensions becomes arithmetic.
The short answer
An image has no "resolution" until you decide how big it will be displayed or printed. What it has is a number of pixels. DPI and PPI are instructions for the output device, not properties of the file: a 1200 × 800 photo contains exactly the same information whether it is tagged 72 or 300 DPI.
The only useful question is: how many pixels do I need for the size I want?
Pixels, PPI, DPI: the three words
- Pixel: one point of colour in the file. A 1920 × 1080 image has 2,073,600 pixels.
- PPI (pixels per inch): how many of those pixels are packed into one inch of the final medium. This is what actually matters for sharpness.
- DPI (dots per inch): the same idea for a printer, which may need several ink dots to render one pixel. In everyday use, the two words are used interchangeably.
A file tagged "300 DPI" but only 600 pixels wide will still print 2 inches wide at 300 PPI. Change the tag and the print size changes, not the sharpness.
How many pixels for a given print size
The rule: pixels = size in inches × PPI, and one inch is 2.54 cm. At 300 PPI, a 10 × 15 cm print needs about 1181 × 1772 pixels.
| Print size | At 300 PPI (sharp) | At 150 PPI (acceptable) |
|---|---|---|
| 10 × 15 cm (4 × 6 in) | 1181 × 1772 | 591 × 886 |
| 13 × 18 cm (5 × 7 in) | 1535 × 2126 | 768 × 1063 |
| A4 (21 × 29.7 cm) | 2480 × 3508 | 1240 × 1754 |
| 30 × 40 cm poster | 3543 × 4724 | 1772 × 2362 |
300 PPI is the standard for a photo held in the hand. A poster seen from a metre away is sharp at 150 PPI. A billboard is sharp at 20 PPI, because nobody stands close to it.
On screen, the CSS pixel is the unit
A web page is laid out in CSS pixels, and a "2×" screen (most phones, many laptops) draws each CSS pixel with four physical pixels. An image displayed in a 600 CSS-pixel column therefore needs 1200 real pixels to stay sharp on those screens.
That is why a photo is usually exported at twice its display width, and why a 1600-pixel image is enough for a full-width column on a laptop but not for a 4K monitor. Above 2×, the extra pixels are rarely visible and always cost download time.
Why phone photos claim 72 DPI
Cameras write an arbitrary DPI tag, often 72, because the value has no meaning until printing. A modern phone photo is around 4000 × 3000 pixels: that is 34 × 25 cm at 300 PPI, or a full A3 page at 150 PPI. Ignore the tag and look at the pixel dimensions.
Preparing an image for print
- Start from the largest original you have. Enlarging a small file adds pixels but not detail.
- Compute the target in pixels: centimetres ÷ 2.54 × 300.
- Resize to those pixels with Resize image, keeping the aspect ratio.
- Save as PNG or TIFF for a graphic, JPG at 90% or more for a photo. Do not use WebP or AVIF for print.
- Ask the printer whether it wants RGB or CMYK: converting colour profiles is a separate step that these tools do not perform.
Preparing an image for the web
- Decide the width of the column where the image appears.
- Multiply by 2 for high-density screens, and cap it there. A 700-pixel column needs at most 1400 pixels.
- Resize, then compress as WebP or AVIF (see how to compress without losing quality).
- Always set
widthandheightattributes in the HTML so the page does not jump while loading.
Common mistakes
- Confusing DPI with quality. Changing the DPI tag changes nothing in the pixels.
- Enlarging a small image for print. It becomes smooth, not sharp. Use a larger original.
- Publishing a 6000-pixel photo in a 600-pixel column. Ten times the weight for no visible gain.
- Exporting a logo at 300 DPI in JPG. The tag does not help: JPG blurs the edges. Use PNG or SVG.
To check the real dimensions of a file, the size is shown next to each result in the tools, and most operating systems display it in the file properties.