Bug#775859: RFP: pageres -- Capture screenshots of websites in various resolutions on the command-line
Tryint to package anything related to PhantomJS is both courageous
and honourable! And probably futile. If you don't fear the Python,
try python{,3}-ghost:
import ghost
g = ghost.Ghost()
g.open("http://www.debian.org/")
g.capture_to("debian.png")
If you prefer searchable PDF output and the shell, try wkhtmltopdf:
$ wkhtmltopdf --page-width 200mm http://www.debian.org debian.pdf
wkhtmltopdf is in squeeze, wheezy, jessie, and sid.
python{,3}-ghost is only available in sid.
AFAIK, neither tool does cropping, but you can do this with
"convert -trim" for PNGs or "pdfcrop" for PDFs.
Reply to: