mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 03:08:29 +02:00
fixed ImageGenerator (ImageFont not imported, missing image variable in a method call)
This commit is contained in:
parent
d509567848
commit
1cade9fa6f
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
from pathlib import Path
|
||||
from PIL import Image, ImageDraw
|
||||
from PIL import Image, ImageDraw, ImageFont
|
||||
import json
|
||||
|
||||
from abc import abstractmethod, ABC
|
||||
|
@ -241,7 +241,7 @@ class PatchOperation:
|
|||
font_image_path = None
|
||||
|
||||
font = ImageFont.truetype(font=font_image_path, size=self.get_font_size(image))
|
||||
draw.text(self.get_layer_position(layer), text=self.text, fill=self.color, font=font)
|
||||
draw.text(self.get_layer_position(image), text=self.text, fill=self.color, font=font)
|
||||
|
||||
return image
|
||||
|
||||
|
|
Loading…
Reference in a new issue