chore: 更新 OptimizeTemplates 使得图像优化的结果必定通过 pre-commit-ci 的检查

This commit is contained in:
zzyyyl
2024-07-20 00:51:19 +08:00
parent ac0df1c518
commit d5692bbbe0

View File

@@ -123,8 +123,10 @@ def update_png_with_oxipng(file_path: str, perfect_pngs: dict, quiet: bool):
if quiet:
os.system(f"oxipng -o max --fast -Z -s -q \"{file_path}\"")
os.system(f"oxipng -o 2 -s -q \"{file_path}\"")
else:
os.system(f"oxipng -o max --fast -Z -s \"{file_path}\"")
os.system(f"oxipng -o 2 -s \"{file_path}\"")
sz_after = os.stat(file_path).st_size