PHP Web Page Thumbnail Generator: Generate thumbnail images of pages with Thumbalizr

Recommend this page to a friend!
  Info   View files (5)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 1,099 All time: 3,376 This week: 364
Version License PHP version Categories
web-page-thumbnail 1.0BSD License5.0PHP 5, Graphics, Web services
Description Author

This class can generate thumbnail image of Web pages using the Thumbalizr API.

It can send a HTTP request to the Thumbalizr API Web server to retrieve a thumbnail image of a Web page of a given URL.

The class can store the retrieved thumbnail image in a cache file to avoid the overhead of requesting the same Web page thumbnail multiple times.

It returns the path of the cached thumbnail image file.

Picture of Yasir Siddiqui
  Performance   Level  
Name: Yasir Siddiqui is available for providing paid consulting. Contact Yasir Siddiqui .
Classes: 14 packages by
Country: Pakistan Pakistan
Age: 36
All time rank: 3293 in Pakistan Pakistan
Week rank: 81 3 in Pakistan Pakistan
Innovation award
Innovation award
Nominee: 8x

Winner: 1x

Get Image Preview Of Any Web Page

This sample project demonstrates how you get image preview of any web page using thumbalizr api in PHP. It also supports
caching images once geenrated. Cache and thumnail parametrs can be configured in config.php

Follow the following instruction

1) Create account at

2) After login get API Key and replace the value in config.php

Use the following code to get thumbnail of any web page


include_once ("Webpagepthumbnail.class.php");

$obj = new Webpagethumbnail();

$imagepath = $obj->getThumbnail("");

echo $imagepath;


File Role Description
config.php Conf. Configuration script
example.php Example Example script
Instructions.txt Doc. Documentation Doc. Documentation
Webpagepthumbnail.class.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:3,376
This week:364

For more information send a message to info at phpclasses dot org.