How do you compress an image under a strict KB cap?
I built this because I got tired of upload forms rejecting my images. It works from a file size, not a quality slider: pick 50KB, 100KB, 200KB, 500KB or 1MB, or type your own number, and it aims under that cap at the best quality it can get away with.
What if an upload form requires a minimum and maximum KB range?
The end people forget is the other one. Plenty of forms want a range, 20KB to 50KB say, and an image that's too small gets rejected just as fast as one that's too big. So there's a minimum size check: it validates both bounds and asks you for a different image rather than padding the file with filler bytes. If a form also insists on exact pixel dimensions, the resize panel has a "Pad to exact size" option that adds white margins instead of cropping people's faces out.
What are the transparency and image size limits?
Two limits worth knowing. Transparency gets flattened to white, so don't push a transparent image through the JPG output. And the ceiling is 10MB, 12 megapixels, 8192px on the long side.
All of it runs in the browser. Nothing is uploaded.


