Read the upload requirements first

A small file is useful only if the portal accepts its format, dimensions, and visible content. Before editing, note the allowed file types, minimum and maximum size, required width and height, and photo or signature rules. A 20KB upper limit is not the same as a requirement for exactly 20KB. Follow the specific form instructions instead of assuming every exam portal uses the same rules.
Keep the original image unchanged and work on a copy. Do not use AI generation or retouching to invent details in an identity photograph or signature. The task is to encode and resize the real image while preserving what the receiving service needs. If the source is already blurry, aggressive compression cannot restore the missing detail.

Understand the three controls

Cropping removes unwanted parts of the frame. Resizing changes pixel dimensions. Compression changes how the image information is stored. They solve different problems: cropping can improve framing, resizing can remove unnecessary pixels, and JPEG quality settings can reduce file size at the cost of detail. Do not shrink below a mandatory pixel size just to satisfy the byte limit.
Use a file format the portal actually accepts. JPEG is often appropriate for photographs, while a simple signature may behave differently when encoded. Converting the filename from .png to .jpg does not convert the image. Export through an image editor and check the resulting file type. Transparent artwork also needs a suitable background if the chosen format cannot preserve transparency.

Turn the upload instructions into a short checklist

Write the requirements down before opening an editor. A useful checklist has six fields: purpose of the image, accepted format, required pixel dimensions, minimum bytes, maximum bytes, and appearance rules. Copy these from the actual upload page. If the page says only a maximum file size, do not invent a minimum. If it specifies a width and height, record which number is the width so that you do not export a landscape image when a portrait image is required.
Keep units separate. A requirement expressed in pixels describes the digital image grid; a requirement expressed in KB describes the stored file. Changing a print-resolution label alone does not prove that either requirement has been met. After exporting, inspect the pixel dimensions and file size independently. When instructions mention physical dimensions as well, follow the receiving service's conversion guidance rather than guessing from a print setting.
For several applications, create a separate folder for each set of requirements. Keep the original in a source folder and name the final copy clearly, for example photo-application-a.jpg. Record the measured dimensions and bytes alongside it. This small step prevents a previously accepted photo from being reused for a different form with different limits.

Crop to the correct shape without distorting the subject

An aspect ratio describes the relationship between width and height. In the fictional 200 by 230 pixel example above, the shape is 20:23. A 400 by 460 crop has the same proportions and can be resized to 200 by 230 without stretching. A 400 by 400 square does not have the same proportions. Forcing that square into the example dimensions would distort the subject unless you crop or add permitted space first.
Start by choosing a crop with the required proportions, then position the subject inside it. Check that the top of the head, chin, and any required shoulder area remain visible. For a signature, leave enough space around the entire mark so that long strokes and dots are not cut off. These framing checks should happen before compression because lowering export quality cannot repair a missing part of the image.
Adding borders or blank space may change the shape, but it may also conflict with the portal's appearance rules. Use that method only when allowed. If the required crop cannot fit the complete subject, take a better source photograph or scan. Do not stretch a face or shorten a signature just to make the dimensions match.

A repeatable compression workflow

Open a copy in an editor with resize and export controls. Crop according to the form instructions, keeping the required face, shoulders, or complete signature visible. Set the required dimensions while preserving proportions. If the required shape differs from the original, crop to that shape rather than stretching the face or squeezing the signature.
Export in an accepted format and inspect the file size. If the size is too large and dimensions are mandatory, lower JPEG quality gradually while keeping those dimensions. If dimensions are flexible, try a modest reduction and export again. Work from the original copy for each attempt instead of repeatedly recompressing a previously compressed download.
Stop when the file meets both size and clarity requirements. A quality slider value is not a predictable size: two photographs exported with the same dimensions and quality can produce different numbers of bytes. Busy backgrounds and fine detail influence the result. This is why a universal promise of an exact size in two minutes is not reliable.

Illustrative example: choose the next adjustment

Suppose a fictional portal requires a JPEG at 200 by 230 pixels and below 20,000 bytes. You export a correctly cropped photo at those dimensions and its size is 24,600 bytes. The next adjustment should be JPEG quality, because shrinking to 150 by 173 would violate this example's required dimensions. These numbers describe a worked scenario, not the rules of an actual application.
Imagine the next export is 18,900 bytes and the face remains clear at normal viewing size. That would satisfy the example's byte limit, but you must still check the portal preview. If the eyes or signature strokes are damaged, return to a better source or use a less detailed permitted crop. A file below the limit can still be unusable.

Verify bytes and the actual uploaded file

File managers may round the displayed kilobytes. Check the detailed file properties when you are close to the boundary. Some systems describe a kilobyte using 1,000 bytes and others use 1,024, so a modest margin below the stated maximum avoids depending on that distinction. Also check whether the form imposes a minimum size; smaller is not always better.
Use a clear filename for the final version so you do not accidentally select the original large image. After upload, inspect the preview and any success message before moving to the next page. Keep the accepted file together with the application record. Do not assume a renamed or cached preview proves the latest export was uploaded.

