From d5692bbbe05d88ddb6abcb9fade661c2f20cac02 Mon Sep 17 00:00:00 2001 From: zzyyyl Date: Sat, 20 Jul 2024 00:51:19 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=20OptimizeTemplates?= =?UTF-8?q?=20=E4=BD=BF=E5=BE=97=E5=9B=BE=E5=83=8F=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=9A=84=E7=BB=93=E6=9E=9C=E5=BF=85=E5=AE=9A=E9=80=9A=E8=BF=87?= =?UTF-8?q?=20pre-commit-ci=20=E7=9A=84=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/OptimizeTemplates/optimize_templates.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/OptimizeTemplates/optimize_templates.py b/tools/OptimizeTemplates/optimize_templates.py index b16b80e764..b837cd9709 100644 --- a/tools/OptimizeTemplates/optimize_templates.py +++ b/tools/OptimizeTemplates/optimize_templates.py @@ -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