裁剪封面宽高比可配置

This commit is contained in:
lededev
2022-04-10 13:38:48 +08:00
parent c54817aa01
commit 8add9fe424
4 changed files with 18 additions and 10 deletions

View File

@@ -365,6 +365,9 @@ class Config:
def face_aways_imagecut(self) -> bool:
return self.getboolean_override("face", "aways_imagecut", fallback=False)
def face_aspect_ratio(self) -> float:
return self.conf.getfloat("face", "aspect_ratio", fallback=2.12)
@staticmethod
def _exit(sec: str) -> None:
print("[-] Read config error! Please check the {} section in config.ini", sec)