add img2img_apply_overlay

This commit is contained in:
Vladimir Mandic
2023-12-14 10:09:55 -05:00
parent 934152dcfc
commit b96fbd8f95
4 changed files with 17 additions and 11 deletions
+2
View File
@@ -61,6 +61,8 @@ def apply_color_correction(correction, original_image):
def apply_overlay(image: Image, paste_loc, index, overlays):
if not shared.opts.img2img_apply_overlay:
return image
if overlays is None or index >= len(overlays):
return image
overlay = overlays[index]