mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Also add stripes to square videos
This commit is contained in:
parent
9e9a00d7f8
commit
0cbe9a471f
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ async function autoResize (options: {
|
||||||
const { sourceImage, newSize, destination } = options
|
const { sourceImage, newSize, destination } = options
|
||||||
|
|
||||||
// Portrait mode targeting a landscape, apply some effect on the image
|
// 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
|
const destIsPortraitOrSquare = newSize.width <= newSize.height
|
||||||
|
|
||||||
removeExif(sourceImage)
|
removeExif(sourceImage)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue