1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-29 16:50:07 +02:00

Modifiers

This commit is contained in:
Oliver Vogel
2021-12-01 16:08:15 +01:00
parent 4be14783cf
commit 69b38d8a7c

View File

@@ -0,0 +1,31 @@
<?php
namespace Intervention\Image\Drivers\Imagick\Modifiers;
use Intervention\Image\Interfaces\FrameInterface;
use Intervention\Image\Interfaces\ImageInterface;
use Intervention\Image\Interfaces\ModifierInterface;
use Intervention\Image\Interfaces\SizeInterface;
class PadModifier implements ModifierInterface
{
protected $crop;
protected $resize;
protected $backgroundColor;
public function __construct(SizeInterface $crop, SizeInterface $resize, $backgroundColor = null)
{
$this->crop = $crop;
$this->resize = $resize;
$this->backgroundColor = $backgroundColor;
}
public function apply(ImageInterface $image): ImageInterface
{
foreach ($image as $frame) {
//
}
return $image;
}
}