dever 3 years ago
parent
commit
45a63e8e6c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      lib/Store/Qiniu.php

+ 4 - 1
lib/Store/Qiniu.php

@@ -183,11 +183,14 @@ class Qiniu extends Core implements Config
                 $source = $this->output['file'];
             }
 
+            //?imageView2/2/w/360/h/270/format/png/q/75|imageslim
             $dest = $source . '?imageView2/2/w/'.$config['width'].'/h/'.$config['height'];
 
             if (isset($config['compress']) && $config['compress'] > 0) {
-                $dest = $dest . '/q/' . $config['compress'];
+                $dest .= '/q/' . $config['compress'];
             }
+
+            $dest .= '|imageslim';
         }
         return $dest;
     }