浏览代码

更新 'compress.py'

qiang 6 年之前
父节点
当前提交
7f8f190132
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      compress.py

+ 1 - 1
compress.py

xqd
@@ -11,7 +11,7 @@ from PIL import Image
 
 def run(dir,width):
     if dir is not None:
-        find_path = "find " + dir + " -regex '.*\(jpg\|JPG\|png\|PNG\|jpeg\)' -type f   -size 100k | sort -nr"
+        find_path = "find " + dir + " -regex '.*\(jpg\|JPG\|png\|PNG\|jpeg\)' -type f -size +100k | sort -nr"
         result = os.popen(find_path).read().split('\n')
 
         for item in result: