File "InvertCommand.php"
Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/vendor/intervention/image/src/Intervention/Image/Gd/Commands/InvertCommand.php
File size: 390 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Intervention\Image\Gd\Commands;
use Intervention\Image\Commands\AbstractCommand;
class InvertCommand extends AbstractCommand
{
/**
* Inverts colors of an image
*
* @param \Intervention\Image\Image $image
* @return boolean
*/
public function execute($image)
{
return imagefilter($image->getCore(), IMG_FILTER_NEGATE);
}
}