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:
parent
8d50e50dcb
commit
893de3177d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user