mirror of
https://github.com/Intervention/image.git
synced 2025-08-09 15:26:38 +02:00
Bugfixes
This commit is contained in:
@@ -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;
|
||||
|
@@ -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(
|
||||
|
Reference in New Issue
Block a user