Compare commits

...

3 Commits

Author SHA1 Message Date
Yousef Rafat
fb8726244c Merge branch 'advanced_save' of https://github.com/yousef-rafat/ComfyUI into advanced_save 2026-05-01 14:29:56 +03:00
Yousef Rafat
88d7b1bcab workflow embedded fix 2026-05-01 14:29:44 +03:00
Yousef R. Gamaleldin
f6c6c4c2b7
remove linear from png
Co-authored-by: Alexis Rolland <alexisrolland@hotmail.com>
2026-05-01 11:10:24 +03:00

View File

@ -972,7 +972,7 @@ class SaveImageAdvanced(IO.ComfyNode):
),
IO.Combo.Input(
"interpret_as",
options=["sRGB", "Linear", "Raw/Data"],
options=["sRGB", "Raw/Data"],
default="sRGB",
advanced=True,
),
@ -1022,12 +1022,15 @@ class SaveImageAdvanced(IO.ComfyNode):
)
@classmethod
def execute(cls, images, filename_prefix: str, format: dict, embed_workflow: bool, prompt=None, extra_pnginfo=None) -> IO.NodeOutput:
def execute(cls, images, filename_prefix: str, format: dict, embed_workflow: bool) -> IO.NodeOutput:
output_dir = folder_paths.get_output_directory()
full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.\
get_save_image_path(filename_prefix, output_dir, images[0].shape[1], images[0].shape[0])
results = list()
prompt = cls.hidden.prompt
extra_pnginfo = cls.hidden.extra_pnginfo
for batch_number, image in enumerate(images):
# get widget values from dynamic combo
file_format = format["format"]