1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-01 18:02:45 +02:00
This commit is contained in:
Oliver Vogel
2021-10-31 08:10:16 +01:00
parent b1900c32c7
commit def7a406af
2 changed files with 3 additions and 3 deletions

View File

@@ -20,8 +20,8 @@ class FillModifier implements ModifierInterface
public function apply(ImageInterface $image): ImageInterface public function apply(ImageInterface $image): ImageInterface
{ {
$width = $image->getWidth(); $width = $image->width();
$height = $image->getHeight(); $height = $image->height();
$filling = $this->getApplicableFilling(); $filling = $this->getApplicableFilling();
foreach ($image as $frame) { foreach ($image as $frame) {

View File

@@ -24,7 +24,7 @@ class FillModifier implements ModifierInterface
$draw = new ImagickDraw(); $draw = new ImagickDraw();
$draw->setFillColor($filling->getPixel()); $draw->setFillColor($filling->getPixel());
$draw->rectangle(0, 0, $image->getWidth(), $image->getHeight()); $draw->rectangle(0, 0, $image->width(), $image->height());
foreach ($image as $frame) { foreach ($image as $frame) {
$frame->getCore()->drawImage($draw); $frame->getCore()->drawImage($draw);