DataObjects/Images.php
authorEdward <edward@roojs.com>
Thu, 4 Oct 2018 02:58:05 +0000 (10:58 +0800)
committerEdward <edward@roojs.com>
Thu, 4 Oct 2018 02:58:05 +0000 (10:58 +0800)
DataObjects/Images.php

index d5728f3..84b39c0 100644 (file)
@@ -834,7 +834,14 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
             $data = $this->rotate();
         }
         
-        
+        if(!empty($scaleWidth) || !empty($scaleHeight)){
+            
+            $width = $this->width;
+            $height = $this->height;
+            
+            
+            
+        }
         
         $base64 = 'data:' . $this->mimetype . ';base64,' . base64_encode($data);