mirror of
https://github.com/sd-webui/stable-diffusion-webui.git
synced 2024-12-15 07:12:58 +03:00
Use white text for alternate text matrix
The previous color magenta (255, 0, 255) distracts from the actual images. Use white instead. The text already has black stroke, so it remains readable even on white backgrounds.
This commit is contained in:
parent
ceecb1a33d
commit
dac090625b
2
webui.py
2
webui.py
@ -384,7 +384,7 @@ def image_grid(imgs, batch_size, force_n_rows=None, captions=None):
|
||||
if captions:
|
||||
d = ImageDraw.Draw( grid )
|
||||
size = d.textbbox( (0,0), captions[i], font=fnt, stroke_width=2, align="center" )
|
||||
d.multiline_text((i % cols * w + w/2, i // cols * h + h - size[3]), captions[i], font=fnt, fill=(255,0,255), stroke_width=2, stroke_fill=(0,0,0), anchor="mm", align="center")
|
||||
d.multiline_text((i % cols * w + w/2, i // cols * h + h - size[3]), captions[i], font=fnt, fill=(255,255,255), stroke_width=2, stroke_fill=(0,0,0), anchor="mm", align="center")
|
||||
|
||||
return grid
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user