Image DPI checker

Drop a PNG, JPEG or TIFF to see its dpi, its size in pixels and the size it prints at. The checker tests it against journal column widths and can fix the dpi tag or resample the image. Your images never leave your computer.

Loading…

How to check the dpi of an image

To check the dpi of an image online, drop the file on the box above. The checker reads the resolution stored in the file and shows it next to the pixel size and the printed size, for PNG, JPEG and TIFF files. It reads the file in your browser; nothing is uploaded, so it is safe to use with unpublished data.

Where the dpi is kept depends on the format: a PNG stores pixels per metre in a pHYs chunk, a JPEG stores a density in its JFIF header and often again in the Exif data, and a TIFF stores XResolution and ResolutionUnit. If the two JPEG fields disagree the checker says so. Operating-system file properties show some of these fields too, but not for every format.

What dpi means for a journal figure

The dpi in a file is a label: it says how many pixels to print per inch, and it does not change the pixels. What matters for print quality is the effective dpi, the number of pixels across the image divided by the width it is printed at, in inches. A 3000 pixel wide image printed 3.25 inches wide is about 923 dpi; printed 7 inches wide it is about 429 dpi. The same file, with the same dpi label, gives both.

The table in the checker does this sum for the column widths of the figure presets used in our Plot tool and marks each with pass or low against 300 dpi and 600 dpi. Journals usually publish a minimum resolution for figures, often around 300 dpi for photographs and micrographs, higher for figures that combine pictures with text or graphs, and the highest for pure line art. The exact numbers and the column widths differ between journals and are revised, so confirm them in the author guidelines of the journal you are submitting to.

If the dpi is wrong: two ways to fix it

Set the dpi tag. Use this when the file is large enough but is labelled 72 dpi or has no label. Only the resolution field is rewritten; the pixels are copied byte for byte. For a PNG the pHYs chunk is replaced, for a JPEG the JFIF density (and the Exif fields if they exist) is rewritten, for a TIFF the resolution tags are written without touching the image data.

Resample to a printed width. Use this when the image has far more pixels than the journal needs, or the upload limit is small. Choose the column width and the dpi, and the image is scaled to exactly that many pixels, with the dpi written in. Reducing the size this way does not lower the print quality at that width. It cannot add detail to an image that is too small. To compress a whole set of figures at once, use Compress for submission. The page Change image dpi is built around these two fixes.

Limits

CMYK JPEG and TIFF files are reported as CMYK; their dpi can be read and set but they are not converted. Resampling decodes the image in the browser, so very large images (hundreds of megapixels) may not fit in memory. A TIFF whose resolution tags carry a microscope pixel scale (for example from ImageJ) is flagged, because setting a dpi would overwrite that scale.

Frequently asked questions

How do I check the dpi of an image?

Drop the image on the checker. It reads the resolution stored in the file (the pHYs chunk of a PNG, the JFIF or Exif density of a JPEG, the resolution tags of a TIFF) and shows it together with the pixel size and the size the image would print at that dpi.

What does dpi mean for a journal figure?

The dpi stored in a file is only a label that says how many pixels to print per inch. What a journal cares about is the effective dpi: the number of pixels across the image divided by the printed width in inches. A 3000 pixel wide image printed 3.25 inches wide has an effective resolution of about 923 dpi, whatever the label says.

How many dpi does a journal figure need?

It depends on the journal and on the kind of figure, and the numbers change, so read the author guidelines of the journal you submit to. As a rule of thumb, photographs and micrographs are asked for at around 300 dpi, figures that mix images with text or graphs at 500 to 600 dpi, and pure line art at 1000 dpi or more. The checker compares your image with 300 and 600 dpi.

Why does it say the dpi is not set, or 72?

Many programs save images without a resolution, or with a default of 72 or 96 dpi, and canvas exports from a web page often have none. That says nothing about the quality of the pixels. Use the first fix to write the dpi you need, and look at the effective dpi table to see whether there are enough pixels.

Can I fix the dpi without changing the picture?

Yes. Setting the dpi tag rewrites only the resolution field in the PNG, JPEG or TIFF file and leaves every pixel as it was. It cannot add detail: an image with too few pixels for the printed width stays too small, and for that the only honest fix is a larger original or a re-export from the source software at a higher resolution.

Are my images uploaded?

No. Your images never leave your computer: they are read and rewritten by code running in this page.

What about CMYK images?

CMYK JPEG and TIFF files are reported as CMYK and their dpi can be read and set, but they are not converted to RGB and they cannot be resampled here, because that needs colour profiles.

More figure tools

The figure tools also cover the other steps of getting a figure into a journal: