View file vendor/intervention/image/src/Intervention/Image/Imagick/Commands/GreyscaleCommand.php

File size: 386B
<?php

namespace Intervention\Image\Imagick\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 $image->getCore()->modulateImage(100, 0, 100);
    }
}