From 6134546ffd6d53aba54513ea3503130db846daa8 Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Wed, 5 Jun 2024 13:23:46 -0500 Subject: [PATCH] Properly calculate thumbnail size --- ts/types/Attachment.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/types/Attachment.ts b/ts/types/Attachment.ts index 54aa140fae..775e4845fc 100644 --- a/ts/types/Attachment.ts +++ b/ts/types/Attachment.ts @@ -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,