tianyun 1 年間 前
コミット
965328972c
1 ファイル変更2 行追加2 行削除
  1. 2 2
      project/compress_dir_img.py

+ 2 - 2
project/compress_dir_img.py

@@ -31,8 +31,8 @@ def convert_to_webp(dir_path):
             if not any(filepath.lower().endswith(ext) for ext in common_image_extensions):
                 bf.add(filepath)
                 continue
-            # 如果图片大小小于500k,就不转换
-            if os.path.getsize(filepath) < 500 * 1024:
+            # 如果图片大小小于300k,就不转换
+            if os.path.getsize(filepath) < 300 * 1024:
                 # 加入过滤器
                 bf.add(filepath)
                 continue