DataObjects/Images.php
authorEdward <edward@roojs.com>
Thu, 4 Oct 2018 03:08:09 +0000 (11:08 +0800)
committerEdward <edward@roojs.com>
Thu, 4 Oct 2018 03:08:09 +0000 (11:08 +0800)
DataObjects/Images.php

index 1c0d86a..036edc7 100644 (file)
@@ -855,7 +855,11 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
                 }
             }
             
                 }
             }
             
+            $im = imagecreatefromstring($data, IMG_NEAREST_NEIGHBOUR);
             
             
+            if (($scaled = imagescale($im, $width, $width)) != false) {
+                
+            }
             
         }
         
             
         }