feat✨: 鲁迅说

This commit is contained in:
HibiKier
2024-05-16 00:29:52 +08:00
parent ebec169e67
commit e2bb4d2e56
2 changed files with 77 additions and 0 deletions
+3
View File
@@ -60,6 +60,9 @@ class BuildImage:
self.markImg = Image.open(background)
if width and height:
self.markImg = self.markImg.resize((width, height), Image.LANCZOS)
else:
self.width = self.markImg.width
self.height = self.markImg.height
else:
if not width or not height:
raise ValueError("长度和宽度不能为空...")