From 002522573b9d1ff5309bfbc5f0c8f184d7f18f47 Mon Sep 17 00:00:00 2001 From: "yi.cheng" Date: Mon, 6 Nov 2023 13:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95PSD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- check_compress_psd.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/check_compress_psd.py b/check_compress_psd.py index cee7da6..02763b5 100644 --- a/check_compress_psd.py +++ b/check_compress_psd.py @@ -60,6 +60,12 @@ def parse_psd(path): max_height = item.height break + if is_activity_main_psd: + if max_width < 1080: + log.append("玩法活动背景过小,宽度不能小于1080") + if max_height < 2700: + log.append("玩法活动背景过小,高度不能小于2700") + for item in psd.descendants(): if not item.is_group(): nArr = item.name.split('_')