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:
commit
d543f9781f
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue