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

index 8d9a7ac..22e4e79 100644 (file)
@@ -866,12 +866,11 @@ 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 = $this->rotate($data);
         }
         
@@ -938,7 +937,7 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
         return $imagick->getImageBlob();
     }
     
-    function scale($width, $height)
+    function scale($width, $height, $imageBlob = false)
     {
         
     }