A photo can be below a form's file-size cap and still fail its dimension or format check. Before editing, copy the destination's current requirements: width and height in pixels, maximum bytes, accepted file types, and any crop or background rules. The examples below are hypothetical, not the rules of a particular application portal.
Check three separate properties
| Property | Example requirement | What to inspect in the download |
|---|---|---|
| Pixel dimensions | Exactly 600 × 400 pixels | Actual decoded width and height |
| Encoded file size | At most 100,000 bytes | Exact file size, not a rounded KB label |
| File format | JPEG only | Actual file type; renaming .png to .jpg does not convert it |
Dimensions and file size are different measurements. A new encoding can change bytes without changing pixels; resizing changes pixels too. The browser's canvas export accepts a format and, for lossy formats such as JPEG, a quality setting. See MDN's canvas export reference.
Use a workflow that preserves the required dimensions
- Keep the original. If necessary, crop to the required aspect ratio before resizing.
- Open Image Resizer, enter Width (px) and Height (px), and keep Keep aspect ratio (fit within these dimensions) enabled to avoid stretching.
- Download and inspect the actual dimensions. A bounding box is not an exact crop: an 1800 × 1200 source fitted within 600 × 600 becomes 600 × 400, not a square. For an exact square without distortion, crop to a square first. See the resizing guide for more examples.
- If a JPEG at the correct dimensions is too large, try a lower Quality setting in Compress Image. This workflow keeps the pixel dimensions. PNG quality is not a JPEG-style lossy compression control; selecting a lower setting does not guarantee a smaller PNG.
- Inspect the final downloaded file again. If no acceptable quality meets both the byte cap and required dimensions, try a more suitable original or a permitted crop. Do not stretch a heavily reduced image back up merely to pass a dimension check.
Why Compress to KB can break a form's pixel check
Compress to KB exports JPEG and may reduce both quality and dimensions while trying to meet the target. Transparent areas become white. It can also report that it could not reach an unrealistic target.
Use it when smaller dimensions are allowed, or when you can check that its result still satisfies the destination's minimum dimensions. If the form requires exactly 600 × 400, reaching the byte target alone does not establish that the result is valid. Recheck width and height after this step; do not assume a previous resize survives it.
In one browser check, a synthetic 512 × 512 PNG (8,383 bytes) with a target of 1 KB produced a 23 × 23 JPEG (1,012 bytes). It met the byte cap but no longer met a 512 × 512 requirement. This is a stress-test example, not a recommended photo setting; other images and browser encoders can produce different results.
Check what the KB number means
This tool's Target size (KB) field multiplies the entered number by 1,024. Entering 100 therefore sets a cap of 102,400 bytes. A form enforcing 100,000 bytes can still reject a result that meets that tool setting.
For that hypothetical 100,000-byte cap, an integer target of 97 allows at most 99,328 bytes, leaving a small margin. It still does not guarantee the required dimensions or readable detail. The distinction comes from decimal and binary units: kilo denotes 1,000, while kibi denotes 1,024. NIST explains the binary prefixes.
Review before submitting
Open the final file and check orientation, crop, small lettering and fine edges. Verify every required property from the downloaded file, not just a preview or filename. The destination may also apply rules this toolkit cannot assess, so successful compression is not an acceptance guarantee.
These image operations run in the browser. That does not mean the site makes no network requests: libraries and other page resources can load separately. The network-check guide explains how to distinguish those requests from transmission of your image. Keep the original until you have reviewed and submitted the correct result.