Properly calculate thumbnail size

This commit is contained in:
automated-signal
2024-06-05 13:23:46 -05:00
committed by GitHub
parent ff1ffdb852
commit 6134546ffd

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,