0.1.0 • Published 7 years ago

ah-screenshotter v0.1.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
7 years ago

Anthill Screenshotter

Capture screenshots of URLs or local web pages.

Screenshots are captured in batches for optimal performance.

Installation

npm install ah-screenshotter --save

Usage

var screenshotter = require('ah-screenshotter');

screenshotter(urls, config, options, next);

URLs

URLs is an array of URLs or local paths that should be screenshotted.

Example:

["https://github.com", "slides/home/index.html"]

Config

  • resolutions ARRAY - e.g. '1024x768', '768x1024'
  • dest STRING - Path to where the images will be created
  • batchSize Int - Number of URL per batch. 10

Note that dest should be relative from the default location.

E.g. this is default:

A dest of "thumbs" would result in:

Options

The module is a wrapper around Pageres and the settings will be passed to the Pageres constructor.

See the official docs for all settings. Here are a few important ones:

  • delay INT - Delay in seconds before capture
  • crop BOOL - If image should be cropped to resolution
  • filename STRING - What to name the images
0.1.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago