Project ID:
517171
Project Type:
Fixed
Budget:
$30-$250 USD
Project Description:
We need a Class which creates png-thumbnails of public URLs (i.e. http://www.google.com/) or local HTML files. The renderer should NOT create any temporary files and should return raw png-data.
It should depend on ruby 1.8, RMagick 2 (and its dependencies) and the following debian/ubuntu-packages:
libqt4-ruby libqt4-webkit
There is a similar script in python we are using at the moment:
http://www.blogs.uni-osnabrueck.de/rotapken/2008/12/03/create-screenshots-of-a-web-page-using-python-and-qtwebkit/
Some ruby/webkit examples (unfortunately they depend on OSX):
http://pastie.org/68511
http://pastie.org/69235
The Thumbshooter-class should as follows:
generator = Thumbshooter.new(
:screen => '800x600',
:resize => '200x150', # if given resize with RMagick, otherwise do not resize
)
# render a public website
png = generator.generate('http://github.com/')
# render a local file
png = generator.generate('example.html')
Additional Project Description:
09/28/2009 at 14:27 EDT:
It should be possible do set a timeout for rendering a webpage. If the whole page can not be loaded, an exception should be thrown. If just parts (i.e. images) of the page can not be loaded, then just the partially rendered page should be returned.
09/28/2009 at 14:34 EDT:
Another small example in ruby:
http://rubyforge.org/forum/forum.php?thread_id=43766&forum_id=723
Skills required:
Ruby & Ruby on Rails