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!

Tags: , , ,

One Response to “Retrieving and Embedding Web Site Thumbnails”

  1. Mike J Says:
    June 2nd, 2008 at 4:00 pm

    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

My Web Host

Twizeets!

Posting tweet...

Powered by Twitter Tools

Subscribe

  • Subscribe via Feed Burner
  • Subscribe in Yahoo
  • Add to Google
  • Add to My AOL

Community

Already a member?
Login
Login using Facebook:
Last visitors
Powered by Sociable!

My Travels


About Me

I am an eco geek.

My interests include mentoring ecopreneurs, technology coaching, programming, web hosting, and sustainable marketing.

I am available for hire for your website design/build projects including WordPress and Ruby on Rails web applications.

I also write on my company's green web hosting blog.

Chat with me


click-to-call from the web

Google Friend Connect

Flickr


By Erik Rasmussen

My Music