1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-29 08:40:33 +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
{
$width = $image->getWidth();
$height = $image->getHeight();
$width = $image->width();
$height = $image->height();
$filling = $this->getApplicableFilling();
foreach ($image as $frame) {

View File

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