DataObjects/Images.php
authorEdward <edward@roojs.com>
Fri, 12 Oct 2018 03:02:58 +0000 (11:02 +0800)
committerEdward <edward@roojs.com>
Fri, 12 Oct 2018 03:02:58 +0000 (11:02 +0800)
DataObjects/Images.php

index b5894ef..ee2b3fa 100644 (file)
@@ -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