radiobrowser-api-rust
radiobrowser-api-rust copied to clipboard
Provide blurhash string for favicon
Hey, I'm currently rewriting my Radio app for Nextcloud which is using your great API. I noticed that favicons have different loading times in the station list. It depends on their size and sever speeds on the other side. Would it be possible to return a short blurhash string in the json api response of the favicon? Maybe behind an optional request parameter. You might already know https://blurha.sh . This is how it would look like for a favicon:
Note the wrong image aspect ratio in the example above. It might look even better ;) Blurhash images would look great as a placeholder before the actual image is loaded!
Best regards Jonas
i understand that this would add the dependency to an external service.
It is possible to calculate the hashes in rust, see https://github.com/Raincal/blurhash-rs