dmamills / composite
wrapper for imagemagick composite command
dev-master
2014-05-05 00:41 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- phpunit/phpunit: 4.1.*
This package is not auto-updated.
Last update: 2025-06-17 10:20:23 UTC
README
A composer package that wraps the Composite command. Composite is part of the image editing software ImageMagick.
Usage
use Composite\Composite;
$composite = new Composite('base.png','overlay.png','result.png');
$composite->execute();
$resultFile = $composite.getResultFile();
$resultFile = $composite.getResultFile(true); //calls execute() before retrieving file
It also can take a fourth parameter to set command options
$composite = new Composite('base.png','overlay.png','result.png',array(
'gravity'=>'southeast',
'size'=>'512x512'
));
License
MIT