Pick a pixel size, keep the quality
A full-size photo from a modern phone is often too big for 500 KB even at the lowest quality ToolGPT uses. At about 2,000 pixels on the long side, most photos fit at a good quality, and that is still larger than most web pages show a picture.
Name the long edge in the same message, and ToolGPT resizes and compresses in one step. It tries quality 92 first and steps down to 30, keeping the first result under 500 KB, so nothing is squeezed harder than it needs to be. If nothing fits, it says how small it got.