# Photo Resizer for Exams

> Photo Resizer for Exams crops a portrait to the pixel size a form asks for, finds the highest JPEG quality that fits the KB limit, and pads files below the preset minimum. If it can't fit, you get an error, never an oversized file. Nothing is uploaded. Presets cover SSC, IBPS, UPSC, RRB, passport and visa.

**Canonical:** https://trydocsy.com/forms/photo-resize
**Last updated:** 2026-09-29
**Privacy:** Runs in your browser; the file is never uploaded.

---

Photo Resizer for Exams formats passport-style portraits to the exact pixel dimensions and byte thresholds mandated by central, banking, railway, and state recruitment portals. Instead of guessing quality sliders in desktop graphics suites, candidates select an official preset or specify custom pixel bounds and maximum kilobyte caps. The tool handles framing, high-resolution rendering, and size compression in a single browser pass.

All image manipulation executes locally through native HTML5 Canvas routines, meaning portrait files never leave your computer or smartphone. While this client-side architecture guarantees immediate privacy for sensitive identification photos, processing relies on browser decoding; standard desktop browsers handle JPG, PNG, and WEBP seamlessly, while Apple HEIC files decode natively inside Safari.

## How it works

1. **Upload your portrait photo** — Click the dashed upload box or drag an image into the dropzone. The tool accepts JPG, PNG, WEBP, and HEIC files up to 10 MB, immediately generating an in-memory preview.
2. **Select an official exam preset or enter custom bounds** — Choose a target authority such as UPSC, SSC, IBPS, Railway RRB, or Indian Passport to populate standardized pixel dimensions and file size ceilings, or choose Custom Size to configure your own width, height, and target kilobyte values.
3. **Execute crop and binary compression** — Click the Resize Photo button. The tool centers your portrait, crops excess width or height to preserve the required proportion, renders the image onto a virtual canvas, and binary-searches the JPEG quality until the file is at or under the KB limit.
4. **Inspect specifications and download** — Examine the output resolution and file size badge on the confirmation card, then click Download Photo to retrieve your compliant JPEG file labeled with the exam name and pixel dimensions.

## When you'd use it

- **Staff Selection Commission (SSC CGL and CHSL) applications** — Candidates uploading identity photos to SSC portals require precisely 200×230 pixels between 20 KB and 50 KB. The tool scales the portrait to exact pixel limits and prevents under-20 KB rejection.
- **UPSC One Time Registration (OTR) profile setup** — The UPSC One Time Registration FAQ asks for a JPG photograph between 20 KB and 300 KB, from 350×350 pixels minimum to 1000×1000 pixels maximum on each side. The 400×400 preset sits inside that range.
- **Banking recruitment (IBPS and SBI PO/Clerk) submissions** — Banking registration portals enforce a strict 20 KB minimum and 50 KB maximum ceiling with a 200×230 aspect ratio. Automated binary compression prevents portal upload timeout errors.
- **Railway Recruitment Board (RRB NTPC and Group D) forms** — Railway boards specify 3.5×4.5 cm portraits at 300 DPI (413×531 pixels) capped at 50 KB. The dedicated preset guarantees precise print-density conversion without manual DPI recalculation.
- **International visa and passport digital filings** — Online visa filings such as US DS-160 require square 600×600 pixel images between 50 KB and 240 KB, while Schengen submissions demand 413×531 pixels up to 500 KB.

## Aspect ratio cropping versus distortion

Government portals automatically check the pixel width and height of uploaded portrait files. Uploading an unadjusted photo from a modern smartphone (which typically captures at 4:3 or 16:9 ratios) into a 200×230 pixel slot causes portal scripts to either reject the upload or compress the face horizontally into an unflattering, distorted oval.

This utility avoids distortion by calculating the source aspect ratio against the destination bounds before drawing onto the canvas. If the source image is wider than the target frame, the algorithm trims equal slices from the left and right margins while preserving the vertical center. If the source is taller, it trims equal bands from the top and bottom. The resulting facial portrait remains natural, upright, and centered.

## How does the tool aim for a KB range?

