1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-28 16:19:50 +02:00

Remove function

This commit is contained in:
Oliver Vogel
2023-11-05 11:09:59 +01:00
parent a468c06598
commit 1fa784365f

View File

@@ -16,7 +16,7 @@ class ResizeModifier implements ModifierInterface
public function apply(ImageInterface $image): ImageInterface
{
$resizeTo = $this->getAdjustedSize($image);
$resizeTo = $image->size()->resize($this->width, $this->height);
foreach ($image as $frame) {
$this->resizeFrame($frame, $resizeTo);
@@ -25,11 +25,6 @@ class ResizeModifier implements ModifierInterface
return $image;
}
protected function getAdjustedSize(ImageInterface $image): SizeInterface
{
return $image->size()->resize($this->width, $this->height);
}
protected function resizeFrame(FrameInterface $frame, SizeInterface $resizeTo): void
{
// create new image