Resize, Crop and Compress Photos for Forms and Websites

The order that gets a phone photo under 50 KB for an exam form without a blurred face, and makes web images light on Indian mobile data: crop, resize, then compress.

By · · 7 min read

Illustration for the Image Compressor guide

India edition. Written for India: form photos and signatures at the pixel sizes and KB bands in public sector recruitment notices, the 1,000 or 1,024 byte KB problem, centimetre sizes at 200 dpi, and GIGW 3.0's advice on file sizes for government websites. US edition

Many people in India first meet image optimisation at an application portal: a photo of several MB that has to be 20 to 50 KB, a signature that must be 10 to 20 KB, and an upload that fails without saying why. The fix is the same order a web developer uses for a fast page: crop and resize first, then compress, then package. A phone photo shrunk to 200 x 230 pixels before compressing keeps a clear face at 30 KB; the same photo squeezed straight to 30 KB at full size turns into blocks. This edition walks through that order for forms and for websites, with the photo and signature resizer for exam forms and the image compressor set up for KB targets, both of which run in your browser without uploading the files.

Why the order matters: pixels decide the bytes

A 12 megapixel phone photo (4000 x 3000) holds 12 million pixels. A 200 x 230 form photo holds 46,000, about 261 times fewer. JPEG compression can only save so much per pixel before detail goes, so a file limit in KB is really a limit on how many pixels can stay sharp.

Starting pointTargetWhat happens
3000 x 4000 photo compressed straight to 50 KB50 KBAbout 0.004 bytes per pixel: the encoder must throw away nearly all detail, or the pixels have to shrink anyway
Same photo cropped to 200 x 230, then compressed50 KBAbout 1 byte per pixel: comfortably sharp at that size

So for any form: crop to the pixel size the notice gives, then compress to its KB band. If the notice gives only a KB limit, a few hundred pixels across is plenty for an on-screen ID photo.

Step 1: crop and resize to the form's size

Public sector bank recruitment notices are a good guide to what portals expect. Punjab & Sind Bank's guidelines for scanning the photograph, signature, thumb impression and declaration list these preferred sizes:

ItemPixelsFile sizeFormat
Photograph200 x 23020 KB to 50 KBJPG or JPEG
Signature140 x 6010 KB to 20 KBJPG or JPEG
Left thumb impression240 x 240 at 200 dpi20 KB to 50 KBJPG or JPEG
Hand-written declaration800 x 400 at 200 dpi50 KB to 100 KBJPG or JPEG

The same notice asks for a scanner resolution of at least 200 dpi. Other recruiters (SSC, UPSC, NTA, IBPS, state commissions) set their own numbers and change them between notifications, so read your own notification before you start.

A portrait phone photo is 3 by 4; a 200 x 230 box is taller and narrower. Fitting the photo inside the box without cropping would give 173 x 230, narrower than the 200 pixels the notice asks for. "Crop to fill" in the resizer instead cuts the centre 3000 x 3450 region (275 pixels off the top and bottom) and scales it to exactly 200 x 230, so the face keeps its proportions.

If a notice gives a size in centimetres, convert at the scan resolution it names. A 3.5 x 4.5 cm photo at 200 dpi is 276 x 354 pixels (3.5 / 2.54 x 200, rounded); at 300 dpi it is 413 x 531.

Step 2: compress to the KB band, the strict way

Portals rarely say whether a KB is 1,000 or 1,024 bytes. A file of 50,500 bytes is 49.3 KB on one count and 50.5 KB on the other, and fails if the portal uses the second. The compressor reads the maximum the strict way; the resizer applies both ends:

Limit in the noticeMaximum usedMinimum used
Photo, 20 to 50 KB50,000 bytes20,480 bytes
Signature, 10 to 20 KB20,000 bytes10,240 bytes
Declaration, 50 to 100 KB100,000 bytes51,200 bytes

A file inside those bounds passes however the portal counts. The compressor searches for the highest JPEG quality that fits under the maximum, and only shrinks the pixels if even low quality is too big. The resizer also checks the minimum and warns you, which matters for signatures: a dark pen on white paper at 140 x 60 can come out smaller than 10 KB, and the portal rejects it as too small. If that happens, rescan at a higher resolution or raise the quality.

The notice also asks for .jpg or .jpeg (the tools always output JPEG). Separately, do not edit a compressed copy and compress it again: each pass loses detail. Keep the original phone photo and start from it each time.

Step 3: package scans as a PDF

For mark sheets, certificates and caste or income certificates, portals usually want a PDF. The image to PDF converter puts each image on an A4 page (595.28 x 841.89 points) and scales it to fit the margins. What decides whether text is readable is the pixels per inch on the page. An A4 scan at 150 dpi (1240 x 1754 pixels) on a page with 20 point margins prints at about 161 pixels per inch, readable on screen. At 300 dpi (2480 x 3508) it is about 322, sharp in print, but four times the pixels and a much bigger file. For an upload with a size limit, 150 to 200 dpi is usually the better choice.

The same order for websites

The order is the same for a business or government website, where the cost falls on visitors' mobile data:

  1. Resize to the largest size the image is shown at. A 4000 x 3000 photo for a blog column becomes 1600 x 1200, which removes 84% of the pixels before any compression.
  2. Pick the format. JPEG or WebP for photos; PNG or lossless WebP for screenshots, logos and diagrams. The image converter handles both.
  3. Compress at 75% to 85% quality and check faces and skies at full zoom.
  4. Use real text, not pictures of text. GIGW 3.0, the Guidelines for Indian Government Websites and Apps, says text must be used to convey information rather than images of text, partly because images increase download time, and that downloadable files should state their format and size and be kept as small as possible for people without fast, reliable connections.

A notice published as a scanned image of a printed page breaks both rules: it is heavy, and screen readers cannot read it. An OCR'd PDF or an HTML page is lighter and accessible.

Mistakes that cause rejected uploads

  • Compressing a full-size photo to 20 KB. Crop and resize first.
  • Typing the exact limit. A 50 KB limit is safest as 50,000 bytes, which the tools already do.
  • Forgetting the minimum. A signature under 10 KB is rejected just like a photo over 50 KB.
  • A transparent PNG signature. JPEG cannot store transparency, so the tools fill it with white; without that, some converters turn it black.
  • Using a coaching site's size list. Read the notification for your exam and year.

For more on choosing formats, see the image formats guide; for why compressed copies lose GPS and phone details, see the EXIF metadata guide. The US edition of this guide covers Base64 data URIs and format details for developers.

Frequently asked questions

How do I reduce a photo to under 50 KB without blurring the face?

Crop and resize it first to the form's pixel size, such as 200 x 230, and then compress to the KB limit. At 200 x 230 there are about 46,000 pixels, so 50 KB is about one byte per pixel and the face stays clear. Compressing a 12 megapixel original straight to 50 KB leaves almost nothing per pixel.

What is 3.5 x 4.5 cm in pixels?

It depends on the scan resolution. At 200 dpi, the minimum many recruitment notices ask for, 3.5 x 4.5 cm is 276 x 354 pixels; at 300 dpi it is 413 x 531 pixels.

Why is my 50 KB photo rejected as too large?

The portal may count 1 KB as 1,000 bytes. A file of 50,500 bytes is 49.3 KB if a KB is 1,024 bytes but 50.5 KB if it is 1,000. Aim for at most 50,000 bytes for a 50 KB limit, which passes either way.

Why is my signature rejected as too small?

Many notices set a minimum, such as 10 KB. A clean signature at 140 x 60 pixels can compress below 10,240 bytes. Raise the quality, rescan at a higher resolution, or use a resizer that checks the minimum and warns you.

Sources and further reading

Open the Image Compressor

More Image Tools

Every tool in the Image Tools section, free and in your browser.