mirror of
https://github.com/Intervention/image.git
synced 2025-08-23 05:52:47 +02:00
feature/strip encoder parameter (#1421)
Add config option and encoder parameter to strip meta data in the encoding process. --------- Co-authored-by: Thomas <thomas@sctr.net>
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Intervention\Image\Tests\Unit\Drivers\Imagick\Encoders;
|
||||
|
||||
use Intervention\Image\Drivers\Imagick\Driver;
|
||||
use Intervention\Image\Drivers\Imagick\Encoders\HeicEncoder;
|
||||
use PHPUnit\Framework\Attributes\CoversClass;
|
||||
use PHPUnit\Framework\Attributes\RequiresPhpExtension;
|
||||
@@ -17,6 +18,7 @@ final class HeicEncoderTest extends ImagickTestCase
|
||||
{
|
||||
$image = $this->createTestImage(3, 2);
|
||||
$encoder = new HeicEncoder(75);
|
||||
$encoder->setDriver(new Driver());
|
||||
$result = $encoder->encode($image);
|
||||
$this->assertMediaType('image/heic', $result);
|
||||
$this->assertEquals('image/heic', $result->mimetype());
|
||||
|
Reference in New Issue
Block a user