epoupon / lms

Lightweight Music Server. Access your self-hosted music using a web interface.
http://lms-demo.poupon.dev
GNU General Public License v3.0
1.08k stars 59 forks source link

Support for webp as cover image format #447

Open Jakobohrnell opened 4 months ago

Jakobohrnell commented 4 months ago

Hello! I use webp for my cover images but it seems lms does not support this? When it tries to load one I get [flac @ 0x7a9b5ab43040] Unknown attached picture mimetype: image/webp.

Would this be possible to add? :)

epoupon commented 4 months ago

Hello! Will tell you :)

epoupon commented 4 months ago

Can you please send me a sample file @ tmp49-tmp49@yahoo.com ? It will save me some time

Jakobohrnell commented 4 months ago

Sure thing :) I've sent an email, though I did get a warning the file might be too big.

epoupon commented 4 months ago

Arf I did not receive it :(

epoupon commented 3 months ago

Ok, managed to find one. Stb does not seem to support webp. This would require either to switch back to GraphicsMagick++ or to use libwebp + stb to properly decode/resize images. Will make some tests