Commit fac04c7f authored by Nicolas Widart's avatar Nicolas Widart

Adding blur implementation

parent 6df01a73
...@@ -6,6 +6,6 @@ return [ ...@@ -6,6 +6,6 @@ return [
'width' => '200', 'width' => '200',
'height' => '250' 'height' => '250'
], ],
//'blur' => '15' 'blur' => '15'
] ]
]; ];
<?php namespace Modules\Media\Image\Intervention\Manipulations;
abstract class BaseManipulation
{
}
<?php namespace Modules\Media\Image\Intervention\Manipulations;
use Modules\Media\Image\ImageHandlerInterface;
class Blur 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->blur((int)$options);
}
}
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
use Modules\Media\Image\ImageHandlerInterface; use Modules\Media\Image\ImageHandlerInterface;
class Crop extends BaseManipulation implements ImageHandlerInterface class Crop implements ImageHandlerInterface
{ {
/** /**
* Handle the image manipulation request * Handle the image manipulation request
......
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