Closed torrfura closed 5 years ago
Obviously seems like something is broken in later versions of puppeteer, might be a good call to lock down versions in package.json to prevent future issues like these.
npm uninstall puppeteer --save
npm install puppeteer@1.6.1 --save
hope this helps
Thanks for reporting the issue. The solution was to lock the dependencies.
I still have the same problem.
any solution?
any solution?
Just use sharp JS
const svgBuffer = Buffer.from(mySVG);
const image = await sharp(svgBuffer).toFormat("png").toBuffer();
const imageSource = data:image/png;base64,${image.toString("base64")}
;
Running a clean install, using your logo.svg and your code:
Result in: