1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-17 04:08:14 +01:00

Fix bug in Imagick driver's CoverModifier

This commit is contained in:
Oliver Vogel 2024-06-02 17:36:53 +02:00
parent 8d50e50dcb
commit 893de3177d
No known key found for this signature in database
GPG Key ID: 1B19D214C02D69BB

View File

@ -16,7 +16,7 @@ class CoverModifier extends GenericCoverModifier implements SpecializedInterface
$resize = $this->getResizeSize($crop);
foreach ($image as $frame) {
$frame->native()->extentImage(
$frame->native()->cropImage(
$crop->width(),
$crop->height(),
$crop->pivot()->x(),
@ -27,6 +27,8 @@ class CoverModifier extends GenericCoverModifier implements SpecializedInterface
$resize->width(),
$resize->height()
);
$frame->native()->setImagePage(0, 0, 0, 0);
}
return $image;