browser-image-compression
browser-image-compression copied to clipboard
[bug fix] Clear unused canvases to avoid memory leak.
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.
cc @Donaldcwl