mirror of
https://github.com/Intervention/image.git
synced 2025-08-28 16:19:50 +02:00
@@ -35,6 +35,14 @@ class CropModifier extends DriverSpecializedModifier
|
|||||||
$crop->pivot()->y() + $this->offset_y
|
$crop->pivot()->y() + $this->offset_y
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// repage
|
||||||
|
$frame->native()->setImagePage(
|
||||||
|
$crop->width(),
|
||||||
|
$crop->height(),
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
);
|
||||||
|
|
||||||
// cover the possible newly created areas with background color
|
// cover the possible newly created areas with background color
|
||||||
if ($crop->width() > $originalSize->width() || $this->offset_x > 0) {
|
if ($crop->width() > $originalSize->width() || $this->offset_x > 0) {
|
||||||
$draw->rectangle(
|
$draw->rectangle(
|
||||||
|
Reference in New Issue
Block a user