Reaching a tight file window such as 20 KB to 50 KB is notoriously difficult with standard image editors. Saving at high quality easily exceeds 50 KB, while saving at low quality risks dropping below 20 KB, triggering portal validation errors. This tool solves the problem with an automated binary search over JPEG quality.

The script tests successive JPEG quality factors between 0.10 and 1.00 on the canvas, at the exact pixel size, until it finds the highest quality that stays at or under the maximum byte limit. It never shrinks the dimensions to save bytes. If even quality 0.10 is over the limit (a very detailed photo at large dimensions), you get an error explaining the smallest size it reached, and no file to download. If a clean, low-noise headshot compresses smaller than the portal's mandatory minimum floor (such as 20 KB), the tool invokes trailing-byte zero padding past the JPEG End of Image marker. This technique satisfies server-side file size inspectors while preserving 100% of the decoded image fidelity.

## Why do portals reject a photo that is the right size?

Most application rejections stem from preventable lighting, background, and framing errors rather than numerical dimensions alone. Official guidelines universally mandate a plain white or light-colored background without patterns, shadows, or outdoor scenery. The applicant's face must occupy roughly 70% to 80% of the vertical frame, looking directly into the lens with both ears visible.

Applicants should remove tinted spectacles, heavy frames, and caps or head coverings unless worn for religious reasons. Flash glare reflected on glass lenses is a frequent reason for automated scrutiny failure. For best results, capture your photo in diffused daylight facing a clean white wall, crop close to the collarbones, and run the photo through this tool to lock in the required pixel geometry.

## Frequently asked questions

**Q: Will resizing my photo distort or stretch my face?**
A: No. The tool calculates the proportional difference between your original picture and the target preset. It crops equal margins from the excess edges to center your face before resizing, ensuring your facial features are never stretched or compressed.

**Q: Why is there a minimum file size requirement on exam forms?**
A: Recruitment servers set minimum thresholds (typically 20 KB) to block heavily pixelated or illegible photos. When the quality search produces a clean image below the required floor, it safely pads the JPEG structure to satisfy the server validator.

**Q: Can I upload HEIC photos taken on an iPhone?**
A: Yes, if you open TryDocsy in Safari on macOS or iOS, which provides native browser HEIC decoding. On Chrome, Firefox, or Windows browsers that lack HEIC support, convert the photo to JPG or PNG first.

**Q: Are my uploaded personal photos sent to any remote server?**
A: No. All canvas transformations, cropping operations, and JPEG encodings execute strictly within your local browser runtime. No image data or metadata is ever transmitted over the network.

**Q: What should I do if my exam is not listed in the presets?**
A: Select the Custom Size option from the preset menu. You can manually enter the exact width in pixels, height in pixels, and the maximum file size in kilobytes specified in your official exam brochure.

**Q: Does this tool automatically remove colored backgrounds?**
A: No. This tool crops, resizes, and compresses your photo. If your original image has a dark or busy background, use our dedicated background remover tool first, then import the resulting white-background portrait here.

## Step-by-step guides using this tool

- [How to Reduce a Photo to 20 KB Without It Going Blurry (Exam Form Uploads)](https://trydocsy.com/blog/reduce-photo-to-20kb-without-blur)

## Related tools

- [Signature Resizer](https://trydocsy.com/forms/signature)
- [Document Checker](https://trydocsy.com/forms/checker)
- [Document Scanner](https://trydocsy.com/forms/scanner)
- [Crop Image](https://trydocsy.com/image/crop)
- [Compress Image](https://trydocsy.com/image/compress)
- [PAN Card Crop & Print](https://trydocsy.com/pan-card-crop-print)

---

## About TryDocsy

TryDocsy is a free website of PDF, image and file-conversion tools that run entirely in your web browser, so your files are processed on your own device and never uploaded. It also includes photo and signature resizers preset to Indian government-exam specifications.

- Website: https://trydocsy.com
- Privacy Policy: https://trydocsy.com/privacy
- Terms of Service: https://trydocsy.com/terms
- Contact: https://trydocsy.com/contact
