node-webshot icon indicating copy to clipboard operation
node-webshot copied to clipboard

Black Screen

Open tabam1 opened this issue 5 years ago • 2 comments

Why when taking many pictures, some of them are black screen

tabam1 avatar May 05 '20 10:05 tabam1

I am facing same issue.

amandesai01 avatar Jun 09 '20 15:06 amandesai01

var convert = (staticHtmlCode, userToken, cb) => {
    mkdirp(userToken)
    filename = fileNameGenerator()
    webshot(staticHtmlCode, userToken + "/" + filename + ".jpeg", {siteType:'html'}, (error) => {
        if(error) cb(undefined, error)
        else cb(filename, undefined)
    })
}

amandesai01 avatar Jun 09 '20 15:06 amandesai01