1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-20 12:41:23 +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\DecoderInterface;
use Intervention\Image\Interfaces\ImageInterface; use Intervention\Image\Interfaces\ImageInterface;
use Intervention\Image\Modifiers\AlignRotationModifier; use Intervention\Image\Modifiers\AlignRotationModifier;
use Intervention\Image\Origin;
class ImagickImageDecoder extends AbstractDecoder implements DecoderInterface class ImagickImageDecoder extends AbstractDecoder implements DecoderInterface
{ {
@@ -43,9 +42,8 @@ class ImagickImageDecoder extends AbstractDecoder implements DecoderInterface
// adjust image rotatation // adjust image rotatation
$image->modify(new AlignRotationModifier()); $image->modify(new AlignRotationModifier());
$image->setOrigin(new Origin( // set media type on origin
$input->getImageMimeType() $image->origin()->setMediaType($input->getImageMimeType());
));
return $image; return $image;
} }