How to compress a photo for an upload limit
For a photo with a strict upload limit, first match its pixel dimensions to the destination. Then adjust JPEG quality on a copy and compare the exported file size with the limit.
Start with the destination
Suppose a volunteer directory accepts a portrait up to 500 KB and displays it at 400 pixels wide. A 4,000-pixel camera original gives you room to crop. Make the crop first, save the original separately, and try an 800-pixel-wide copy so the directory has enough pixels for a sharper display.
Look at a difficult detail
Open that copy in the compressor. Try a higher quality setting first. Download it, check its actual size, and inspect hair, glasses frames, or lettering at the intended display size. If it exceeds the limit, return to the same input and try a lower setting. Repeatedly compressing each previous export makes it harder to tell which setting produced the damage.
When the file gets larger
A source photo may already use efficient compression. If the new copy is larger, keep the original if it fits. Otherwise narrow the pixel dimensions a little and repeat the comparison. A transparent logo needs a different workflow because JPEG replaces its transparent background.