Technology Blog »
March 11, 2009
Websnapr Field is a little module I’ve written which uses the Websnapr service to generate web page thumbnails in a page. If you have a field which is a URL pointing to an external site, you can choose to display it as a snapshot of the page pointed to.
So instead of http://figure-w.co.uk/ your visitors might see this: 
There’s an existing module which gives you snap previews, but my client wanted a regular image to be generated rather than one that appears only when you mouse over the URL.
It’s a work in progress rather than a finished item: it currently only provides the two small sizes of image which are generated by Websnapr’s free service, and its HTML output is perhaps a little limited, though theming overrides could be used to improve it in that respect. It’s not been tested as yet with Views. For now, it’s Drupal 6 only, though a backport to Drupal 5 would not be hard.
The module is very small: all the real work of validating and managing URLs is done by the Link module, while Websnapr Field simply provides a set of formatters (currently just two, one for each of the two image sizes) by which URLs can be displayed. You first create a URL field and choose the Link field type, then configure it to use Websnapr for display. For screenshots to work, you also have to enter your Websnapr key (as provided by Websnapr after registration) in a separate administration panel.
Update: the Websnapr field module is now on Drupal.org.