Перейти к содержимому

Урок 24 · Images and Graphics

Pixels, Resolution and Image Size

Learn how pixel dimensions, PPI and print size connect, how DPI differs, and how to calculate whether a photo has enough detail for the size you need.

"Is this image high resolution?" You cannot answer that question until you know where the image will be used. A picture that is large enough for a postcard may be too small for a big poster seen up close.

The good news is that the math is simple. Once you understand it, you can check any image in a minute.

What you will learn

  • What pixel dimensions are
  • The difference between PPI and DPI
  • How to calculate print size and required pixels
  • How high-density screens affect exports

Pixel dimensions

The pixel dimensions of a raster image are its width and height in pixels, such as 3000 by 2000. Multiply them to get the total: 6,000,000 pixels, or 6 megapixels.

For judging how much detail a file can hold, pixel dimensions are the key numbers. They are not the whole story, though. A blurry or heavily compressed photo can have many pixels and little real detail.

PPI: pixels per inch

PPI means pixels per inch. It describes how closely the image pixels are packed at a certain physical size.

The formula for print is:

PPI = pixels ÷ inches

You can turn it around:

  • print size in inches = pixels ÷ PPI
  • pixels needed = inches × PPI

One inch is exactly 2.54 centimeters. To turn centimeters into inches, divide by 2.54. For millimeters, divide by 25.4.

DPI means dots per inch. Strictly, it describes the dots that a printer or other output device makes. A printer often uses many tiny ink dots to create the color of one image pixel. So printer DPI and image PPI are different measurements.

In everyday speech, many people say "DPI" when they mean image PPI. When a printer asks for "300 DPI images", they usually mean 300 pixels per inch at the final printed size. If you are unsure, ask.

How many PPI do you need?

A common guideline for printed pieces that people hold, such as flyers and magazines, is about 300 PPI at final size. It is a guideline, not a law of nature.

  • Large posters and banners are usually seen from farther away, so they can often use a lower PPI.
  • Line art with only black and white often needs a higher PPI to keep edges clean.
  • Some paper and printing methods show less fine detail than others.

Your print supplier knows their equipment. Their requirements come first.

Worked example 1: how big can this photo print?

Your photo is 3000 by 2000 pixels. At 300 PPI:

  • width: 3000 ÷ 300 = 10 inches (25.4 cm)
  • height: 2000 ÷ 300 = about 6.7 inches (about 16.9 cm)

Worked example 2: how many pixels do you need?

You want to fill an A4 page, 210 by 297 millimeters, at 300 PPI.

  • 210 ÷ 25.4 = about 8.27 inches. Times 300 is about 2480 pixels.
  • 297 ÷ 25.4 = about 11.69 inches. Times 300 is about 3508 pixels.

So you need about 2480 by 3508 pixels, before adding bleed. Bleed is the extra edge area for trimming. You will meet it in preparing files for print.

Worked example 3: what PPI do I really have?

An image 1200 pixels wide is stretched to 8 inches wide. 1200 ÷ 8 = 150 PPI. That may look noticeably soft in a hand-held piece. The same photo at 4 inches wide has 300 PPI.

The metadata trap

Many image files store a PPI number as metadata. Changing only that number, without adding or removing pixels, does not change the picture data. It only changes the suggested print size.

Resampling is different. It changes the number of pixels. Reducing them discards information. Increasing them makes software estimate new pixels. It cannot recover detail that was never captured.

Screens work differently

On screens, the file's PPI metadata is generally ignored by web pages. Layout size is set in the page or app, and what matters is the pixel dimensions of the file compared with the space it fills.

Many modern screens are high density. They use more than one physical pixel for each layout unit. If an image appears 400 units wide on a screen with a density of 2, a file about 800 pixels wide can look sharp. This is why designers often export images at "2x".

Bigger is not always better. Very large files load slowly and use more data. Export the size you need, and ask the developer whether several sizes will be offered.

A quick checking routine

  1. Find the pixel dimensions in the file information.
  2. Find the final size at which the image will appear.
  3. For print, divide pixels by inches.
  4. If you crop, calculate again with the pixels that remain.
  5. Zoom to look for blur, noise and compression damage.
  6. Make a test print when the job matters.

Common mistakes

  • Judging by file size in megabytes. File size depends on format and compression too.
  • Changing the PPI number and expecting more detail. Pixels are what count.
  • Forgetting the crop. A tight crop can remove most of your pixels.
  • Sending a picture through an app that shrinks it. Ask for the original file.

Try it

Enter the pixels and the print width and height. The calculator shows the PPI you would really get.

Print resolution calculator

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. A photo is 2400 pixels wide. How wide can it print at 300 PPI?

    2400 divided by 300 equals 8 inches.
  2. 2. You change only the PPI number in a file's metadata. What happens to the pixels?

    Without resampling, only the suggested print size changes.
  3. 3. How many pixels wide must an image be to print 5 inches wide at 300 PPI?

    5 inches times 300 pixels per inch is 1500 pixels.
  4. 4. An image fills 300 layout units on a screen with density 2. Which file width suits it well?

    300 times 2 is 600. A far larger file wastes data.

Summary

  • Pixel dimensions show how much image data you have.
  • For print, PPI equals pixels divided by inches at final size.
  • DPI strictly describes output dots, although people often use it for PPI.
  • About 300 PPI is a common guideline for hand-held print.
  • Metadata changes and upscaling do not recover missing detail.

Next: Image File Formats

Отслеживайте прогресс

Создайте бесплатный аккаунт, чтобы отмечать пройденные уроки и продолжать с того места, где остановились, на любом устройстве.