dever 6 年之前
父节点
当前提交
c59645af00
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      src/Lib/Img.php

+ 1 - 2
src/Lib/Img.php

@@ -1008,9 +1008,8 @@ class Img
 		$this->_check('quality');
 		$this->_dest['compress'] = $this->getName('_compress.jpg');
 		
-
+        $this->_image->stripImage();
 		if (strstr($this->_dest['compress'], '.png')) {
-            $this->_image->stripImage();
             $this->_image->setImageType(\Imagick::IMGTYPE_PALETTE);
             $this->_image->writeImage($this->_dest['compress']);      
         } else {