mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
chore: 更新 OptimizeTemplates 使得图像优化的结果必定通过 pre-commit-ci 的检查
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user