Skip to content

callback postprocess_image_after_composite#14657

Merged
AUTOMATIC1111 merged 1 commit intodevfrom
callback-postprocess_image_after_composite
Jan 20, 2024
Merged

callback postprocess_image_after_composite#14657
AUTOMATIC1111 merged 1 commit intodevfrom
callback-postprocess_image_after_composite

Conversation

@w-e-w
Copy link
Copy Markdown
Collaborator

@w-e-w w-e-w commented Jan 16, 2024

Description

new callback callback postprocess_image_after_composite
same as postprocess_image but after image = apply_overlay(image, p.paste_to, overlay_image)
this allows it to operate on the whole image as opposed to only the crop region when performing inpaint_full_res

inpaint_full_res aka inpaint area = only masked

background I got a issue post on one of my extensions

because the image region that it can operate in postprocess_image is cropped, the extension performs suboptimally
so I decided to add this call back after the composite result

this callback could be used for the other extensions if they need to operate on the entire image or for whatever reason they need to operate after most other post-processing extentions

actual usage pending merge to my extensions assuming that this PR is acceptable


I'm bad at naming postprocess_image_after_composite
if anyone has better name it can be changed

Checklist:

@AUTOMATIC1111 AUTOMATIC1111 merged commit 41c2121 into dev Jan 20, 2024
@AUTOMATIC1111 AUTOMATIC1111 deleted the callback-postprocess_image_after_composite branch January 20, 2024 07:25
@w-e-w w-e-w mentioned this pull request Feb 17, 2024
@pawel665j pawel665j mentioned this pull request Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants