Merge pull request #777 from LambdaYH/patch-1

fix image_utils.py
This commit is contained in:
HibiKier 2022-06-07 19:27:31 +08:00 committed by GitHub
commit 5a002f75cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,7 +178,7 @@ class BuildImage:
self.paste_image_height = int(paste_image_height) self.paste_image_height = int(paste_image_height)
self.current_w = 0 self.current_w = 0
self.current_h = 0 self.current_h = 0
self.font = ImageFont.truetype(str(FONT_PATH / font), font_size) self.font = ImageFont.truetype(str(FONT_PATH / font), int(font_size))
if not plain_text and not color: if not plain_text and not color:
color = (255, 255, 255) color = (255, 255, 255)
self.background = background self.background = background