DataObjects/Images.php
authorChris <chris@roojs.com>
Thu, 25 Apr 2013 12:45:08 +0000 (20:45 +0800)
committerChris <chris@roojs.com>
Thu, 25 Apr 2013 12:45:08 +0000 (20:45 +0800)
DataObjects/Images.php

index 1178d9e..c4312e3 100644 (file)
@@ -436,6 +436,9 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
         //-- max?
         //$size = max(100, (int) $size);
         //$size = min(1024, (int) $size);
+        // the size should 200x150 to convert
+        $fc = $this->toFileConvert();
+        $fc->convert($this->mimetype, $size);
         
         
         return $baseURL . $provider . "/$size/{$this->id}/{$this->filename}";