Scan at 100 to 150 DPI, not 300
Scanners often default to 300 DPI, which is meant for printing and gives four to nine times more pixels than a form needs. For an upload, 100 to 150 DPI keeps text readable on screen and leaves room under the limit. If you already have a large scan, set a Longest side of 1280 or 1024 px.
Crop to the document
Cut away the table, the scanner lid and the empty border. A credit-card-sized ID card at 300 DPI is only 1011 × 638 px once it is cropped, compared with 2480 × 3508 px for the full A4 scan it sits on.
Even light, no shadows
When you photograph a document, place it flat near a window and hold the phone straight above it. Shadows and uneven light add shading that takes up space and makes text harder to read.
Several pages?
If a form allows only one image but your document has two pages, check whether it accepts a PDF instead. If it must be one image, place the pages side by side at a lower resolution, but make sure the smallest text is still readable.
Need a different limit? Use compress to any size in KB, or see the 50 KB and 200 KB guides.