Compare commits

..

No commits in common. "fb8726244c222056cb643d8732cf5e6352ccc8d0" and "0e3c8c07c3885f91c6420e2501abd4f367673eab" have entirely different histories.

View File

@ -972,7 +972,7 @@ class SaveImageAdvanced(IO.ComfyNode):
),
IO.Combo.Input(
"interpret_as",
options=["sRGB", "Raw/Data"],
options=["sRGB", "Linear", "Raw/Data"],
default="sRGB",
advanced=True,
),
@ -1022,15 +1022,12 @@ class SaveImageAdvanced(IO.ComfyNode):
)
@classmethod
def execute(cls, images, filename_prefix: str, format: dict, embed_workflow: bool) -> IO.NodeOutput:
def execute(cls, images, filename_prefix: str, format: dict, embed_workflow: bool, prompt=None, extra_pnginfo=None) -> 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"]