node-image-from-html
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "node-image-from-html", | ||
"version": "1.0.1", | ||
"main": "index.js", | ||
"version": "1.0.2", | ||
"main": "src/index.js", | ||
"author": "A Furry Account - Furry", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -23,3 +23,3 @@ # node-image-from-html | ||
// Regardless of the position or the padding around the element, the screenshot will always be of the div in question. In this case, "#entry". | ||
let base64 = await Handler.render(`<div id="entry" style="width:100px;height:100px;padding:300px;background-color:blue"></div>`, "#entry") | ||
let base64 = await Handler.renderID(`<div id="entry" style="width:100px;height:100px;padding:300px;background-color:blue"></div>`, "entry") | ||
@@ -26,0 +26,0 @@ fs.writeFileSync("myImage.png", base64, {encoding: "base64"}) |
14345