Why signatures compress so well
A signature on white paper is close to the ideal case for JPEG. Large areas of identical white, a few dark strokes, and no photographic noise anywhere. The encoder can describe the blank space almost for free, which means your entire 20KB budget goes towards the ink.
That is also why a signature compressed to 20KB usually looks sharper than a photograph compressed to 20KB. There is simply less information to preserve.
Crop before you compress
Most scanned signatures arrive with a wide white margin around them, because the scanner captured the whole page. That margin costs you kilobytes and buys you nothing — the portal only cares about the signature itself.
Use the crop tool on the file card to trim to just the strokes, leaving a small even border so the signature does not touch the edge. A tight crop often means you can keep a higher quality setting and still fit comfortably under the limit.
- Trim the white margin, keep a small even border
- Scan or photograph in good, even light — shadows cost bytes
- Keep the signature horizontal; rotate before cropping
- Export as JPEG unless the form explicitly demands PNG
If the form wants PNG
Some portals insist on .png for signatures. That is fine — PNG keeps the strokes perfectly crisp because it is lossless — but expect a larger file, and expect to need dimension reduction to reach 20KB. Cropping tightly matters even more in that case, because PNG cannot discard the blank margin as efficiently.