How to resize an image to an exact size
Portal photo uploads fail on two separate rules at once: the picture must be exact pixel dimensions - 600x600 is the famous one - and the file must be under a maximum size like 50 KB, 200 KB or 240 KB. A normal resizer controls only one of those numbers, so the upload still gets rejected on the other. An exact-size resize sets both numbers before it starts and works to both.
That is how the Compress Picture tool on this site works, and it is why the two type-in boxes sit at the top: desired pixels first, desired file size second. You also choose how the photo fits the box. Fit keeps the whole photo visible inside the dimensions, which can leave one side slightly different from the typed number. Crop-to-fill guarantees the output is exactly the pixel size asked for, trimming the edges - the right choice when a portal measures the dimensions strictly, which most do.
Use the numbers from your own application, always. Presets like 600x600, 35x45 mm (about 413x531 pixels at 300 DPI) and the 2x2 inch passport size are common starting points, but requirements differ by country and program, and the portal checks against its own figures - not against a preset on any website, including this one. After resizing, check the result line: it reports the final pixels and the final KB before you upload.
How to do it
- Read your application carefully and note both numbers: the exact pixels and the maximum KB or MB.
- Open Compress Picture (linked below) and add your JPG, PNG or WebP photo.
- Type the exact width and height in pixels in the top boxes.
- Type the maximum file size and choose KB or MB.
- Choose crop-to-fill if the portal measures exact dimensions, or fit to keep the whole photo visible.
- Click Compress Picture, check the reported final pixels and KB, then download and upload.
Common questions
What if I set pixels and KB and it cannot do both?
A very tight KB cap on a large pixel size forces a quality drop. The tool lowers quality first, then scale if it must, and reports the final size honestly - if the pixels had to change, the result line shows what you actually got.
Fit or crop-to-fill - which do portals expect?
If the instructions give exact dimensions, crop-to-fill: the output is guaranteed to be exactly that size. Use fit when keeping every edge of the photo matters more than the exact final dimension.
Will resizing ruin my photo?
For portal photos at normal sizes, no visible difference in normal use. Keep your original photo safe - resizing always writes a new file, your original is never changed.
Are my photos uploaded?
No. Resizing runs in your browser, on your device.
Related tools
Every tool on PDFExactSize
Merge PDF · Split PDF · Compress PDF · Compress Picture · Rotate PDF · Delete and Organize Pages · Images to PDF · PDF to JPG or PNG · Add Watermark · Add Page Numbers · Add Text to PDF · Sign PDF · Crop PDF · Extract Text · PDF to Markdown · PDF to Word · Fill PDF Forms · Flatten PDF · Bates Numbering · Compare PDF · PDF to HTML · Repair PDF · Redact PDF · Text to PDF · PDF Metadata Editor · Reverse Page Order · Duplicate Pages · Image Converter · QR Code Generator · Extract Images from PDF · Resize PDF Pages · N-Up (Pages per Sheet) · PDF to Grayscale