Images.php
authoredward <edward@roojs.com>
Wed, 5 Oct 2016 08:37:39 +0000 (16:37 +0800)
committeredward <edward@roojs.com>
Wed, 5 Oct 2016 08:37:39 +0000 (16:37 +0800)
Images.php

index a9fcc28..258cdf8 100644 (file)
@@ -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