https://github.com/yaph/webshots
A tool to take Web page screenshots with common browser screen resolutions and save them as PNG files.
https://github.com/yaph/webshots
Last synced: 9 months ago
JSON representation
A tool to take Web page screenshots with common browser screen resolutions and save them as PNG files.
- Host: GitHub
- URL: https://github.com/yaph/webshots
- Owner: yaph
- License: mit
- Created: 2012-09-12T14:08:48.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2017-04-24T15:46:03.000Z (about 9 years ago)
- Last Synced: 2025-04-04T07:04:11.288Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://geeksta.net/geeklog/web-page-screenshots-phantomjs-python/
- Size: 113 KB
- Stars: 67
- Watchers: 7
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webshots - take Web page screenshots
A utility for taking Web page screenshots with common browser resolutions and
saving them as PNG files using [PhantomJS](http://phantomjs.org). Read more
in this brief [introduction to webshots](http://geeksta.net/geeklog/web-page-screenshots-phantomjs-python/).
## Installation
git clone https://github.com/yaph/webshots.git
ln -s /path/to/webshots/webshots $HOME/bin
ln -s /path/to/webshots/webshots.js $HOME/bin
## Usage
Create several screenshots at common browser resolutions:
webshots http://example.com
Create one screenshot at given browser resolution:
webshots --width=300 --height=200 http://example.com
## Hints
* When pages have the body element background set to transparent it is set to
white to reflect how browsers render it.
## About
Written by [Ramiro Gómez](http://ramiro.org/), licensed under the
[MIT License](http://rg.mit-license.org/).