puppeteer-render-text
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -169,5 +169,7 @@ import fs from 'node:fs' | ||
const textHandle = await frame.$('.text') | ||
const isPng = output.toLowerCase().endsWith('png') | ||
await textHandle.screenshot({ | ||
path: output, | ||
omitBackground: true | ||
type: isPng ? 'png' : 'jpeg', | ||
omitBackground: opts.omitBackground ?? (isPng ? true : false) | ||
}) | ||
@@ -174,0 +176,0 @@ await textHandle.dispose() |
{ | ||
"name": "puppeteer-render-text", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Robust text renderer using headless chrome.", | ||
@@ -5,0 +5,0 @@ "repository": "transitive-bullshit/puppeteer-render-text", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37039
292