1.4.0 • Published 3 years ago
@helvio/web-screenshot v1.4.0
web-screenshot
A tool to take screenshots of websites headlessly.
Installation
npm install -g @helvio/web-screenshot --unsafe-perm--unsafe-perm is necessary to install puppeteer on your computer.
Usage
$ web-screenshot --help
Usage: screenshot [options]
Options:
-V, --version output the version number
-u, --url <url> URL (website) to screenshot
-t, --time [s] Number of seconds to wait for page to load (default: 3)
-x, --x [x] Leftmost Pixel (default: 0)
-y, --y [y] Top Pixel (default: 0)
-w, --width [width] Width (default: 1920)
-h, --height [height] Height (default: 1080)
-o, --out [out] Absolute or Relative Path to save the screenshot
-c, --crop Auto crop same-color borders
-d, --debug Prints debug messages
-a, --auth [auth] NTLM Credentials in username:password format
--help display help for commandTips
- You can call web-screenshot with the URL only, such as
web-screenshot -u github.com. - The program will append
http://to your URL and save the output file asgithub.com.png. - If
widthorheightare0, a Full Page screenshot is taken. - The base viewport is
1920x1080. - After the ScreenShot is taken, the borders can be cropped using
--crop. Powered by Jimp. - You can screenshot just a rectangle (or clip) of a webpage by providing
x,y,wandh, such as
web-screenshot -u https://google.com -x 700 -y 190 -w 700 -h 180 -o google_logo.png --cropCoordinates are approximate and you can either use a tool to measure the pixels or trial and error.
The command outputs the image:
google_logo.png

Happy Screenshotting!
1.9.0
2 years ago
1.9.2
2 years ago
1.8.0
3 years ago
1.7.3
3 years ago
1.7.2
3 years ago
1.7.1
3 years ago
1.5.3
3 years ago
1.3.5
3 years ago
1.7.0
3 years ago
1.3.4
3 years ago
1.6.0
3 years ago
1.4.0
3 years ago
1.3.1
3 years ago
1.2.5
5 years ago
1.2.4
7 years ago
1.2.3
7 years ago
1.2.2
7 years ago
1.2.1
7 years ago
1.2.0
7 years ago
1.1.10
7 years ago
1.1.9
7 years ago
1.1.8
7 years ago
1.1.7
7 years ago
1.0.6
7 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago