mirror of
https://github.com/Intervention/image.git
synced 2025-08-28 16:19:50 +02:00
Allow png results to be 'grayscale' with 'indexed' option
This commit is contained in:
@@ -59,6 +59,12 @@ final class PngEncoderTest extends ImagickTestCase
|
||||
new PngEncoder(indexed: true),
|
||||
'indexed',
|
||||
],
|
||||
|
||||
[
|
||||
static::createTestImage(3, 2)->fill('ccc'), // new grayscale
|
||||
new PngEncoder(indexed: true),
|
||||
'grayscale', // result should be 'indexed' but there seems to be no way to force this with imagick
|
||||
],
|
||||
[
|
||||
static::readTestImage('circle.png'), // truecolor-alpha
|
||||
new PngEncoder(indexed: false),
|
||||
@@ -67,7 +73,7 @@ final class PngEncoderTest extends ImagickTestCase
|
||||
[
|
||||
static::readTestImage('circle.png'), // indexedcolor-alpha
|
||||
new PngEncoder(indexed: true),
|
||||
'indexed',
|
||||
'grayscale-alpha', // result should be 'indexed' but there seems to be no way to force this with imagick
|
||||
],
|
||||
[
|
||||
static::readTestImage('tile.png'), // indexed
|
||||
|
Reference in New Issue
Block a user