mirror of
https://github.com/Intervention/image.git
synced 2025-08-27 07:44:30 +02:00
Fix bug in GD driver's CropModifier
This commit is contained in:
@@ -63,13 +63,12 @@ class CropModifier extends SpecializedModifier
|
|||||||
);
|
);
|
||||||
|
|
||||||
imagealphablending($modified, false); // do not blend / just overwrite
|
imagealphablending($modified, false); // do not blend / just overwrite
|
||||||
// imagecolortransparent($modified, $transparent);
|
|
||||||
imagefilledrectangle(
|
imagefilledrectangle(
|
||||||
$modified,
|
$modified,
|
||||||
$offset_x * -1,
|
$offset_x * -1,
|
||||||
$offset_y * -1,
|
$offset_y * -1,
|
||||||
$targetWidth,
|
$targetWidth - $this->offset_x - 1,
|
||||||
$targetHeight,
|
$targetHeight - $this->offset_y - 1,
|
||||||
$transparent
|
$transparent
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -87,8 +86,6 @@ class CropModifier extends SpecializedModifier
|
|||||||
$targetHeight
|
$targetHeight
|
||||||
);
|
);
|
||||||
|
|
||||||
imagealphablending($modified, true);
|
|
||||||
|
|
||||||
// set new content as recource
|
// set new content as recource
|
||||||
$frame->setNative($modified);
|
$frame->setNative($modified);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user