News Feed
Sections




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

Pierre-Alain Joye's Blog:
Screen capture with PHP and GD
April 18, 2007 @ 07:53:00

In a new blog post today, Pierre-Alain Joye shows a method for doing a screen capture with just PHP and the GD functionality (an updated library, a DLL).

To get a snapshot of a HTML page, a window or a complete screen was always something tricky to do in PHP. For one of my current projects, I had to check that our changes did not affect visually any page. An easy way to achieve this goal is to compare the rendered pages in the browsers itself, easy and time consuming (for a human being :D).

That's why I finally sit down and implemented imagegrabscreen and imagegrabwindow . They capture respectively the whole screen or a window (using its handle).

He includes a few examples including grabbing a default screenshot, grabbing just the contents of a certain application (like Internet Explorer), and grabbing a fullscreened IE window too.

2 comments voice your opinion now!
screen capture gd graphics imagegrabscreen imagegrabwindow screen capture gd graphics imagegrabscreen imagegrabwindow


blog comments powered by Disqus

Similar Posts

Wolfgang Drews\'s Blog: A Week in PHPWorld #1

PHPit.net: Image manipulation with PHP & the GD library (Part 1)

Ozh\'s Blog: PHP and GD - Emulate Gradient Fill

Ozh\'s Blog: PHP and GD - Emulate Gradient Fill

ASys DataService\'s Blog: Rounded corners using PHP and the GD library


Community Events





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


introduction library release developer community tips opinion laravel framework deployment zendserver bugfix podcast language list symfony series api threedevsandamaybe interview

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