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

index 258cdf8..f02dfc5 100644 (file)
@@ -232,9 +232,10 @@ class Pman_Core_Images extends Pman
         }
 //        print_r($img);exit;
         $x = $img->toFileConvert();
-        if (empty($this->as_mimetype)) {
+        if (empty($this->as_mimetype) || $img->mimetype == 'image/gif') {
             $this->as_mimetype  = $img->mimetype;
         }
+        
         if (!$this->thumb) {
             $x->convert( $this->as_mimetype);
             $x->serve($this->method);