mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Ensure resize fit=inside respects 90/270 rotate #3756
This commit is contained in:
@@ -968,6 +968,9 @@ namespace sharp {
|
||||
if (swap && canvas != Canvas::IGNORE_ASPECT) {
|
||||
// Swap input width and height when requested.
|
||||
std::swap(width, height);
|
||||
if (canvas == Canvas::MAX) {
|
||||
std::swap(targetWidth, targetHeight);
|
||||
}
|
||||
}
|
||||
|
||||
double hshrink = 1.0;
|
||||
|
||||
Reference in New Issue
Block a user