1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-28 16:19:50 +02:00
Oliver Vogel
2024-01-08 15:30:05 +01:00
parent 614cd93517
commit d2f6b14007

View File

@@ -35,6 +35,14 @@ class CropModifier extends DriverSpecializedModifier
$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
if ($crop->width() > $originalSize->width() || $this->offset_x > 0) {
$draw->rectangle(