Archive

Posts Tagged ‘thumbnail’

screenshot.py

July 26, 2015 Leave a comment

I made a simple wrapper script called screenshot.py that calls phantomjs and convert to do the real job. The advantage of screenshot.py is its very simple usage.

Usage

screenshot.py -full http://reddit.com full.jpg

Screenshot of the entire page (can be very high).

screenshot.py -window http://reddit.com window.jpg

Screenshot of the area that you see in the browser.

screenshot.py -thumb http://reddit.com thumb.jpg

Thumbnail of the area that you see in the browser.

Links

Design a site like this with WordPress.com
Get started