Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Set a custom image via JavaScript as a base64 string #55

Open
lexum0 opened this issue Feb 11, 2024 · 2 comments
Open

Request: Set a custom image via JavaScript as a base64 string #55

lexum0 opened this issue Feb 11, 2024 · 2 comments

Comments

@lexum0
Copy link

lexum0 commented Feb 11, 2024

Adding a function to set a custom image via JavaScript with a base64 image string would make it very easy to customize with a local image by just calling a function like setBase64Image(string) with the image formatted as "data:image/jpeg;base64," + data.base64EncodedString() which is set in image.src

I'm currently using this method to customize jQuery WebGL Ripples in a macOS app (Backgrounds) to use it as a wallpaper. With this function it's very easy to use the user's wallpaper or any local file

@Rezmason
Copy link
Owner

You're right, this is low hanging fruit. 🍐

This month I'm diving back into this project (in my free time) after completing a circuit of other projects, and I'll start with this feature request

@lexum0
Copy link
Author

lexum0 commented Feb 11, 2024

Awesome! Thank you!

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

No branches or pull requests

2 participants