Fix crash when drawing blurHash for portrait videos PSB-139 (#8855)

This commit is contained in:
Andy Balaam 2022-06-17 12:03:29 +01:00 committed by GitHub
parent 8cceda66ee
commit 0a90674e89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 93 additions and 1 deletions

View file

@ -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 };