chenzhutian / hexo-all-minifier

A plugin for Hexo that optimizes HTML, CSS, JS and imagages, and it can optionally deploys your blog.
MIT License
275 stars 30 forks source link

Excellent repo, but too slow to compressing many images #106

Closed anthonyweidai closed 8 months ago

anthonyweidai commented 3 years ago

I am using your repo for hexo + githubpage. Your repo is very cool since it helps us open website pages faster. However, the big problem is that it compresses every image in every hexo g. When I have considerable number of images, it would be a disaster (too slow). Hope you can enhance it by ignoring those images had been compressed before in each hexo g.

chenzhutian commented 3 years ago

Good suggestion. I guess the only way to do this is to cache which pictures had been compressed. But this wont be easy since the program never know how long the cache should be renewed. Another way is to exclude some images by using a glob. I will see what I can do.

PR/suggestions are welcome.

anthonyweidai commented 3 years ago

Thanks for your answer.