Файл public_html/engine/classes/composer/vendor/intervention/image/src/Intervention/Image/Gd/Commands/GreyscaleCommand.php Вес запакованого файла 246b (246 b) Вес распакованого файла: 428b (428 b) Метод сжатия: 8
<?php
namespace Intervention\Image\Gd\Commands;
use Intervention\Image\Commands\AbstractCommand;
class GreyscaleCommand extends AbstractCommand
{
/**
* Turns an image into a greyscale version
*
* @param \Intervention\Image\Image $image
* @return boolean
*/
public function execute($image)
{
return imagefilter($image->getCore(), IMG_FILTER_GRAYSCALE);
}
}