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

get image base64 from nodejs #9

Open
joneldiablo opened this issue Jan 28, 2022 · 2 comments
Open

get image base64 from nodejs #9

joneldiablo opened this issue Jan 28, 2022 · 2 comments

Comments

@joneldiablo
Copy link

How could we get the final base64 or buffer instead save the file?

@69hunter
Copy link

You should be able to get the base64 with the following example:

const f = await filterous
            .importImage(buffer)
            .applyInstaFilter(filterName, options)
const base64 = f.canvas.toDataURL()

@amydinsyahira
Copy link

Use .save(); //without filename in PR #10

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

3 participants