Просмотр файла vendor/intervention/image/src/Intervention/Image/Gd/Commands/GreyscaleCommand.php

Размер файла: 388B
<?php

namespace Intervention\Image\Gd\Commands;

class GreyscaleCommand extends \Intervention\Image\Commands\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);
    }
}