mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-04-01 15:36:59 +08:00
Update nodes.py
This commit is contained in:
parent
f6b263a16d
commit
4489e5878c
3
nodes.py
3
nodes.py
@ -2755,7 +2755,8 @@ class AddLabel:
|
||||
|
||||
if font == "TTNorms-Black.otf":
|
||||
font_path = os.path.join(script_dir, "fonts", "TTNorms-Black.otf")
|
||||
|
||||
else:
|
||||
font_path = font
|
||||
label_image = Image.new("RGB", (width, height), label_color)
|
||||
draw = ImageDraw.Draw(label_image)
|
||||
font = ImageFont.truetype(font_path, font_size)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user