Calculate print size from pixels and DPI
An image has a fixed number of pixels. A print places those pixels across a physical area. The DPI field in these image tools describes the intended pixel density for that placement; it does not describe the printer's ink-dot pattern or create new image detail. Image density is also commonly called PPI, pixels per inch.
Before editing, identify whether the receiving workflow asks for pixel dimensions, a physical print size, a density value, or all three. A request for 300 DPI alone does not tell you how many pixels are needed until the print size is known.
The useful equations
Print width in inches = pixel width / density. Pixel width = print width in inches × density. Use the same equations for height. To convert millimeters to inches, divide by 25.4; centimeters divide by 2.54. Output dimensions must be whole pixels, so physical-size calculations usually require rounding.
Changing the density label while keeping pixels fixed changes the intended print size. Resampling changes the pixel count itself. These are separate operations. TinyFileKit's DPI Changer rewrites density metadata for JPG and PNG while retaining their dimensions and compressed pixel data; resizing creates a newly encoded image with different dimensions.
Worked examples: the same pixels at two print sizes
These are illustrative calculations, not printer tests. A 2400 × 1800 image at 300 pixels per inch corresponds to 8 × 6 inches: 2400/300 = 8 and 1800/300 = 6. At 150, it corresponds to 16 × 12 inches. The second label spreads the same information over twice the width and height; it does not add detail. Use the density requested by the printer or receiving workflow rather than treating one number as universally correct.
For a 35 × 45 mm print at 300, calculate 35/25.4 × 300 ≈ 413.386 and 45/25.4 × 300 ≈ 531.496. Rounding gives 413 × 531 pixels. The ID Photo Resizer's editable 35 × 45 mm preset uses this calculation. At that rounded size, the nominal physical dimensions are approximately 35 × 45 mm. This example concerns sizing, not any organization's photo-content requirements.
A 600 × 400 source printed at 6 × 4 inches has only 100 pixels per inch. A 300-density version at that same print size would need 1800 × 1200 pixels. Enlarging each side threefold creates nine times as many output pixels through resampling, without recovering detail the original did not contain.
Choose between metadata and resizing
| Need | Tool | Effect |
|---|---|---|
| Different intended print scale; same pixels | Image DPI Changer | Changes JPG/PNG density metadata |
| Exact pixel width and height | Image Resizer | Resamples into a new pixel frame |
| Editable portrait print-size preset | ID or Passport Photo Resizer | Calculates preset pixels from size and DPI |
| More detail in a large print | A better original | More source information; a DPI edit cannot supply it |
Prepare the print copy
- Keep the original and calculate required pixels from the final physical size and requested density.
- If existing pixels are sufficient and only the density label must change, use Image DPI Changer with a positive whole-number DPI.
- If framing or dimensions must change, resize first. In portrait print tools, changing DPI while a preset is active also updates its pixel dimensions.
- Download the copy and inspect its dimensions and intended print size in the application that will print it.
- Select actual-size printing when the physical size matters, check page scaling, and measure a trial print before producing more copies.
Why the result can appear unchanged or print differently
A metadata-only edit should look the same on screen. Some applications ignore density metadata or use fit-to-page scaling, so the label alone cannot ensure the printed size. Check the print preview and scaling setting. A slightly rounded PNG density is also expected because its physical-pixel field stores pixels per meter as whole numbers.
DPI Changer converts WebP to JPG before writing density, and imports HEIC as PNG. Preserve originals if format or metadata matters. For the final copy, verify pixel dimensions, density, framing, and physical print scale; inspect fine text and facial detail. A correct size does not repair blur or certify a document photo.