修改测试PSD
parent
c8f158a5aa
commit
002522573b
|
|
@ -60,6 +60,12 @@ def parse_psd(path):
|
||||||
max_height = item.height
|
max_height = item.height
|
||||||
break
|
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():
|
for item in psd.descendants():
|
||||||
if not item.is_group():
|
if not item.is_group():
|
||||||
nArr = item.name.split('_')
|
nArr = item.name.split('_')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue