Properly calculate thumbnail size

This commit is contained in:
trevor-signal 2024-06-05 12:42:43 -04:00 committed by GitHub
parent a9b1a37054
commit 3bac7d6b02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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