
Why “compress this image to 100 KB” is a constraint problem
An upload form that accepts only a small image is asking for several things at once: a supported file format, acceptable dimensions, a maximum byte count, and a picture that is still readable. Optimizing only one of those can produce a file that looks successful in a preview but fails at the destination.

