Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of memory issue #8

Open
stmusic opened this issue Mar 1, 2019 · 1 comment
Open

Out of memory issue #8

stmusic opened this issue Mar 1, 2019 · 1 comment

Comments

@stmusic
Copy link

stmusic commented Mar 1, 2019

I have to say this is indeed a great tool for downscaling image. The downscale.js has better balance between processing speed and image quality. However, I encountered two problem when using the downscale.js. The major problem is that it is very memory consuming. Even only one photo (about 10m size, 6000 X 4000px), it consumes 100m memory. It seems the memory (probably the ImageData variables) is not freed properly. I tested the provided demo (https://ytiurin.github.io/downscale/demo/multiselect.html) and I chose 10 photos (taken by camera, all about 10m size, 6000 X 4000px), then the browser will crash and report ‘out of memory’ error. The second problem is that the downscale.js doesn’t support IE (IE10 or IE11), it will report ImageData not support error. I am not proficient in this area, so could you kindly help to check these problems? Thank you!

@luaneko
Copy link

luaneko commented Apr 5, 2020

This line seems to be the culprit. This library is preventing the image blobs from being deallocated because it calls URL.createObjectUrl but never URL.revokeObjectUrl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants