Skip to content

Commit

Permalink
Adapt
Browse files Browse the repository at this point in the history
  • Loading branch information
olivervogel committed Oct 27, 2024
1 parent d571856 commit f726242
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tests/Unit/HeicTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,19 @@

use Intervention\Image\Tests\BaseTestCase;
use Intervention\Image\Encoders\MediaTypeEncoder;
use Intervention\Image\Image;
use Imagick;
use Intervention\Image\ImageManager;

final class HeicTest extends BaseTestCase
{
public function testEncoding(): void
{
$manager = ImageManager::imagick();
$p = $manager->create(100, 100)->encode(new MediaTypeEncoder('image/heic'));
$img = $manager->read($p);
$this->assertInstanceOf(Image::class, $img);
$input = $manager->create(100, 100)->encode(new MediaTypeEncoder('image/heic'));


$imagick = new Imagick();
$imagick->readImageBlob($input->toString());
$this->assertInstanceOf(Imagick::class, $imagick);
}
}

0 comments on commit f726242

Please sign in to comment.