Commit c1b96302 authored by Nicolas Widart's avatar Nicolas Widart

Adding greyscale implementation

parent fa18aca2
...@@ -28,8 +28,9 @@ return [ ...@@ -28,8 +28,9 @@ return [
// 'flip' => [ // 'flip' => [
// 'mode' => 'h' // 'mode' => 'h'
// ], // ],
'gamma' => [ // 'gamma' => [
'correction' => '1.8' // 'correction' => '1.8'
], // ],
'greyscale' => [],
] ]
]; ];
<?php namespace Modules\Media\Image\Intervention\Manipulations;
use Modules\Media\Image\ImageHandlerInterface;
class Greyscale implements ImageHandlerInterface
{
/**
* Handle the image manipulation request
* @param \Intervention\Image\Image $image
* @param array $options
* @return \Intervention\Image\Image
*/
public function handle($image, $options)
{
return $image->greyscale();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment