News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Hasin Hayder's Blog:
Creating Thumbnail of WebPages using WebThumb API
September 06, 2006 @ 06:15:15

From Hasin Hayder's blog, there's a new tutorial demonstrating how to use the newly released WebThumb API from Joshua Eichorn to create thumbnails of websites dynamically.

Using WebThumb API, you can generate a thumbnail in three steps. First you have to place a request containing the URL. As soon as your request is successful, WebThumb store your request in queue. That means you are not getting the thumbnail instantly (well, there are other factors also. to fetch an url requires time, so it is not possible to generate the thumbnail in real time).

In second step you have to check whether your thumbnail has been generated or it is still in the queue. If you get a green signal, you will proceed to the third step where you have to request a download URL of your thumbnails.

He shows how to make a request to the API, check how your request is doing (status), and grabbing the thumbnail it's generated. Then, it's on to the code, and a complete PHP script (using cURL) to make the complete request to the API, including waiting for the image to be finished to grab it.

0 comments voice your opinion now!
webthumb api thumbnail webpage dynamic curl tutorial webthumb api thumbnail webpage dynamic curl tutorial


blog comments powered by Disqus

Similar Posts

phpDevelopment Blog: Zend Framework Tutorial Series: Part 3 – Login and Signup with (RE)Captcha

PHPit.net: Taking a first look at the AutoCRUD for PHP library

PHPBuilder.com: Using XML, Part 5 - SOAP and WSDL

PradoSoft.com: PRADO/Wordpress/BBPress integration v1.0...

Elijaa.org: Using cas() command from PECL Memcached


Community Events





Don't see your event here?
Let us know!


release application developer interview bugfix laravel threedevsandamaybe project list introduction series api library framework configure community wordpress code podcast language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework