@@ -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:
# 加入过滤器