Keep Resolution When the Encoding Fits
JPG and WebP search for an allowed quality at the existing pixel dimensions. Downscaling follows only if that resolution cannot reach the target within the permitted range.
- Uses the encoded result to assess the requested ceiling
- Retains the selected aspect ratio if reduced
- Lets the target and format change for another pass