Donaldcwl / browser-image-compression

Image compression in web browser
MIT License
1.31k stars 161 forks source link

[bug fix] Clear unused canvases to avoid memory leak. #191

Open hedgerwang opened 1 year ago

hedgerwang commented 1 year ago

This resolved the issue where some canvases were not cleared properly, and it might result in reaching the limit of maximum canvas memory usage when the client attempted to compress multiple images.

hedgerwang commented 1 year ago

cc @Donaldcwl

avshyz commented 1 week ago

Hi, can this be merged?