Change an image to 300 dpi without losing quality
A printer, a publisher or a visa form wants the picture at 300 dpi, and the file says 72. Whether that is a two-second fix or a problem depends on one number the request did not mention: how many pixels the picture has.
Written · Updated
The DPI written in a JPEG, PNG or TIFF is a label in the header that says how many of the picture’s pixels go to an inch of paper. It changes nothing on screen and adds no detail. The size a picture prints at is its pixels divided by its DPI, so a 3000 × 2000 pixel photo is 10 × 6.7 inches at 300 dpi, whatever the header says now. If the picture has enough pixels for the print size you need, change the label without resampling and nothing about the picture changes. If it does not, changing the label only makes the print smaller, and the honest answer is a smaller print or a bigger original. DPI rewrites the label in place in the browser tab, without re-saving the picture.
Work out whether you have enough pixels
Multiply the print size in inches by 300. For centimetres, divide by 2.54 first.
| Print size | Pixels needed at 300 dpi |
|---|---|
| Passport photo, 35 × 45 mm | 413 × 531 |
| 6 × 4 in (15 × 10 cm) | 1800 × 1200 |
| 7 × 5 in | 2100 × 1500 |
| A5, 148 × 210 mm | 1748 × 2480 |
| A4, 210 × 297 mm | 2480 × 3508 |
| US Letter, 8.5 × 11 in | 2550 × 3300 |
Most phone cameras take pictures of 12 megapixels (4032 × 3024) or more, which is 13.4 × 10 inches at 300 dpi. A picture saved from a website or a messaging app is often 1000 to 2000 pixels on its longest side, which is 3.3 to 6.7 inches.
300 dpi is the figure for photographs and fine print viewed at reading distance. Posters and banners viewed from a few feet away print well at 150 dpi or less, which is why a large-format printer may accept a file that "fails" a 300 dpi check.
Changing the label
In Photoshop, Image → Image Size, untick Resample, and type 300 in Resolution: the width and height in inches change and the pixel dimensions stay put. In GIMP, Image → Print Size does the same. Saving afterwards, though, re-compresses a JPEG, which loses a little quality each time for no reason: the picture itself did not change.
DPI avoids that by editing the header and copying everything else byte for byte:
- JPEG: the density in the JFIF header (it adds a JFIF header if the file has none), the EXIF XResolution and YResolution if they are there, and Photoshop’s own resolution record if that is there. Programs disagree about which of these to believe, so it sets all that exist.
- PNG: the
pHYschunk. PNG stores resolution in pixels per metre, as a whole number, so 300 dpi is stored as 11,811 and reads back as 299.9994. Some programs show it as 299 or 300 depending on how they round; that is PNG, not an error. - TIFF: XResolution, YResolution and ResolutionUnit in the first directory.
It takes several files at once, shows the print size each will come out at, and saves them singly or as a zip. The pictures are read on your own device and not sent anywhere. Checking the current DPI and print size is free; saving the changed files is part of OBSCURA Pro, or US$1 to save from one tool for a day.
When the picture is too small
Resampling up, making new pixels in between the old ones, is the only way to give a small picture "300 dpi at A4", and the extra pixels are interpolated, not detail. For a modest enlargement, up to about one and a half times, a good resampling (Photoshop’s Preserve Details, or bicubic) is often acceptable in print. Beyond that, AI upscalers invent plausible detail, which can work for a landscape and is wrong for a document, a face on an ID photo, or anything that has to be a faithful record. Where you can, find the original: the photo on the phone rather than the copy sent by a messaging app, the logo as a vector file rather than a PNG.
What people usually mean by "300 dpi"
Almost always: "give me enough pixels to print this size sharply". A print shop that rejects a 72 dpi file with plenty of pixels is reading the label; relabel it and it passes with nothing changed. A print shop that rejects a 300 dpi file because it is only 600 pixels wide is reading the pixels, and is right. If the file will be printed at a fixed size, it can help to say both numbers when you send it: "3508 × 2480 pixels, set to 300 dpi, for A4."
Questions people ask about Change an image to 300 dpi without losing quality
Does changing DPI reduce image quality?
No. DPI is a label in the file's header saying how many pixels go to an inch of paper. Changing it without resampling leaves every pixel as it was. Re-saving a JPEG afterwards can lose a little quality, which is why editing the header directly is better.
How do I change an image to 300 dpi?
In Photoshop, Image, Image Size, untick Resample and set Resolution to 300. In GIMP, Image, Print Size. DPI on this site rewrites the header of a JPEG, PNG or TIFF without re-saving the picture.
How many pixels do I need for 300 dpi?
Multiply the print size in inches by 300. A 6 by 4 inch print needs 1800 by 1200 pixels; A4 needs 2480 by 3508.
Will changing 72 dpi to 300 dpi make my picture sharper?
No. It makes the same pixels print smaller. A picture only prints sharply at a size if it has enough pixels for that size at about 300 dpi.
Why does my PNG say 299.999 dpi?
PNG stores resolution in whole pixels per metre, so 300 dpi is stored as 11,811, which is 299.9994 dpi. Programs round it differently.
What DPI do I need for a poster?
Less than for a photograph. Large prints viewed from a distance are commonly printed at 150 dpi or less; ask the printer what they need.
Can I increase the pixels of a small picture?
Only by resampling, which interpolates new pixels rather than adding detail. Modest enlargements can look acceptable; for anything that must be faithful, find a larger original.
Related
- Opening a file without the software that made itMost files that will not open are a container your machine has no reader for. HEIC, .msg, winmail.dat, Word, Excel, zips and CSVs, opened in the browser tab.
- Why a PNG converted to SVG looks bad, and how to get a clean oneConverting a PNG to SVG is tracing: guessing shapes from pixels. Why the result has jagged edges, blobs and a huge file, and what to feed a tracer for a clean one.
- Why a Word document's page numbers change on another computerThe pages are not in the file; every machine lays them out again, and a substituted font moves every break after it.
- How to open a HEIC fileA photograph in a container most software cannot open: what the box is, what is inside it, and how to get a JPEG out without uploading it.
- Open a Word document without Word, without uploading itA .docx is a zip of XML a browser can read. Open it, change it, and save it back as Word or as PDF in the tab; what comes across, and what does not.
- Open an Excel file without Excel, without uploading itAn .xlsx is a zip of XML a browser can read in the tab. What comes across (sheets, values, formulas, formats), what does not (charts, macros, pivot tables), and how to save it back.
All 22 guides under “A file that will not open, or comes out wrong”.
A letter, now and then
An occasional letter when there is something worth reading: the new guides and what changed in the tools. Never more than once a month and nothing else, and you can leave at any time on the unsubscribe page.