Also add stripes to square videos

This commit is contained in:
Chocobozzz 2024-01-11 11:13:20 +01:00
parent 9e9a00d7f8
commit 0cbe9a471f
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -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)