News Feed
Sections




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

Sameer Borate's Blog:
Taking screenshots of websites in PHP
June 16, 2011 @ 11:14:41

In a new post Sameer Borate shows you how to take screenshots of websites with PHP (and a little help from the wkhtmltoimage tool).

aking screenshos of websites is not a frequent requirement for developers but can come handy on many occasions. Although there are some nice solutions on the web, a particular one I found very good is wkhtmltoimage. wkhtmltoimage is a simple shell utility which can be used to convert html to images using the webkit rendering engine, and qt.

He includes some brief instructions of how to get the tool installed and how to run it (via the command line first) to grab a screenshot of the bbc.com site. To use it in PHP, he suggests either using it in a shell_exec type of function or by using the snappy wrapper that handles some of the interfacing with wkhtmltoimage for you.

0 comments voice your opinion now!
tutorial wkhtmltoimage library snappy screenshot website


blog comments powered by Disqus

Similar Posts

AnyExample.com: Downloading files from Amazon S3

Max Horvath's Blog: How to enable the Xdebug debugger in Zend Studio for Eclipse

Zend Developer Zone: Implementing a Stemming Analyzer for Zend_Search_Lucene

Smashing Magazine: Keeping Web Users Safe By Sanitizing Input Data

PHP-GTK Community Site: php-desktop


Community Events





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


threedevsandamaybe framework language deployment zendserver code bugfix interview community series api voicesoftheelephpant tips list podcast introduction conference release laravel symfony

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