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

Usage in Node and a way to pass in a Buffer / a Base64 string of image data #113

Open
TomasHubelbauer opened this issue Dec 8, 2019 · 1 comment

Comments

@TomasHubelbauer
Copy link

Hi, first off, excuse my ignorance, but it looks like this library is aimed at the browser only? Is it possible to use it from Node? When I tried with the latest version, I got a not-a-constructor error. Perhaps I need to use a different way to require the module and the constructor is not the default export?

If this library is usable from Node, I'd like to follow up by inquiring about the possibility of passing a Buffer of image data or a Base64 string of image data to addFrame. Is this something you plan on supporting?

@cuixiping
Copy link

You can convert your Buffer / Base64 to an ImageData object.

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