projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
dde9bdb
)
Images.php
author
edward
<edward@roojs.com>
Wed, 5 Oct 2016 08:37:39 +0000
(16:37 +0800)
committer
edward
<edward@roojs.com>
Wed, 5 Oct 2016 08:37:39 +0000
(16:37 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
a9fcc28
..
258cdf8
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-243,7
+243,9
@@
class Pman_Core_Images extends Pman
//echo "SKALING? $this->size";
// acutally if we generated the image, then we do not need to validate the size..
-
+ require_once 'File/MimeType.php';
+ $y = new File_MimeType();
+ $ext = $y->toExt(trim((string) $this->as_mimetype ));
// if the mimetype is not converted..
// then the filename should be original.{size}.jpeg