Under the hood
Why 20 KB?
20 KB is a common upload limit, especially for government and exam application portals that cap signatures and photos at 10–20 KB. Uploading a larger file usually fails with a "file too large" error.
JPEG quality between 60 and 85 is usually indistinguishable from the original on screen. For very small targets like 20 KB, the image will also be resized; a passport-style photo of about 400 × 500 px fits easily.