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

Размер файла: 407B
  1. <?php
  2.  
  3. namespace Intervention\Image\Imagick\Commands;
  4.  
  5. use Intervention\Image\Commands\AbstractCommand;
  6.  
  7. class GreyscaleCommand extends AbstractCommand
  8. {
  9. /**
  10. * Turns an image into a greyscale version
  11. *
  12. * @param \Intervention\Image\Image $image
  13. * @return boolean
  14. */
  15. public function execute($image)
  16. {
  17. return $image->getCore()->modulateImage(100, 0, 100);
  18. }
  19. }