Exam photo processor
Upload a photo and crop/scale it to the exact pixels of a common application spec (1-inch 295×413, small 2-inch 413×531, 2-inch 413×579, large 1-inch 390×567, enrollment 480×640 or a custom size), then compress it with a self-contained baseline JPEG encoder at an adjustable quality (with an optional size limit that lowers the quality automatically) or write a lossless PNG.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
The photo is cropped and compressed locally in your browser; nothing is uploaded.
Pick a photo first (PNG / JPEG / WebP all work), then choose the application spec.
The result is a file, so there is no pixel preview
Real numbers for this ID photo
These are the real numbers from this run — copy them straight out.
Pick a photo and the spec, output size, quality and file size show up here.
What this tool does
- Application portals demand exact pixel sizes: pick a spec (1-inch 295×413, small 2-inch 413×531, 2-inch 413×579, large 1-inch 390×567, enrollment 480×640 or a custom size) and get a photo cropped and scaled to those exact pixels.
- When the upload form caps the file size, fill in the size limit (say 20 KiB) and the tool re-compresses from quality 80 downwards in steps of 10 until it fits, stopping at quality 20.
- No third-party upload: cropping, scaling and JPEG encoding all happen locally in your browser, so the photo never leaves your device.
Example
Input
Upload a 24 × 30 gradient photo, choose the 1-inch 25×35 mm spec, JPEG output, quality 80, size limit 0 (none)
Output
Spec: 1 inch 25×35 mm(one-inch) Output size: 295 × 413 Source size: 24 × 30 Format: jpeg Quality: 80 File size: 12049 B (11.77 KiB) Size limit: none Export file name: photo-one-inch-295x413.jpg
The source ratio (24:30) differs from 1-inch (295:413), so the tool crops the excess from the centre (cover) and scales to the target pixels. The byte count is the real output of the built-in baseline JPEG encoder at quality 80.
Frequently asked questions
Is my photo uploaded or stored?
No. Canvas decodes the photo into pixels and cropping, scaling and JPEG/PNG encoding all run on local arrays. The page sends no requests and the exported photo is not kept on any server.
How does it crop — will it cut off my head?
It uses the cover rule: the excess beyond the target aspect ratio is trimmed evenly around the centre of the source image, then the result is scaled to the exact pixels. The closer your source is to a portrait ratio (3:4 for instance) the less is lost, so centre the subject in your phone before uploading.
Why does it sometimes say the size limit cannot be reached?
The automatic quality floor is 20 (anything lower is unusable for an ID photo) with at most 12 attempts. If the photo is noisy and the spec large (2-inch 413×579, say), even quality 20 may exceed the limit; the tool reports that instead of silently changing the size or format.
JPEG or PNG?
Almost every application form wants JPEG: quality 80 usually satisfies both “under xx KB” and sharpness. PNG is lossless and better for further editing, but it is typically several times larger and ignores the quality option.
What happens to transparent pixels?
JPEG has no alpha channel, so transparent pixels are flattened onto white when encoding; PNG keeps them. For a pre-cut studio photo, flatten onto white before exporting JPEG to avoid dark fringes.
Keywords:Exam photo processorexamid photojpeg