How to Resize an Image to 3x4
By Muhammad Kashif
A 3x4 cm photo is 354 × 472 pixels at 300 DPI — and getting that number wrong is the most common reason an ID photo is rejected. Resize it exactly, swap the background, and print a sheet of copies, all in your browser.
ID photos are specified in centimetres, but every printer and application form works in pixels — and the conversion depends on the DPI. At 300 DPI, the print standard, 1 cm is 118 pixels. Resize to the exact pixel count and the photo prints at the exact physical size; resize by eye and it comes out wrong.
▪How to resize an image to 3x4 in 4 steps
- 1Open VYRO AI ID Photo Maker in your browser. No account, no sign-up, and your photo is never uploaded.
- 2Upload a portrait photo — a front-facing shot with even lighting works best.
- 3Pick the 3x4 cm size and swap the background to the solid colour your application requires — red or blue for school, CPNS and SNBT, white or light blue for CVs.
- 4Export the photo as PNG or JPEG, or print a sheet of copies as PDF — the copies-per-sheet count is your choice.
▪The exact pixel sizes — measured
The rule is centimetres ÷ 2.54 × 300. Every photo the tool exports is made at 300 DPI for print:
| Size | Pixels at 300 DPI |
|---|---|
| 2 × 3 cm | 236 × 354 |
| 3 × 4 cm | 354 × 472 |
| 4 × 6 cm | 472 × 709 |
| 35 × 45 mm (passport / visa) | 413 × 531 |
| 30 × 40 mm | 354 × 472 |
Measured 27 November 2026: a 1200 × 1600 portrait resized to 354 × 472 in 0.05 seconds (PIL Lanczos), producing a 5.7 KB PNG and a 6.6 KB JPEG. Resizing is fast and nearly free — the quality of the result is decided by the photo you start with, not by the resize.
▪Honest notes before you resize
- ✓Resizing cannot sharpen a blurry photo. If the original is out of focus or low resolution, the 3x4 version will be too — retake the portrait instead of upscaling.
- ✓Background edges can look rough. AI background mode separates you from the background first, then applies a solid colour; hair and busy backgrounds can look rough at the edges in either mode. Colour mode is instant and needs no download — AI mode downloads a 42 MB model once, then caches it.
- ✓Check the size your document actually requires. 3x4 cm is not the passport size in most countries — 35 × 45 mm is. School, CPNS and SNBT applications in Indonesia commonly ask for 3x4 and 4x6 cm with a red or blue background.
- ✓Your photo never leaves your device. Cropping, the background change and the sheet layout all run on Canvas in your browser — nothing is uploaded.
Frequently Asked Questions
How do I resize an image to 3x4?▼
Open VYRO AI’s ID Photo Maker in your browser, upload a portrait, pick the 3x4 cm size and a background colour, then export the photo or print a sheet of copies. No account, no upload — the crop, background change and sheet layout all run in your browser.
How many pixels is 3x4 cm at 300 DPI?▼
354 × 472 pixels. The rule is centimetres ÷ 2.54 × 300: 2x3 cm is 236 × 354 px, 3x4 cm is 354 × 472 px, 4x6 cm is 472 × 709 px, 35 × 45 mm (passport) is 413 × 531 px, and 30 × 40 mm is 354 × 472 px. Every photo the tool exports is made at 300 DPI for print.
Can I use a 3x4 photo for a passport or visa?▼
Check the exact size your document requires first — 3x4 cm is not the passport size in most countries. The common passport and visa size is 35 × 45 mm, which is 413 × 531 px at 300 DPI, and the tool has a 35 × 45 mm preset for it. School, CPNS and SNBT applications in Indonesia commonly ask for 3x4 and 4x6 cm with a red or blue background.
Does resizing change the background?▼
Yes, if you want it to. The tool swaps the background to a solid colour: AI background mode uses an on-device segmentation model (ormbg, Apache-2.0) that downloads once (about 42 MB) and is then cached, or colour mode, which is instant and needs no download. Edges can look rough on busy backgrounds or hair in either mode.
Will my photo be uploaded anywhere?▼
No. Cropping, the background change and the sheet layout all run on Canvas in your browser — your photo never leaves your device. The exported photo comes out as PNG or JPEG, and the print sheet as PDF.
Try it free, in your browser
No account, no sign-up, no uploads. Your files never leave your device.