Under the hood
Why 1 MB?
1 MB is a common upload limit, especially for upload forms with a 1 MB limit and quick sharing on slow connections. 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.