runjuu / page2image Goto Github PK
View Code? Open in Web Editor NEW📷 page2image is a npm package for taking screenshots which also provides CLI command
License: MIT License
📷 page2image is a npm package for taking screenshots which also provides CLI command
License: MIT License
Thank you for this package. Is it possible to specify the output location (folder on the computer) for the screenshots?
Apologies if Github issues is not the right choice for asking a support question. I see only a link to the Github issues page on your package site for questions.
我运行的 page2image https://www.baoquan.com
截取的图片不完整
我在Windows10上使用的
Puppeteer also provides capability to do screenshot for a specific element -- https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#elementhandlescreenshotoptions
Can page2image currently do that?
Hope it can someday. Thx.
Node.js: node -v
;
v8.4.0
npm: npm -v
5.3.0
Ubuntu 16.04
npm i page2image -g
/usr/local/node/bin/page2image -> /usr/local/node/lib/node_modules/page2image/buildBin/screenshot.js
> [email protected] install /usr/local/node/lib/node_modules/page2image/node_modules/puppeteer
> node install.js
fs.js:891
return binding.mkdir(pathModule._makeLong(path),
^
Error: EACCES: permission denied, mkdir '/usr/local/node/lib/node_modules/page2image/node_modules/puppeteer/.local-chromium'
at Object.fs.mkdirSync (fs.js:891:18)
at Object.downloadRevision (/usr/local/node/lib/node_modules/page2image/node_modules/puppeteer/utils/ChromiumDownloader.js:97:10)
at Object.<anonymous> (/usr/local/node/lib/node_modules/page2image/node_modules/puppeteer/install.js:33:12)
at Module._compile (module.js:573:30)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Function.Module.runMain (module.js:609:10)
at startup (bootstrap_node.js:158:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-09-04T07_45_50_282Z-debug.log
mkdir -p /usr/local/node/lib/node_modules/page2image/node_modules/puppeteer/.local-chromium
npm i page2image -g
#同样的错误
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.