ericnograles / browser-image-resizer

A tiny browser-based library to downscale and/or resize images using canvas
MIT License
98 stars 42 forks source link

Instantiates img and canvas only once #26

Closed ericnograles closed 4 years ago

ericnograles commented 4 years ago

Summary

Everytime the function is called, it creates a new img and canvas tag; this can lead to performance issues on UI's of scale. (See #18)

Fix Details