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

Add ability to read Imagick or GDImage directly (#1329)

This commit is contained in:
Oliver Vogel
2024-04-10 15:17:36 +02:00
committed by GitHub
parent 2439fd80cb
commit 6e104b6594
11 changed files with 44 additions and 6 deletions

View File

@@ -34,6 +34,13 @@ final class InputHandlerTest extends BaseTestCase
$this->assertInstanceOf(Image::class, $result);
}
public function testHandleGdImage(): void
{
$handler = new InputHandler();
$result = $handler->handle(imagecreatetruecolor(3, 2));
$this->assertInstanceOf(Image::class, $result);
}
public function testHandleSplFileInfo(): void
{
$handler = new InputHandler();