mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-04-15 13:02:35 +08:00
Merge 197dba5b69 into a2840e7552
This commit is contained in:
commit
eca2b38eb4
@ -26,6 +26,8 @@ class WebcamCapture(nodes.LoadImage):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def IS_CHANGED(cls, image, width, height, capture_on_queue):
|
def IS_CHANGED(cls, image, width, height, capture_on_queue):
|
||||||
|
if capture_on_queue:
|
||||||
|
return float("NaN")
|
||||||
return super().IS_CHANGED(image)
|
return super().IS_CHANGED(image)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -489,7 +489,8 @@ class PromptServer():
|
|||||||
for key in original_pil.text:
|
for key in original_pil.text:
|
||||||
metadata.add_text(key, original_pil.text[key])
|
metadata.add_text(key, original_pil.text[key])
|
||||||
original_pil = original_pil.convert('RGBA')
|
original_pil = original_pil.convert('RGBA')
|
||||||
mask_pil = Image.open(image.file).convert('RGBA')
|
with Image.open(image.file) as mask_pil_raw:
|
||||||
|
mask_pil = mask_pil_raw.convert('RGBA')
|
||||||
|
|
||||||
# alpha copy
|
# alpha copy
|
||||||
new_alpha = mask_pil.getchannel('A')
|
new_alpha = mask_pil.getchannel('A')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user