node-html-to-image
node-html-to-image copied to clipboard
A Node.js module that generates images from HTML
Is there any limit in the package? Or does this depend on my hardware?
Looks like the new version of puppeteer is throwing an Error: Unable to get browser page with Node-Html-To-Image version 4.0.0  I fixed this issue by downloading [email protected] again
My code for generating image looks like ``` async generateImage(html: string) { return nodeHtmlToImage({ html: html.toString(), puppeteerArgs: { args: ['--no-sandbox', '--disable-setuid-sandbox'], executablePath: '/usr/bin/google-chrome', }, timeout: 50000 }); } ``` it...
 How would I fix this issue with v4.0.0 using Puppeteer v21.7.0?
Add the ability to log the logs of the page before rendering it. ```js page.on('pageerror', ({ message }) =>{ if(logger){ logger.error(`page | ${message}`) }else{ console.error(`page | ${message}`) } }) .on('response',...
Hello, I'm trying to declare a custom Handlebar Helper, but cannot find a way to use it in the nodeHtmlToImage() method, as the property does not exists in the Options...