Trade Pixels Only When the Budget Requires
JPG and WebP try quality changes at the starting dimensions. If the allowed range still exceeds 32 KB, the compressor reduces resolution while keeping the source proportions.
- Retains dimensions when a suitable encoding fits
- Avoids stretching a mark to satisfy a byte limit
- Reports the actual size even when the ceiling is missed