Fix crash when drawing blurHash for portrait videos PSB-139 (#8855)
This commit is contained in:
parent
8cceda66ee
commit
0a90674e89
4 changed files with 93 additions and 1 deletions
|
@ -20,7 +20,7 @@ const SIZE_LARGE = { w: 800, h: 600 };
|
|||
// For Normal the image gets drawn to never exceed SIZE_NORMAL.w, SIZE_NORMAL.h
|
||||
// constraint by: timeline width, manual height overrides
|
||||
const SIZE_NORMAL_LANDSCAPE = { w: 324, h: 324 }; // for w > h
|
||||
const SIZE_NORMAL_PORTRAIT = { w: 324 * (9/16), h: 324 }; // for h > w
|
||||
const SIZE_NORMAL_PORTRAIT = { w: Math.ceil(324 * (9/16)), h: 324 }; // for h > w
|
||||
|
||||
type Dimensions = { w: number, h: number };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue