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

Enhancement: Blurhash Support #429

Closed tanwarjigyasu closed 9 months ago

tanwarjigyasu commented 9 months ago

Hey there consumet devs, I wanted to say that it would be pretty good if you guys could add blurhash support for images in consumet.

It generates a short string that could be used to display blur image until the actual image is loaded thus improves user experience unlike normal loaders or shimmer effects.

So it would be great if you guys could add an extra value named hash in the data returned. It could be done with the help of blurhash npm package. Just make a canvas to get image data and provide it to encode method of npm package.

I originally thought of doing it in my code but it is preferred to be done in backend as doing it client side again takes time for the image to load which makes the overall meaning of it useless.