filterous-2 icon indicating copy to clipboard operation
filterous-2 copied to clipboard

get image base64 from nodejs

Open joneldiablo opened this issue 3 years ago • 2 comments

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

joneldiablo avatar Jan 28 '22 01:01 joneldiablo

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()

69hunter avatar Jun 16 '22 18:06 69hunter

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

amydinsyahira avatar Nov 21 '22 16:11 amydinsyahira