Transform Image URL to Base64

I’am trying to integrate my sonos devices using sonos2mqtt. I setup a channel to retrieve the image URL of the album art but since the image item needs base64 data of the image I wonder if there is a simple way to download and encode the image with a javascript transformation?

Regards,

Martin

You could just ask on github to always publish the latest image to a specific topic on mqtt?

I would probably be able to do just that. That would be a reasonable request probably implemented in a few hours.

Stephan (author of sonos2mqtt)