projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b3190f
)
DataObjects/Images.php
author
Chris
<chris@roojs.com>
Thu, 25 Apr 2013 12:45:08 +0000
(20:45 +0800)
committer
Chris
<chris@roojs.com>
Thu, 25 Apr 2013 12:45:08 +0000
(20:45 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
1178d9e
..
c4312e3
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-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}";