ChangeBgPhoto
Menu
Photographic visual for Kilobytes And Pixels
Kilobytes And Pixels
Guide

Kilobytes and pixels: why a form's two limits fight

A form that asks for 200 × 230 pixels and 20 to 50 KB is setting two limits on one file, and they pull against each other. Here is why, and what actually moves the number.

Pixels are fixed; bytes are not

The pixel size is a count: 200 × 230 is 46,000 pixels whatever is in them. The file size is how many bytes the encoder needed to describe those pixels, and that depends almost entirely on how much detail there is. A JPEG stores smooth areas cheaply and edges, texture and noise expensively.

So two photographs at exactly the same pixel size can differ several times over in kilobytes. A face against a patterned curtain, shot in dim light with a phone's noise in it, is expensive. The same face against a flat, even white is cheap, because a third of the frame is now one value.

Why the floor bites after a background change

Replacing a busy room with pure white removes most of what the file was spending bytes on. At a small form size that can push a photo under the window's minimum — the opposite of the problem people expect. A portal's minimum exists to catch blank or over-compressed uploads, and a very efficient file can trip it.

Take the public-sector bank photograph row: 200 × 230 px preferred (4.5 × 3.5 cm), 20–50 KB, 200 DPI or more. This site reads that window as 20,480 to 50,000 bytes — the bottom in 1,024-byte kilobytes and the top in 1,000-byte kilobytes, so a file inside it passes under either reading of “KB”.

What the search does

When a rule with a kilobyte window is applied, Save does not write one JPEG and hope. It encodes, measures the bytes, and searches the quality setting: down from the starting quality if the file is over the top of the window, up (never past maximum) if it is under the bottom, until the file lands inside. The pixel size stays exactly what the rule asks for unless you have allowed it to come down.

When quality alone cannot reach it

If even the lowest quality is over the ceiling — a very detailed photograph at a large size with a tight maximum — the search can also reduce the pixel size, but only when “Let the pixel size come down if quality alone cannot fit” is on — and it stays off for rules that state a pixel size. If even maximum quality is under the floor, the receipt says so in plain words rather than padding the file with junk to pass.

What helps, in order

First, a flatter ground lowers the bytes and a textured one raises them: a pure white ground is the cheapest, a photographic backdrop the most expensive. Second, quality — the search handles it. Third, and only if the rule allows a range, pixel size. Sharpening, adding a border or saving as PNG to “make it bigger” all change the picture in ways a reviewer may notice and are not needed.

Check the file, not the setting

The receipt after Save decodes the file that was actually written and reports its bytes, its pixel size and the density in its header, each against what the rule asks. That is the number a portal sees.

Questions about kilobytes and pixels

My photo is 200 × 230 but the portal says it is too small in KB. How can a file be too small?

A form's minimum is there to reject blank or badly compressed uploads. A small JPEG of a face on a flat white ground compresses very well, because the ground is almost free to store, so it can come in under a 20 KB floor. The fix is higher JPEG quality, not more pixels — which is what the search does when the first encode lands under the window.

Is a KB 1,000 bytes or 1,024?

Instructions rarely say. This site plays safe both ways: the bottom of a window is read as 1,024-byte kilobytes and the top as 1,000-byte kilobytes, so a file it calls inside the window is inside it under either reading.

Why not just make the picture bigger to reach the minimum?

Because the pixel size is the other half of the same instruction. A 400 × 460 file may land inside the KB window and still be refused for its dimensions. Pixels are fixed by the rule; quality is what moves.

Does PNG help?

Rarely for a photograph. PNG is lossless, so a photograph of a face comes out several times larger than a JPEG of it, and most forms ask for JPEG anyway. PNG suits signatures and logos, which are mostly flat.

Back to the working surface

Cutout and composite run here. No upload.