1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-30 09:10:21 +02:00

Optimize & Refactor Crop- and ResizeCanvasModifiers (#1418)

* Refactor and simplify CropModifier::class
* Refactor and simplify ResizeCanvasModifier::class
This commit is contained in:
Oliver Vogel
2025-01-12 08:24:23 +01:00
committed by GitHub
parent e07119bc97
commit 58f0afd3c7
17 changed files with 220 additions and 274 deletions

View File

@@ -64,7 +64,7 @@ final class PngEncoderTest extends ImagickTestCase
yield [
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
'indexed',
];
yield [
static::readTestImage('circle.png'), // truecolor-alpha