Login   Register  
PHP Classes
elePHPant
Icontem

File: examples/capture_to_browser.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Lukasz Cepowski  >  WebThumbnail  >  examples/capture_to_browser.php  >  Download  
File: examples/capture_to_browser.php
Role: Example script
Content type: text/plain
Description: Example, how to capture a website screenshot and send the image to the browser.
Class: WebThumbnail
Capture a screenshot of a page using WebThumbnail
Author: By
Last change: webthumbnail 2.0
Date: 1 year ago
Size: 320 bytes
 

Contents

Class file image Download
<?php

error_reporting
(E_ALL);
ini_set('display_startup_errors'1);
ini_set('display_errors'1);
$root dirname(dirname(__FILE__));
require 
$root.'/webthumbnail.php';

$thumb = new Webthumbnail("http://webthumbnail.org");
$thumb
    
->setWidth(320)
    ->
setHeight(240)
    ->
setScreen(1280)
    ->
captureToOutput();