Merge pull request #808 from ente-io/add-buffer-to-thumbbnail-greater-than-limit

don't report thumbnail upto size of 150KB
This commit is contained in:
Abhinav Kumar 2022-12-23 19:01:06 +05:30 committed by GitHub
commit d543f9781f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -234,7 +234,7 @@ async function thumbnailCanvasToBlob(canvas: HTMLCanvasElement) {
percentageSizeDiff(thumbnailBlob.size, prevSize) >=
MIN_COMPRESSION_PERCENTAGE_SIZE_DIFF
);
if (thumbnailBlob.size > MAX_THUMBNAIL_SIZE) {
if (thumbnailBlob.size > 1.5 * MAX_THUMBNAIL_SIZE) {
logError(
Error('thumbnail_too_large'),
'thumbnail greater than max limit',