Common failures and how to respond

File too large: inspect actual bytes and check that you selected the new export. Invalid dimensions: return to the required width and height, then adjust compression rather than geometry. Unsupported type: perform a real conversion in your editor. Blurry signature: start with a sharper scan, keep all strokes visible, and avoid repeatedly saving an already degraded copy.
If an upload still fails despite a valid file, read the exact error and check the form instructions again. There may be a filename, orientation, colour, or background requirement. Do not keep lowering quality without knowing which validation failed. For a sensitive identity image, prefer a trusted local editor when possible and review any online service before uploading personal documents.

Use different clarity checks for photographs and signatures

For a photograph, inspect the face at the final display size. Look at the eyes, outline of the face, hair edges, and separation from the background. Compression damage may appear as blocky patches or smudged detail. Zooming in can help diagnose the damage, but also return to normal size: a tiny image enlarged across a full screen will naturally look rough. The useful question is whether the required identifying details survive in the actual submitted image.
For a signature, pay attention to thin strokes, small loops, dots, and gaps between lines. An export can be small enough while making two separate strokes merge. Start with a clean, evenly lit capture and remove unnecessary surrounding area through a permitted crop. Avoid heavy filters that erase faint parts of the mark. If the portal permits multiple formats, compare permitted exports by readability and measured size instead of assuming that one format always produces the smallest usable file.
Do not reuse settings blindly between the two tasks. A photo with a textured background and a signature on plain paper contain different visual information. Keep separate final copies, compare each against its own instructions, and open both files once more before upload. If you need to recapture the original, correct focus and lighting first rather than trying to hide blur with stronger compression.

Troubleshoot one failed requirement at a time

The file looks right but the portal rejects its size: inspect the final file's detailed properties and confirm the selected filename. A rounded display such as 20KB is not enough to establish compliance with a strict byte limit. Export with a little more margin if quality allows, while remaining above any stated minimum. Do not repeatedly upload the same file after changing only its name.
The size passes but the preview is sideways: open the final export in an editor, rotate it to the correct upright orientation, save a new copy, and inspect that copy before uploading. Recheck bytes and dimensions after saving because the output may have changed. Verify the portal preview again; the appearance in your original photo viewer is only one check.
The file passes local checks but the form still fails: note the exact error text and check whether it refers to the photo, signature, or another attachment. Confirm filename rules and accepted file types. Then reselect the final file using the upload control. If the error persists, use the portal's help channel with the measured properties and error message. Avoid sharing identity images publicly while asking for troubleshooting help.

Frequently asked questions about a 20KB image limit

Does the image have to be exactly 20KB? Only if the receiving service explicitly says so. A maximum of 20KB usually asks for a file within an allowed range, not a file that lands on a particular rounded number. Check for a separate minimum and preserve enough detail to make the image usable.
Can I compress the same downloaded JPEG again? You can export it again, but another lossy export can discard more detail. Keep the original and make new attempts from that source. Compare the final versions using their actual bytes and visible quality; avoid building a chain of progressively degraded downloads.
Why is another photo smaller with the same settings? File size depends on the image content as well as its dimensions and encoding settings. Fine patterns and busy backgrounds can require different amounts of stored information. A quality value is an export control, so verify the resulting bytes for every image.
What if no readable version fits? Check that you have not kept unnecessary pixels or used the wrong format. If required dimensions are fixed and permitted quality adjustments make the subject unreadable, return to a sharper, better framed source. Seek clarification from the receiving service if its requirements cannot be met with a usable file. Do not submit an altered identity image or silently violate the required dimensions.

Technical reference and final checklist

For developers building an image export tool, MDN documents canvas image export and lossy quality controls. The quality argument applies to supported lossy formats; it is not a target-byte-size setting. A tool still needs to inspect the exported file and report whether it meets the requested limit.
Before submission, check the original requirement against the final file: accepted format, required pixel dimensions, allowed byte range, complete subject, and readable detail. Keep an untouched original and the accepted compressed copy. The goal is a valid, usable upload, not merely the smallest number shown by a compressor.

Updated November 19, 2026: final upload checklist

Before uploading, confirm the receiving form's current instructions and check five things on the exported copy: accepted format, exact pixel dimensions, actual file size in bytes, correct orientation, and readable details at normal viewing size. A file can be under 20KB and still fail because its dimensions or format are wrong.
If the image contains personal identification, prefer an editor you trust and avoid uploading it to an unfamiliar compression website. Keep the original separate, give the final copy a clear filename, and reopen that copy before selecting it in the form. After upload, review the portal preview and its confirmation message.