CutyCapt runner class.
PHP Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
deps
src
tests
README.md
package.ini
package.xml
vendor.sh

README.md

CutyCaptRunner

This is a wrapper class for cutycapt tool (http://cutycapt.sourceforge.net/)

To use this, you must build cutycapt with qt4 and qt4-devel, qt4-webkit.

<?php
    $runner = new CutyCaptRunner('path/to/CutyCapt');

    $runner->minHeight = 300;
    $runner->minWidth = 300;

    $runner->capture( 'http://google.com' , 'google.png' );

Run Tests

CUTY_BIN=/Users/c9s/src/webpage-screenshot/CutyCapt/CutyCapt.app/Contents/MacOS/CutyCapt phpunit tests/CutyCaptRunnerTest.php