Skip to main content
All articles

Images

How to Resize an Image to an Exact Pixel Size

Upload forms ask for exact pixel sizes and KB limits. Here's how to hit the numbers without opening a photo editor.

5 min readSep 12, 2026GainUtility

One camera shot, resized for a listing form
MetricBeforeAfter
Dimensions4032 × 30241200 × 900
Width4032 px1200 px
Size4.6 MB780 KB
Limit—1 MB

A form asks for “photo, 1200 × 900 or less, under 1 MB”. Most people react by guessing: upload the photo, get rejected, open a random editor, fiddle. There's a calmer order for this, and it starts with reading the requirement as two separate numbers.

Dimensions first, then size

The pixel requirement is the strict one — a form checks it directly. So hit exact pixels first: set the width and height to the allowed maximum, or smaller than it. Then, if the file is still over a KB limit, reduce quality. Resizing to size and resizing to quality are different jobs.

The distortion trap

If you stretch a portrait photo to landscape dimensions, the picture gets squashed and the form (or a reviewer) notices. When the photo doesn't match the requested orientation, crop toward the subject rather than stretching. A 1200 × 900 crop of a 4000 × 3000 photo keeps the important part and the right proportions.

A realistic before and after

The same camera shot, resized for a listing form:

  • Original: 4032 × 3024 px wide, about 4.6 MB.
  • Resized to 1200 × 900 px: about 780 KB — well under a 1 MB limit.
  • One step, one preview, done.

Step by step

The whole job, in order:

  1. Open the GainUtility image resizer and load your image.
  2. Switch the mode to exact dimensions.
  3. Enter the required size. Keep the required orientation — crop instead of stretch if they don't match.
  4. Check the preview; adjust the crop if a useful part of the photo is being cut off.
  5. Export and upload. If the file is still too large for a KB limit, follow it with the compressor.