Skip to content

Conversation

@yurivangeffen
Copy link

I noticed SVG images were not working (showing a broken image icon) in the album cover images:
Screenshot 2026-01-24 at 17 08 55

Created a simple toImageDataUrl function that takes base64 data and an extension, and returns correctly MIME'd url data:
Screenshot 2026-01-24 at 17 08 07

Most extensions will stay the same, except for;

  • svg → image/svg+xml
  • jpg → image/jpeg

Note; I haven't tested JPEG, since I don't have any streams that return a JPEG images. But image/jpeg is the official MIME type of JPEG images.
Note 2; not sure why my Spotify stream always returns the logo instead of album cover, but that's probably an issue in the stream.

Tested by human.

Idrimi and others added 2 commits October 27, 2025 08:27
…a-dsp-websocket-test

Feature/camilla dsp websocket test
Extract image data URL conversion to shared utility to avoid duplication.
File extensions don't always match MIME types. Added a mapping for:
- svg → image/svg+xml
- jpg → image/jpeg
@Idrimi
Copy link
Contributor

Idrimi commented Jan 26, 2026

will test the jpg variation. 👍

@Idrimi Idrimi force-pushed the master branch 2 times, most recently from 4e63329 to e81f427 Compare January 27, 2026 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants