https://github.com/robotsandpencils/puppeteer-img
Command link tool to make webpage screenshot images using puppeteer
https://github.com/robotsandpencils/puppeteer-img
Last synced: 4 months ago
JSON representation
Command link tool to make webpage screenshot images using puppeteer
- Host: GitHub
- URL: https://github.com/robotsandpencils/puppeteer-img
- Owner: RobotsAndPencils
- License: mit
- Created: 2019-09-06T17:29:24.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-05T10:39:13.000Z (about 4 years ago)
- Last Synced: 2025-01-18T04:14:05.701Z (6 months ago)
- Language: JavaScript
- Size: 18.6 KB
- Stars: 1
- Watchers: 10
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Puppeteer Image CLI
Generate browser screenshots from the command line using Puppeteer.
## How to Use
```
puppeteer-img http://www.example.com --path example.jpeg --type jpeg
```## Options
```
puppeteer-img --help
Usage: puppeteer-img [options]Options:
-V, --version output the version number
-t, --type [type] The file type to generate. Options are jpeg or png. Defaults to png.
-p, --path [path] The file path to save the image to.
-w, --width [width] The width of the browser viewport. Default is 800
-h, --height [height] The height of the browser viewport. Default is 600
-s, --scale-factor [scale-factor] Sets the device pixel scale factor when setting the viewport. Defaults to 1.
-x, --x [x] X coordinate for capturing a clip of the browser window
-y, --y [y] Y coordinate for capturing a clip of the browser window
--clip-width [clip-width] Width of image when capturing a clip of the browser window
--clip-height [clip-height] Height of image when capturing a clip of the browser window
-h, --help output usage information
```