Skip to main content

Creating Website Thumbnails

Submitted by daniel on

I am in the process of migrating a Xoops site to Drupal and wanted to migrate the 'Web Links' module feature to my new Drupal based links directory.

One option that adds a field formatter for the link type field type is the pagepeeker module that integrates nicely with the link module. However for my purpose I wanted to avoid any additional costs or compromising my sites identity etc.

Welcome to mozshot.

http://mozshot.nemui.org/

https://github.com/sugi/mozshot

mozshot is an open source server side  ruby script with a CGI interface that allows you to capture a screen shot of your website / link etc and also format it as an image. e.g.

<a href="http://www.danlobo.co.uk/">
<img alt="" width="128" height="128" border="0"
    src="http://mozshot.nemui.org/shot?http://www.danlobo.co.uk/">
</a>

Best of all you can use mozshot for free on your website today with the minimal of code.

For example if you need a larger screenshot:

 - Get 800x600 image:
   http://mozshot.nemui.org/shot/800x600?http://www.danlobo.co.uk/

 

Add new comment

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.