mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-26 07:35:44 -03:00
Enhance SaveImage and TriggerWordToggle: add tooltips for parameters to improve user guidance
This commit is contained in:
@@ -31,14 +31,33 @@ class SaveImage:
|
|||||||
return {
|
return {
|
||||||
"required": {
|
"required": {
|
||||||
"images": ("IMAGE",),
|
"images": ("IMAGE",),
|
||||||
"filename_prefix": ("STRING", {"default": "ComfyUI"}),
|
"filename_prefix": ("STRING", {
|
||||||
"file_format": (["png", "jpeg", "webp"],),
|
"default": "ComfyUI",
|
||||||
|
"tooltip": "Base filename for saved images. Supports format patterns like %seed%, %width%, %height%, %model%, etc."
|
||||||
|
}),
|
||||||
|
"file_format": (["png", "jpeg", "webp"], {
|
||||||
|
"tooltip": "Image format to save as. PNG preserves quality, JPEG is smaller, WebP balances size and quality."
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
"optional": {
|
"optional": {
|
||||||
"lossless_webp": ("BOOLEAN", {"default": False}),
|
"lossless_webp": ("BOOLEAN", {
|
||||||
"quality": ("INT", {"default": 100, "min": 1, "max": 100}),
|
"default": False,
|
||||||
"embed_workflow": ("BOOLEAN", {"default": False}),
|
"tooltip": "When enabled, saves WebP images with lossless compression. Results in larger files but no quality loss."
|
||||||
"add_counter_to_filename": ("BOOLEAN", {"default": True}),
|
}),
|
||||||
|
"quality": ("INT", {
|
||||||
|
"default": 100,
|
||||||
|
"min": 1,
|
||||||
|
"max": 100,
|
||||||
|
"tooltip": "Compression quality for JPEG and lossy WebP formats (1-100). Higher values mean better quality but larger files."
|
||||||
|
}),
|
||||||
|
"embed_workflow": ("BOOLEAN", {
|
||||||
|
"default": False,
|
||||||
|
"tooltip": "Embeds the complete workflow data into the image metadata. Only works with PNG and WebP formats."
|
||||||
|
}),
|
||||||
|
"add_counter_to_filename": ("BOOLEAN", {
|
||||||
|
"default": True,
|
||||||
|
"tooltip": "Adds an incremental counter to filenames to prevent overwriting previous images."
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
"hidden": {
|
"hidden": {
|
||||||
"id": "UNIQUE_ID",
|
"id": "UNIQUE_ID",
|
||||||
|
|||||||
@@ -16,12 +16,18 @@ class TriggerWordToggle:
|
|||||||
def INPUT_TYPES(cls):
|
def INPUT_TYPES(cls):
|
||||||
return {
|
return {
|
||||||
"required": {
|
"required": {
|
||||||
"group_mode": ("BOOLEAN", {"default": True}),
|
"group_mode": ("BOOLEAN", {
|
||||||
"default_active": ("BOOLEAN", {"default": True}), # New parameter to control default state
|
"default": True,
|
||||||
|
"tooltip": "When enabled, treats each group of trigger words as a single toggleable unit."
|
||||||
|
}),
|
||||||
|
"default_active": ("BOOLEAN", {
|
||||||
|
"default": True,
|
||||||
|
"tooltip": "Sets the default initial state (active or inactive) when trigger words are added."
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
"optional": FlexibleOptionalInputType(any_type),
|
"optional": FlexibleOptionalInputType(any_type),
|
||||||
"hidden": {
|
"hidden": {
|
||||||
"id": "UNIQUE_ID", # 会被 ComfyUI 自动替换为唯一ID
|
"id": "UNIQUE_ID",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user