From d552c93253e7851ca3082523a5122bbdcc44bfb7 Mon Sep 17 00:00:00 2001 From: Edward Date: Fri, 12 Oct 2018 11:02:58 +0800 Subject: [PATCH] DataObjects/Images.php --- DataObjects/Images.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DataObjects/Images.php b/DataObjects/Images.php index b5894efb..ee2b3faf 100644 --- a/DataObjects/Images.php +++ b/DataObjects/Images.php @@ -866,9 +866,9 @@ class Pman_Core_DataObjects_Images extends DB_DataObject // // } - if(!empty($scaleWidth) || !empty($scaleHeight)){ - $data = $this->scale($scaleWidth, $scaleHeight); - } +// if(!empty($scaleWidth) || !empty($scaleHeight)){ +// $data = $this->scale($scaleWidth, $scaleHeight); +// } if($rotate){ $data = $this->rotate($data); @@ -919,7 +919,7 @@ class Pman_Core_DataObjects_Images extends DB_DataObject } $orientation = $imagick->getImageOrientation(); - + print_R($orientation);exit; switch($orientation) { case Imagick::ORIENTATION_BOTTOMRIGHT: $imagick->rotateimage(new ImagickPixel('#00000000'), 180); // rotate 180 degrees -- 2.39.2