How to get a base64 string from an image?

Hi all, i’m following along with the bitcoin app tutorial and the guide glosses over how they took an image they created on pixilart and turned it into a base64 string.

I would like to be able to embed my own images into tidbyt apps. How do I take something I made on pixilart and turn it into a base64 string?

You can literally use any online convert of whatever form you have to it.

And then base64.decode in the .star file and what not.

Ah, I figured it out. I needed to make the width/height of the image in pixilart to be much smaller, and save it as a png instead of .pixil.

Thanks for the help, I wasn’t sure if using a random website was how the base64 string was normally retreived.

This topic was automatically closed after 365 days. New replies are no longer allowed.