maxisam / ngx-progressive-image-loader

lazy load img/picture, prevent reflow and seo friendly.
MIT License
35 stars 6 forks source link

How is memory usage handled for image resizing #5

Closed AndreasSchmid1 closed 5 years ago

AndreasSchmid1 commented 5 years ago

First: Thanks for the great repo.

I have a question regarding memory usage when loading images via this library AND using the max-width/height options in your excample.

Suppose I'm loading a 2000x2000 pixel image with the 200x200 option with maximum width and height. Is the large image kept in memory and only scaled or is a 200x200 image created and the large image deleted?

thank you very much for help.

maxisam commented 5 years ago

this library doesn't involve any image creation, so it will keep the original image in memory.