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

Is it possible to use this to combine 2 base64 images? #92

Open
dkChase opened this issue May 15, 2020 · 4 comments
Open

Is it possible to use this to combine 2 base64 images? #92

dkChase opened this issue May 15, 2020 · 4 comments

Comments

@dkChase
Copy link

dkChase commented May 15, 2020

I have 2 images in base64 and I would like to combine them using this script. However when I do I get an error Error: Couldn't load image.

@damiangreen
Copy link

@dkChase did you solve this?

@dkChase
Copy link
Author

dkChase commented Jun 16, 2020 via email

@damiangreen
Copy link

thanks for your swift response.. the code itself seems rather small so i'm wondering what the problem might be.. it seems to work with url images

@damiangreen
Copy link

damiangreen commented Jul 10, 2020

Update. I managed to get it work.. the trick is to ensure it has the following format:(begins with data:image/png;base64,)

export const onlineRing =
  'data:image/png;base64,iVBORw0KGgoAAA....

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