1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-22 21:42:53 +02:00

Add tests for CMYK colorspace detection

This commit is contained in:
Oliver Vogel
2023-10-22 12:36:36 +02:00
parent 24c8071200
commit 03a8ede2c6

View File

@@ -92,7 +92,15 @@ class ImageTest extends TestCase
public function testGetColorspace(): void public function testGetColorspace(): void
{ {
$this->assertInstanceOf(RgbColorspace::class, $this->image->getColorspace()); $imagick = new Imagick();
$imagick->readImageBlob($this->getTestImageData('test.jpg'));
$image = new Image($imagick);
$this->assertInstanceOf(RgbColorspace::class, $image->getColorspace());
$imagick = new Imagick();
$imagick->readImageBlob($this->getTestImageData('cmyk.jpg'));
$image = new Image($imagick);
$this->assertInstanceOf(CmykColorspace::class, $image->getColorspace());
} }
public function testSetColorspace(): void public function testSetColorspace(): void