1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-20 04:31:24 +02:00

Refactor code

This commit is contained in:
Oliver Vogel
2024-01-27 18:05:34 +01:00
parent e1b4649b86
commit 342babc7c2

View File

@@ -14,7 +14,6 @@ use Intervention\Image\Interfaces\ColorInterface;
use Intervention\Image\Interfaces\DecoderInterface;
use Intervention\Image\Interfaces\ImageInterface;
use Intervention\Image\Modifiers\AlignRotationModifier;
use Intervention\Image\Origin;
class ImagickImageDecoder extends AbstractDecoder implements DecoderInterface
{
@@ -43,9 +42,8 @@ class ImagickImageDecoder extends AbstractDecoder implements DecoderInterface
// adjust image rotatation
$image->modify(new AlignRotationModifier());
$image->setOrigin(new Origin(
$input->getImageMimeType()
));
// set media type on origin
$image->origin()->setMediaType($input->getImageMimeType());
return $image;
}