mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-27 23:30:56 +08:00
Change default crop option to "center" on Resize Image/Mask node
Some checks failed
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run
Build package / Build Test (3.10) (push) Has been cancelled
Build package / Build Test (3.11) (push) Has been cancelled
Build package / Build Test (3.12) (push) Has been cancelled
Build package / Build Test (3.13) (push) Has been cancelled
Build package / Build Test (3.9) (push) Has been cancelled
Some checks failed
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run
Build package / Build Test (3.10) (push) Has been cancelled
Build package / Build Test (3.11) (push) Has been cancelled
Build package / Build Test (3.12) (push) Has been cancelled
Build package / Build Test (3.13) (push) Has been cancelled
Build package / Build Test (3.9) (push) Has been cancelled
This commit is contained in:
parent
a54faaa480
commit
1929d8b032
@ -381,7 +381,7 @@ class ResizeImageMaskNode(io.ComfyNode):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def define_schema(cls):
|
def define_schema(cls):
|
||||||
template = io.MatchType.Template("input_type", [io.Image, io.Mask])
|
template = io.MatchType.Template("input_type", [io.Image, io.Mask])
|
||||||
crop_combo = io.Combo.Input("crop", options=cls.crop_methods)
|
crop_combo = io.Combo.Input("crop", options=cls.crop_methods, default="center")
|
||||||
return io.Schema(
|
return io.Schema(
|
||||||
node_id="ResizeImageMaskNode",
|
node_id="ResizeImageMaskNode",
|
||||||
display_name="Resize Image/Mask",
|
display_name="Resize Image/Mask",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user