1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-09 15:26:38 +02:00
This commit is contained in:
Oliver Vogel
2021-10-31 08:04:05 +01:00
parent 2c0e2eb719
commit b1900c32c7
2 changed files with 5 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
namespace Intervention\Image\Drivers\Gd\Modifiers;
use Intervention\Image\Drivers\Gd\InputHandler;
use Intervention\Image\Interfaces\ColorInterface;
use Intervention\Image\Interfaces\FrameInterface;
use Intervention\Image\Interfaces\ImageInterface;
use Intervention\Image\Interfaces\ModifierInterface;

View File

@@ -20,6 +20,10 @@ class ArrayColorDecoder extends AbstractDecoder implements DecoderInterface
$this->fail();
}
if (count($input) === 3) {
$input[] = 1;
}
list($r, $g, $b, $a) = $input;
$pixel = new ImagickPixel(