Donaldcwl / browser-image-compression

Image compression in web browser
MIT License
1.3k stars 160 forks source link

Memory usage skyrockets when doing the compression #20

Closed brucem1976 closed 4 years ago

brucem1976 commented 5 years ago

So the compression is working, but memory often goes through the roof - for example, compressing a 40MB jpg spikes my browser's memory usage up to 2GB. This causes crashes and inconsistent behaviour on mobile browsers.

After the process is finished, there is also about 400MB more memory being used by the browser, which never gets cleaned up and released.

Is there anything that I can do to manage the amount of a memory this process will use?

Donaldcwl commented 4 years ago

Duplicate of #41