[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 à 22:38 +0100, Axel Beckert a écrit :
> Hi Jérémy,
> 
> Jérémy Lal wrote:
> > just to say to node-webkitgtk [0] can take screenshots using system
> > libwebkit2gtk4 - way nicer than using phantomjs, packaging-wise.
> 
> I have no idea of what is considered nice or not so nice in node.js
> packaging. :-)

https://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&src=phantomjs

and it's not easy to fix.

> > It's as simple as
> > 
> > #!/usr/bin/nodejs
> > 
> > require('webkitgtk')()
> >  .load('http://www.debian.org', {width: 2000, height:1000})
> >  .wait('idle')
> >  .png('debianorg2000x1000.png');
> 
> That sounds indeed simple.
> 
> > 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.
> 
> Yeah, usable examples (as in /usr/bin/$example and not
> /usr/share/doc/$pkg/examples/$example.gz) with such features would be
> neat! Please also mention them in the long package description if
> they're included in the main package.

i'll do that.

Jérémy.


Reply to: