Properly calculate thumbnail size
This commit is contained in:
parent
a9b1a37054
commit
3bac7d6b02
1 changed files with 2 additions and 2 deletions
|
@ -453,7 +453,7 @@ export async function captureDimensionsAndScreenshot(
|
|||
contentType: THUMBNAIL_CONTENT_TYPE,
|
||||
width: THUMBNAIL_SIZE,
|
||||
height: THUMBNAIL_SIZE,
|
||||
size: 100,
|
||||
size: thumbnailBuffer.byteLength,
|
||||
},
|
||||
};
|
||||
} catch (error) {
|
||||
|
@ -513,7 +513,7 @@ export async function captureDimensionsAndScreenshot(
|
|||
contentType: THUMBNAIL_CONTENT_TYPE,
|
||||
width: THUMBNAIL_SIZE,
|
||||
height: THUMBNAIL_SIZE,
|
||||
size: 100,
|
||||
size: thumbnailBuffer.byteLength,
|
||||
},
|
||||
width,
|
||||
height,
|
||||
|
|
Loading…
Add table
Reference in a new issue