From 2d3d39d9d5a002c809a68711c588d5ba94a92c3c Mon Sep 17 00:00:00 2001 From: Jakob Keller Date: Fri, 20 Sep 2019 17:57:20 +0200 Subject: [PATCH] remove origin resize in order to keep quality If you resize first and call `$model->adaptiveResize()` after magento will adaptiveResize the resized image. This significantly reduces the image Quality. --- Helper/Image.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Helper/Image.php b/Helper/Image.php index 2550e9a..f40958e 100755 --- a/Helper/Image.php +++ b/Helper/Image.php @@ -144,9 +144,6 @@ protected function applyScheduledActions() if ($this->_scheduleRotate) { $model->rotate($this->getAngle()); } - if ($this->_scheduleResize) { - $model->resize(); - } if ($this->_cropPosition) { $this->_getModel()->setCropPosition($this->_cropPosition); } @@ -162,4 +159,4 @@ protected function applyScheduledActions() return $this; } -} \ No newline at end of file +}