[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#775859: RFP: pageres -- Capture screenshots of websites in various resolutions on the command-line



Le mardi 20 janvier 2015 à 20:25 +0100, Axel Beckert a écrit :
> Package: wnpp
> Severity: wishlist
> 
> * Package name    : pageres
>   Version         : 1.1.0
>   Upstream Author : Sindre Sorhus <sindresorhus@gmail.com>
> * URL or Web page : https://github.com/sindresorhus/pageres
> * License         : MIT
>   Programming Lang: JavaScript (PhantomJS)
>   Description     : Capture screenshots of websites in various resolutions on the command-line
> 
> Capture screenshots of websites in various resolutions. A good way to
> make sure your websites are responsive.
> 
> It's speedy and generates 100 screenshots from 10 different websites in
> just over a minute.
> 
> ----------------------------------------------------------------------
> 
> There are already three tools capable of web page screenshoting in
> Debian (gnome-web-photo/shutter, webkit-image-*), but all choose the
> resolution on their own. And none of them does it well[1]: Neither
> 1024x8 nor 195x11649 nor 1x8 are sane resolutions for a web page
> screenshot...
> 
>   [1] https://softwarerecs.stackexchange.com/questions/16422/no-gui-tool-to-take-screenshots-of-websites/16448#16448
> 
> pageres seems to fill in that gap quite well.


Hello !
just to say to node-webkitgtk [0] can take screenshots using system
libwebkit2gtk4 - way nicer than using phantomjs, packaging-wise.

It's as simple as

#!/usr/bin/nodejs

require('webkitgtk')()
 .load('http://www.debian.org', {width: 2000, height:1000})
 .wait('idle')
 .png('debianorg2000x1000.png');

bundling a simple script taking similar arguments would be a piece of
cake - with the added bonus to be able to output pdf as well.

Cheers,
Jérémy

[0]
https://bugs.debian.org/760687


Reply to: