瀏覽代碼

更新 'compress.py'

qiang 4 年之前
父節點
當前提交
5e44177318
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      compress.py

+ 3 - 3
compress.py

xqd
@@ -30,9 +30,9 @@ def compress_file(item, width):
 
         basename = os.path.basename(item)
         fileName, fileSuffix = os.path.splitext(basename)
-        if fileSuffix != '.png' and fileSuffix != '.jpg' and fileSuffix == '.jpeg':
-            print "不支持该文件类型! file = %s" % item
-            return
+        #if fileSuffix != '.png' and fileSuffix != '.jpg' and fileSuffix == '.jpeg':
+        #    print "不支持该文件类型! file = %s" % item
+        #    return
 
         try:
            img = Image.open(item)