Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

callback postprocess_image_after_composite #14657

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

w-e-w
Copy link
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
6 checks passed
@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