UPSC asks for a photo and signature between 20 and 300 KB; many corporate HR portals use a similar cap. At 300 KB the tool can usually keep a photo at 1600 px or more with high JPEG quality, so nothing looks compressed. Set Min (KB) to 20 under More options when a minimum applies.
At 300 KB you can expect about 1600 to 1800 px on the long side. The exact number depends on how much fine detail the image has: skies and plain walls compress well, foliage and fabric don't.
Tip: Photos with plain backgrounds compress better than busy ones, which matters for passport-style shots.