mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 00:03:07 +00:00
pythonium
This commit is contained in:
parent
2e6daa9da3
commit
b6e9ade1b2
1 changed files with 1 additions and 1 deletions
|
@ -97,7 +97,7 @@ async def get_picture_for_day(
|
||||||
fill=txt_color,
|
fill=txt_color,
|
||||||
)
|
)
|
||||||
|
|
||||||
if not (bbox := txt_layer.getbbox()) is None:
|
if (bbox := txt_layer.getbbox()) is not None:
|
||||||
mean = np.mean(img.crop(bbox).getdata(), axis=0)
|
mean = np.mean(img.crop(bbox).getdata(), axis=0)
|
||||||
txt_color = tuple(int(val) for val in mean)
|
txt_color = tuple(int(val) for val in mean)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue