|
@@ -93,7 +93,7 @@ async function autoResize (options: {
|
|
|
const { sourceImage, newSize, destination } = options
|
|
|
|
|
|
// Portrait mode targeting a landscape, apply some effect on the image
|
|
|
- const sourceIsPortrait = sourceImage.getWidth() < sourceImage.getHeight()
|
|
|
+ const sourceIsPortrait = sourceImage.getWidth() <= sourceImage.getHeight()
|
|
|
const destIsPortraitOrSquare = newSize.width <= newSize.height
|
|
|
|
|
|
removeExif(sourceImage)
|