KRHTech / Blog

Prepare an image for a government portal without losing the details

By Ajay Ladva · 18 October 2026 · Image preparation

KRHTech mark accompanying a guide to preparing clear, correctly sized document images

Online forms often reject an otherwise valid photo because its file is too large, its dimensions are wrong, or it is in an unsupported format. The answer is not always to turn quality down until the upload works. A photograph of a certificate, identity document or signature has to remain legible, and the portal's own instructions—not a generic target—decide whether the file is acceptable. This guide offers a repeatable process for getting the file under the stated limit and checking it before submission.

Start with the portal's actual requirements

Read the upload instructions for the exact field you are completing. Note the accepted file types, maximum size, required pixel width and height, aspect ratio, background, colour mode and any rules about cropping. A photograph and a scanned document may have different requirements even on the same form. If the portal specifies a size in kilobytes, do not assume that means the same thing as a rounded megabyte limit. Save the instructions or take a note so you do not repeatedly guess.

Also check whether the portal requires an original photograph, a recent passport-style image, a scan, or a signature captured on a plain background. Resizing cannot fix the wrong framing or a reflected glare. Start with a clear, unedited original and work on a copy. Avoid filters, sharpening presets and retouching when the image is evidence or an official likeness. Cropping should follow the portal's guidance and should not remove information that matters.

Resize first, then compress in small steps

Pixel dimensions affect both clarity and file size. If an image is 4000 pixels wide but a form accepts only 1200, resizing to a sensible dimension can reduce file weight before compression. Keep the aspect ratio unless instructions require a crop; forcing a portrait into a square distorts faces, text and logos. Use the Image Resizer to set dimensions, then inspect the result at normal display size and at a closer zoom.

For a photographic image, JPEG is commonly accepted and can be made smaller by lossy compression. Each save discards some information, so make the reduced file from the original rather than repeatedly recompressing the last export. For logos, signatures or graphics with hard edges and transparency, PNG may preserve edges better, although the file may be larger. The Image Converter can help create a different format, but conversion alone does not guarantee compliance or preserve every detail.

Check the result as if you were reviewing the application

Open the exported image—not just the editor preview—and verify that the entire required subject is present, text remains readable, no edge is clipped, colours look natural and the dimensions match the form. Check the file properties for the real pixel dimensions and file size. Some portals validate the filename extension as well as the actual encoding, so use a straightforward filename such as application-photo.jpg only when the file really is JPEG.

Example one: a portal asks for a 300 by 400 pixel JPEG under 100 KB. Crop to the specified portrait ratio using the portal's framing rules, resize to those dimensions, then lower JPEG quality gradually until the saved file falls under the cap while facial details remain clear. Do not simply change the extension of a PNG file to “.jpg”.

Example two: a scanned mark or signature has a transparent background and thin strokes. Keep a lossless PNG if permitted; reducing dimensions to the required size may save enough space without adding compression artefacts around the strokes. Example three: a photograph of a document is much larger than needed. Retake it flat in even light if there is perspective or glare; compression cannot restore text that was blurred when captured.

Common mistakes and a final checklist

Do not use a random website that asks you to upload a sensitive identity image unless you understand its privacy terms. Local browser tools can reduce exposure, but browser extensions, shared devices and backups still matter. Keep the original in a secure location, remove unnecessary copies from public computers, and never email a document to yourself merely to move it between devices.

The most common errors are guessing the limit, cropping too tightly, saving a blurry image, changing a filename instead of converting the format, and forgetting that a portal may reject images with the right file size but wrong dimensions. If a portal reports only “invalid image,” test one requirement at a time: extension and format, dimensions, size, then image content. Use the Image Resizer for dimensions and the Image Converter for format changes. Requirements vary by agency and can change; follow the current official instructions and contact the portal's help desk if they conflict.

When a photograph needs to be retaken

If the image is out of focus, motion-blurred, heavily shadowed or photographed at an angle, stop before compressing. Retaking it in diffuse daylight near a window, with the document flat and the camera parallel to the page, can preserve more information than any export setting. Avoid a flash if it creates a bright reflection. Place the document against a plain contrasting surface, include all edges when requested, and check that no finger covers text. For a portrait, use the portal's background and framing instructions; a visually polished edit can still be rejected if it departs from those rules.

It is also useful to keep a small record of the final file's dimensions and size. If an upload fails, compare the exact error message with the rules rather than repeatedly saving lower-quality copies. Some portals reject embedded colour profiles, unsupported alpha transparency or an image whose orientation metadata has not been applied. Re-export from the original with a conventional colour mode only if the instructions or error point that way, and inspect the resulting file again. Never alter document text or remove evidence from an official image to make it look cleaner.