What problem does this address?
Right now seems like we are doing our own scaling procedure to keep the ratio when Limit Image Dimensions with max width/height is on.
What is your proposed solution?
I would suggest wp_constrain_dimensions like we do here https://github.com/Codeinwp/optimole-wp/blob/master/inc/url_replacer.php#L255C46-L255C69
Discovered this while looking on #675
Will this feature require documentation? (Optional)
No.