Closed grumpysi closed 5 years ago
Hmm, using base64 data was added in f5910a0ba645a7249e66e9f9e6c7ee82e5d27914, because screenshots weren't working on the Mac...
Is it possible for you to share a repo that reproduces the encoding error?
You should have access now.
Adding let html = encodeURIComponent(fs.readFileSync(path.join(process.cwd(), args.file), 'utf8')); Solved the issue with Chromium and the white screen. But loading from file made life easier with relative image paths for testing.
All done. No problem. Great tool by the way. Thanks for sharing.
Thank you!
This enables relative URLs for testing and also solves some encodeURI issues. Screenshots were just blank white pages because of encoding issues.