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