Visit ComfyUI Online for ready-to-use ComfyUI environment
Efficiently select output image formats with flexibility and user-friendly automation using JNodes_ImageFormatSelector.
The JNodes_ImageFormatSelector node is designed to help you select the desired image format for your output files in a streamlined and efficient manner. This node is particularly useful when working with various image formats, allowing you to choose the appropriate format based on your specific needs. Whether you are looking to save images in a specific format or need to automate the selection process based on certain criteria, this node provides a flexible and user-friendly solution. By leveraging this node, you can ensure that your images are saved in the correct format, enhancing the overall workflow and output quality.
This parameter allows you to specify the image format you want to use. The available options are defined by JNODES_IMAGE_FORMAT_TYPES
, which typically include formats like "image/gif", "image/webp", and "image/apng". Selecting the correct format is crucial as it determines the file type and the associated properties of the saved image.
The mode parameter determines how the format is selected. It offers three options: "select", "seed", and "index". "Select" allows you to manually choose the format, "seed" uses a seed value to randomly select a format, and "index" selects a format based on a specific index. This flexibility enables you to automate the format selection process based on your workflow requirements.
This parameter is used when the mode is set to "seed". It is an integer value that serves as the seed for the random selection process. The default value is 0, and it can go up to 0xffffffffffffffff. The seed ensures that the random selection is reproducible, allowing for consistent results across different runs.
This output parameter returns the selected image format. It reflects the format chosen based on the input parameters, ensuring that the subsequent nodes in your workflow receive the correct format for processing.
This output parameter provides a string representation of the selected format. It is useful for logging, debugging, or any other purpose where a textual representation of the format is required.
JNODES_IMAGE_FORMAT_TYPES
.JNODES_IMAGE_FORMAT_TYPES
.© Copyright 2024 RunComfy. All Rights Reserved.