Compress an image to a target size
Pick a size limit and the tool searches JPEG quality for a setting that fits where possible, reporting the target, the actual result and the difference.
Exact selected target: 102,400 bytes. These existing KB controls use 1,024 bytes per unit; a decimal search preset retains its exact byte count.
Choose an image after setting the target.
Output is JPEG, because quality-versus-size can be searched reliably for it. The result may be below or above the target; the actual size and any unreachable target are reported. An exact byte count cannot be promised. Dimensions are unchanged; only quality is traded.
What it can and cannot promise
- At or just under the target
The bounded search tests JPEG quality settings and reports the closest fit it finds. No image encoder can hit an exact byte count, so it aims to land under rather than on the number.
- Quality is the only lever
Dimensions are left alone. If even the lowest quality overshoots, the image needs resizing too - the tool says so instead of failing quietly.
- JPEG output
JPEG is used because its quality-to-size curve is smooth enough to search reliably. PNG is lossless, so there is no quality dial to trade.
Koldflux sizes every exported asset to its destination automatically.
Automate this in Koldflux