Skip to content
A simple command line program that uses webkit to render a preview image from a web page. A live demo that has been wrapped with a web interface can be found here: http://previewtool.raphaelcruzeiro.com/
C++ Prolog
Failed to load latest commit information.
.gitignore Initial commit Mar 29, 2012
LICENSE
README.md Improved README Jun 2, 2012
customwebpage.cpp
customwebpage.h Added user ar agent string May 6, 2012
main.cpp
snapshot.cpp Exceding max size bug Jul 4, 2012
snapshot.h
webimage.pro Fixed errors on he javascript interpretation May 3, 2012

README.md

Live demo

http://previewtool.raphaelcruzeiro.com

Setup Instructions

http://news.ycombinator.com/item?id=4034671

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

Webimage will generate the file on the appropriate format for the output file name. Current supported formats are: jpg and pdf.

Note: xvfb is only necessary for running webimage on a headless server (i.e. a server without a GUI or even a graphics card)

Something went wrong with that request. Please try again.