Retrieving and Embedding Web Site Thumbnails

The Picoshot service allows you to embed a thumbnail image of another website in your page with a simple <img> tag. And, I was also able to use curl on the command line to create a file.

A little HTML is all you need to know. There are currently 2 ways to retrieve a thumbnail:

  • <img src="http://image.picoshot.com/thumbnail.php?url=http://www.example.com">
  • <img src="http://image.picoshot.com/thumbnail.php?domain=example.com">

Just replace example.com with the domain you wish to get the thumbshot for. It’s that simple to get a thumbnail for free. Currently only domain and sub domain front pages are available, with internal pages a coming feature.

For the command line, you must have curl installed, and then use something like this:

curl -o sw-thumb.jpg http://image.picoshot.com/thumbnail.php?domain=sustainablewebsites.com

Notice the -o switch is lowercase, you might be used to using the -O uppercase version to automatically name the file. Sometimes it takes a couple of tries with curl if the thumbnail has not been generated already for the site. If you figure out how to do this in JavaScript, Ruby, or PHP please let us know in the comments!

This entry was posted in Web Design and tagged , , , . Bookmark the permalink.

One Response to Retrieving and Embedding Web Site Thumbnails

  1. Mike J says:

    Picoshot has been down the last two days :( and its not the first time this has happened. I am going to give websnapr and snapcasa a try.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>