1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-03 10:53:01 +02:00

Fix transparency issues with gd driver resizing

This commit is contained in:
Oliver Vogel
2023-11-05 14:02:19 +01:00
parent 1fa784365f
commit 6ebdf8a96f
7 changed files with 48 additions and 83 deletions

View File

@@ -120,6 +120,6 @@ class GdInputHandlerTest extends TestCase
$input = 'transparent';
$result = $handler->handle($input);
$this->assertInstanceOf(RgbColor::class, $result);
$this->assertEquals([0, 0, 0, 0], $result->toArray());
$this->assertEquals([255, 0, 255, 0], $result->toArray());
}
}

View File

@@ -120,6 +120,6 @@ class InputHandlerTest extends TestCase
$input = 'transparent';
$result = $handler->handle($input);
$this->assertInstanceOf(RgbColor::class, $result);
$this->assertEquals([0, 0, 0, 0], $result->toArray());
$this->assertEquals([255, 0, 255, 0], $result->toArray());
}
}