Make algorithm for finding thumbnails more efficient
This commit is contained in:
parent
27a30b3267
commit
403fb1fd60
2 changed files with 15 additions and 6 deletions
|
@ -117,7 +117,9 @@
|
|||
const arrayBuffer = await blobToArrayBuffer(blob);
|
||||
const screenshotObjectUrl = makeObjectUrl(arrayBuffer, 'image/png');
|
||||
|
||||
return makeImageThumbnail(size, screenshotObjectUrl);
|
||||
const thumbnail = await makeImageThumbnail(size, screenshotObjectUrl);
|
||||
URL.revokeObjectURL(screenshotObjectUrl);
|
||||
return thumbnail;
|
||||
}
|
||||
|
||||
Whisper.FileInputView = Backbone.View.extend({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue