Skip to content

Command link tool to make webpage screenshot images using puppeteer

License

Notifications You must be signed in to change notification settings

RobotsAndPencils/puppeteer-img

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Command link tool to make webpage screenshot images using puppeteer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published