mirror of
https://github.com/Intervention/image.git
synced 2025-08-29 08:40:33 +02:00
Bugfix
This commit is contained in:
@@ -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) {
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user