Nanoseconds Produce Minutes

    puppeteer-img

    1.0.4 • Public • Published

    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
    

    Keywords

    none

    Install

    npm i puppeteer-img

    DownloadsWeekly Downloads

    5

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    5.43 kB

    Total Files

    4

    Last publish

    Collaborators

    • bradbrownrnp
    • markmadsen
    • bsidoruk
    • twirkman