1
0
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:
Oliver Vogel
2024-08-11 13:27:46 +02:00
parent 78534a3b0c
commit e7554ec048

View File

@@ -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