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

How can we add logo(image) with file upload instead of supplying url #213

Open
samerlol opened this issue Aug 4, 2024 · 1 comment
Open

Comments

@samerlol
Copy link

samerlol commented Aug 4, 2024

I want to add image to the QR without sending URL, like use buffer or base64

@mrfrase3
Copy link
Contributor

mrfrase3 commented Aug 9, 2024

You can use the browser's native functionality here: file.createObjectURL()

https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL_static

or specify the prefix to the base64:

url = `data:image/jpeg;base64,${buffer.toString('base64')}`

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