Show HN: An open source website preview generator tool using webkit (live demo)
previewtool.raphaelcruzeiro.com
previewtool.raphaelcruzeiro.com
To save others time, with his help, this got me working so I could start playing with this.
git clone https://github.com/raphaelcruzeiro/webimage.git
sudo aptitude install -y xvfb
sudo aptitude install -y libqtwebkit-dev
cd webimage
qmake webimage.pro
make all Makefile
xvfb-run --server-args="-screen 0, 1024x768x24" ./webimage http://news.ycombinator.com/ output.jpg 1024
I'm now up and running, taking screen shots. Thanks Raphael.I'm not saying that the way I handle the rendering is any better than wkhtmltoimage's so feel free to use both and choose which you find it's better.
Also, run "make world" for Xorg some time and let me know if you still consider Xvfb lightweight. There's a reason the target is called "world" :)
And I will again point to you that lightweight is relative, if you know a better way to fake an X Server without xvfb just let me know and I'll use it on my tool.