Why exam portals reject 20 KB and 50 KB photo and signature uploads

The exact technical reasons recruitment portals reject valid-looking JPEGs—and how local byte-verified encoding fixes every one.

Few things are more frustrating than an upload error at 11 pm on the last day of registration. Your photo looks fine, your computer says it is "20 KB", and yet the portal insists it is too large, too small, or the wrong format.

These errors are almost never random. Portals run simple, strict checks on file size in bytes, image width and height in pixels, and the actual file type. Once you understand what each check measures, you can prepare files that pass the first time.

This guide explains the four most common technical causes of rejection, shows the arithmetic behind each one, and gives you a repeatable way to produce a photo and signature that match the notification exactly.

Quick answer & key takeaways

Exam portals usually reject photos and signatures for four reasons: the file is a few hundred bytes over the limit because 1 KB was read as 1,024 bytes instead of 1,000, the pixel dimensions do not match the notification, the aspect ratio is wrong so the image looks stretched, or the file is not really a JPEG despite its .jpg name. Fix all four before uploading.

  • A portal limit of 20 KB may mean 20,000 bytes, while your computer may call 20,400 bytes "20 KB" — target the stricter number.
  • Convert centimetres to pixels with pixels = cm ÷ 2.54 × DPI; 3.5 × 4.5 cm at 200 DPI is about 276 × 354 px.
  • Crop to the required aspect ratio before resizing so faces and signatures do not look stretched or squashed.
  • Renaming a PNG or HEIC file to .jpg does not convert it; the portal may read the real format from the file contents.
  • Minimum size limits matter too: an over-compressed or tiny file can be rejected as easily as a large one.

What an upload validator actually checks

Most recruitment and admission portals perform a handful of automatic checks the moment you choose a file. They do not judge whether the photo looks good; they test measurable properties against the rules in the notification.

  • File size in bytes — compared against a minimum and a maximum, for example 20 KB to 50 KB for a photo.
  • File type — commonly JPEG/JPG only for photos and signatures, sometimes checked from the file contents rather than the name.
  • Pixel dimensions — width and height, either exact (such as 200 × 230 px) or within a range.
  • Aspect ratio — sometimes enforced indirectly through fixed dimensions.

A file that fails any single check is rejected, and the error message is often vague. "Invalid file" can mean any of the four. That is why it helps to fix all four properties together rather than guessing.

The KB versus KiB trap

A kilobyte can mean two different things. In decimal (SI) units, 1 KB = 1,000 bytes. In binary units, properly called kibibytes, 1 KiB = 1,024 bytes. The gap is small for one kilobyte but adds up quickly.

Common portal limits in bytes
LimitDecimal (KB, 1,000 bytes)Binary (KiB, 1,024 bytes)Difference
10 KB10,000 bytes10,240 bytes240 bytes
20 KB20,000 bytes20,480 bytes480 bytes
50 KB50,000 bytes51,200 bytes1,200 bytes
100 KB100,000 bytes102,400 bytes2,400 bytes
200 KB200,000 bytes204,800 bytes4,800 bytes

Windows File Explorer divides by 1,024 but labels the result "KB", and it rounds up. A file of 20,400 bytes is 19.92 KiB, which Explorer shows as "20 KB". If the portal checks for 20,000 bytes or fewer, that "20 KB" file fails by 400 bytes.

The safe window

Because you rarely know which definition a portal uses, aim for a size that passes both. For a maximum, stay at or below the decimal value. For a minimum, stay at or above the binary value. For a 10–20 KB signature, the safe window is 10,240 to 20,000 bytes. For a 20–50 KB photo, it is 20,480 to 50,000 bytes.

The Exact image compressor targets a precise byte count, such as 20,000 bytes for 20 KB, and verifies the final size. In Photo & signature you can choose whether limits mean KB (1,000 bytes) or KiB (1,024 bytes) when setting minimum and maximum size.

Converting centimetres to pixels

Some notifications specify photo size in centimetres, others in pixels, and some in both. Digital uploads are judged in pixels, so you need to convert. The formula is simple: pixels = centimetres ÷ 2.54 × DPI, rounded to the nearest whole number.

For a 3.5 cm wide photo at 200 DPI: 3.5 ÷ 2.54 = 1.378 inches, and 1.378 × 200 ≈ 276 px. For 4.5 cm: 4.5 ÷ 2.54 × 200 ≈ 354 px. A 3.5 × 1.5 cm signature at 200 DPI works out to about 276 × 118 px.

Physical sizes converted to pixels
Physical sizeAt 200 DPIAt 300 DPI
3.5 × 4.5 cm (passport-style photo)276 × 354 px413 × 531 px
3.5 × 1.5 cm (signature)276 × 118 px413 × 177 px
2.5 × 3.5 cm (smaller photo)197 × 276 px295 × 413 px
5 × 5 cm (square photo)394 × 394 px591 × 591 px

Aspect ratio: why your photo looks stretched

Aspect ratio is width divided by height. A 3.5 × 4.5 cm photo has a ratio of 3.5 ÷ 4.5 ≈ 0.78 (7:9). A phone camera photo is usually 3:4 (0.75) in portrait or 4:3 in landscape. If you resize a phone photo directly to 276 × 354 px without cropping first, the face is subtly stretched.

Signatures are worse. A 3.5 × 1.5 cm signature has a ratio of about 2.33:1. A phone photo of a signature on a page might be 3:4. Forcing that into 276 × 118 px squashes the signature into an unreadable smear.

The fix is to crop to the target ratio first, then resize. Photo & signature lets you do both in one place: set the target width and height in pixels, then crop and zoom so the face or signature is framed for that shape, so you choose what to keep rather than letting a resize distort it.

Renamed files that are not really JPEG

iPhones save photos as HEIC by default. Screenshots are usually PNG. Some apps share WebP. Renaming photo.heic to photo.jpg changes only the label; the data inside is still HEIC. Some portals check only the extension, but many check the first bytes of the file, which identify the real format.

When a portal checks contents, a renamed file fails with a format error even though the name looks right. Worse, some portals accept it but the image fails to display later, which can cause problems during verification.

Always re-save the image as a genuine JPEG. Photo & signature accepts JPEG, PNG, WebP, GIF, AVIF and HEIC/HEIF and can output a real JPEG. If you are unsure what a file really is, the Application file checker identifies the format from the file’s contents, not the extension.

Why "too small" fails as often as "too big"

Many notifications set a minimum size, such as 10 KB for a signature or 20 KB for a photo. Minimums exist because extremely compressed images look blocky and are hard to verify. If an online compressor pushes your signature down to 6 KB, the portal rejects it.

Sometimes you cannot meet both the dimensions and the size limit at once. A very small image, such as 140 × 60 px, may not reach a 10 KB minimum even at the highest quality. Rather than silently changing your dimensions, Photo & signature tells you immediately when a size limit cannot be met at the chosen dimensions, so you can recheck the notification.

Diagnosing common error messages
Portal messageMost likely causeFix
File size exceeds limitKiB/KB mismatch or genuinely too largeTarget the decimal maximum, e.g. 20,000 bytes
File size too smallOver-compression or tiny dimensionsIncrease quality or check required dimensions
Invalid formatHEIC, PNG or WebP renamed to .jpgRe-export as a real JPEG
Invalid dimensionsWrong width or height in pixelsResize to exact pixels from the notification

How to prepare a photo and signature that pass the first time

  1. Read the specification

    Note the required format, pixel dimensions (or centimetres and DPI) and minimum and maximum file size from the official notification.

  2. Convert to pixels if needed

    Use pixels = cm ÷ 2.54 × DPI and round to whole numbers.

  3. Crop and resize together

    Open the image in Photo & signature, enter the target pixel size, and position the crop so the face or signature fills the frame correctly.

  4. Set the size window

    Enter minimum and maximum size, choosing KB or KiB; when unsure, aim between the binary minimum and decimal maximum.

  5. Export as real JPEG

    Choose JPEG output and add a white background if the original was transparent.

  6. Verify before uploading

    Check the requested versus measured output, or run the files through the Application file checker using your portal’s rules.

Common mistakes to avoid

What goes wrong: Trusting the "20 KB" shown in Windows Explorer.

Better approach: Check the exact byte count in file properties and keep it at or below 20,000 bytes.

What goes wrong: Resizing a phone photo to the target pixels without cropping.

Better approach: Crop to the target aspect ratio first so the face is not stretched.

What goes wrong: Renaming HEIC or PNG files to .jpg.

Better approach: Re-export the image as a genuine JPEG.

What goes wrong: Compressing far below the minimum size.

Better approach: Set both a minimum and maximum and target the middle of the safe window.

Frequently asked questions

Is 20 KB equal to 20,000 bytes or 20,480 bytes?

It depends on who is counting. Decimal KB is 1,000 bytes, so 20 KB is 20,000 bytes; binary KiB is 1,024 bytes, so 20 KiB is 20,480 bytes. Staying at or below 20,000 bytes passes either interpretation.

What is the pixel size of a 3.5 × 4.5 cm photo?

At 200 DPI it is about 276 × 354 pixels; at 300 DPI it is about 413 × 531 pixels. Use whichever DPI or pixel values your notification specifies.

Why does my photo upload show an invalid format error when it is a .jpg?

The file may actually be HEIC, PNG or WebP with a renamed extension. Re-export it as a real JPEG, and confirm the format with a checker that reads file contents.

How do I find the exact size of a file in bytes?

On Windows, right-click the file, choose Properties and read the "Size" value in bytes. On a Mac, use Get Info. Ignore the rounded figure in the file list.

Does DPI matter for online uploads?

Usually not directly. Portals check pixel dimensions and bytes. DPI only matters when converting a centimetre specification into pixels.

Summary

Portal rejections feel arbitrary, but they come from a short list of measurable causes: bytes, pixels, aspect ratio and real file type. Convert centimetres to pixels, crop before resizing, export a genuine JPEG, and aim inside the safe byte window that satisfies both KB and KiB readings. Check the result once before you pay the fee, and the upload step becomes the easiest part of the form instead of the most stressful.

Related guides

Browse all guides →