Accept a Smaller Canvas When Needed
A large source may need substantial downscaling to approach 20 KB. JPG and WebP try quality first, then reduce resolution while preserving the source proportions.
- Avoids stretching the subject to fit the budget
- Keeps dimensions only when encoding can meet the limit
- Returns an honest size when the target is unreachable