consumet / consumet.ts

Nodejs library that provides high-level APIs for obtaining information on various entertainment media such as books, movies, comic books, anime, manga, and so on.
https://consumet.org/extensions/list/
GNU General Public License v3.0
393 stars 222 forks source link

Fixed getHashFromImage method for generating blurhash #437

Closed tanwarjigyasu closed 9 months ago

tanwarjigyasu commented 9 months ago

What kind of change does this PR introduce?

I fixed the getHashFromImage method for generating blurhash. I had to add a npm package

Did you add tests for your changes?

No

If relevant, did you update the documentation? No

Summary

The previous method only works when there is a DOM tree present in the code so it wouldn't in cases like node (I didn't know node don't have DOM tree as I don't really use it much) and cli based app but when I realised about this, #435 was already merged