projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4dc273
)
DataObjects/Images.php
author
Chris
<chris@roojs.com>
Fri, 26 Apr 2013 07:47:03 +0000
(15:47 +0800)
committer
Chris
<chris@roojs.com>
Fri, 26 Apr 2013 07:47:03 +0000
(15:47 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
c4312e3
..
0ddce37
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-437,8
+437,12
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
//$size = max(100, (int) $size);
//$size = min(1024, (int) $size);
// the size should 200x150 to convert
+ $size = explode('x', $size);
+ if(empty($size[1])){
+ $size[1] = 0;
+ }
$fc = $this->toFileConvert();
- $fc->convert($this->mimetype,
$size
);
+ $fc->convert($this->mimetype,
implode('x', $size)
);
return $baseURL . $provider . "/$size/{$this->id}/{$this->filename}";