Thumbshooter
Generates thumbshots of URLs by using Webkit and QT4.
Requirements
Please ensure python-qt4 and qt4-webkit is installed.
apt-get install libqt4-ruby libqt4-webkit
You do also need a running x server. You can use a lightweight x server by doing "apt-get install xvfb" and enabling it:
Thumbshooter.use_xvfb = true
Example
shooter = Thumbshooter.new(
:screen => '800x600',
:resize => '200x150'
)
# generate thumbnail
img = shooter.create('http://github.com/')
# write thumbnail to file
File.open('thumbshot.png', 'w') {|f| f.write(img) }
Copyright (c) 2009 Julian Kornberger | Digineo GmbH Germany released under the GNU license