Resizing images for forms: pixels, DPI and aspect ratio
Pixel dimensions are the number of dots in the picture, and file size depends on those dots and on the compression. DPI, or PPI, is a note inside the file that tells a printer how many dots to place per inch, and changing that note does not change the pixels. So when a form asks for 600 × 600 pixels, you need exactly that pixel count. When it asks for 2 inches at 300 DPI, the pixel count is the same 600 × 600.
Resize imagePhoto is the wrong sizeOpenThree separate things
- Pixels are the width and height in dots, such as 1200 × 1600. They determine how much detail the picture holds.
- File size is how many bytes the file takes. It depends on the pixels, the content and the compression.
- DPI or PPI is print-size metadata. It says how large the picture should be when printed. Setting it to 300 in an editor does not add detail. A 600 pixel image set to 300 DPI is still 600 pixels across.
What the form is asking for
| Request | Pixels you need | What it means |
|---|---|---|
| 600 × 600 px | 600 × 600 | Exact pixel size |
| 2 inches at 300 DPI | 600 × 600 | 2 × 300 = 600 pixels per side |
| 3.5 × 4.5 cm at 300 DPI | About 413 × 531 | Print size converted at 300 DPI |
| Maximum 1 MB | Any pixel size | File size limit, separate from dimensions |
For the last printed row, 3.5 cm is about 1.38 inches, and 1.38 × 300 gives about 413 pixels. 4.5 cm is about 1.77 inches, which gives about 531 pixels.
Aspect ratio: crop, do not stretch
The aspect ratio is the proportion of width to height. A landscape photo forced into a square will look distorted if you change only one side, and faces look wide or narrow. The fix is to crop to the required ratio first, then resize. Crop the picture to the ratio, then resize it to the exact pixels.
When you only need a smaller version, keep the proportions locked and set one dimension. The other follows. Set both dimensions only when the form demands an exact shape.
Steps for a form
- Read the requirement and note the pixel size, file size and format.
- Crop to the required proportions.
- Resize to the exact pixels while keeping the proportions.
- Look at the result at actual size.
- If the file is still too large, compress it.
Do not enlarge a small photo to reach a pixel target. Enlarging adds no real detail, so the result is soft. If the picture is too small for the form, take a new photo or ask for a smaller size.
Working out pixels from a physical size
If a form gives only a physical size and a DPI, multiply the inches by the DPI. A 4 by 6 inch print at 300 DPI needs 1200 by 1800 pixels. If the size is given in centimetres, divide by 2.54 to get inches first, then multiply by the DPI. Round to whole pixels, and keep the proportions of the printed size.
Screens and print are different targets
A screen shows pixels at its own density, so a picture measured in pixels shows the same number of dots on any screen, and most screen viewers ignore the DPI note. Print is the only place where DPI decides the physical size. If the picture is for a screen, think in pixels. If it is for print, think in inches and DPI.
Shrinking is safe, enlarging is not
Reducing a picture to fewer pixels keeps the detail that remains, so a large photo can be made smaller without much visible harm. Making a small photo larger only invents pixels, which makes it look soft. If you must enlarge, do it by a small amount and check the result at full size.
Common mistakes
- Exporting at a screen size and then printing, which gives a small printed picture.
- Changing the DPI in an editor and expecting the pixel count to change.
- Stretching a photo into a box with a different ratio, which distorts faces.
Check the result at real size
Open the resized file at 100 percent zoom and look at the parts that matter most. Faces should look natural rather than wide or narrow, and any text or edges should stay crisp. If you see a soft, smeared look, the picture was probably enlarged somewhere along the way, so go back to a larger original and resize it again.
Quick answers
Does changing the DPI make my image sharper? No. DPI is a print note. The pixel count stays the same, and only the printed size changes.
Why do 600 px and 2 inches at 300 DPI give the same result? Print size is pixels divided by dots per inch, so two inches at 300 dots per inch is 600 dots.
Should I crop or resize first? Crop first if the proportions do not match, then resize. Resizing a picture to the wrong shape distorts faces.
