ComfyUI > Nodes > ComfyUI_NetDist > Save Image (URL)

ComfyUI Node: Save Image (URL)

Class Name

SaveImageUrl

Category
remote/image
Author
city96 (Account age: 552days)
Extension
ComfyUI_NetDist
Latest Updated
2024-05-22
Github Stars
0.27K

How to Install ComfyUI_NetDist

Install this extension via the ComfyUI Manager by searching for ComfyUI_NetDist
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI_NetDist in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Save Image (URL) Description

Facilitates saving images to specified URL, supports HTML and raw data formats, includes metadata options for tracking and organizing images.

Save Image (URL):

The SaveImageUrl node is designed to facilitate the process of saving images to a specified URL. This node is particularly useful for AI artists who need to automate the storage of generated images in a remote location. By leveraging this node, you can seamlessly save images in either HTML image format or raw data format, making it versatile for various applications. The node also allows you to add metadata such as prompts and additional PNG information, which can be useful for tracking and organizing your images. Overall, the SaveImageUrl node simplifies the workflow of saving and sharing images generated by AI models.

Save Image (URL) Input Parameters:

images

This parameter expects a list of images that you want to save. The images should be in a format compatible with the node, typically as tensors. The images are processed and converted into the specified data format before being sent to the URL.

url

This is the destination URL where the images will be sent. It should be a valid URL that can accept POST requests. The URL is crucial as it determines where your images will be stored or processed further.

filename_prefix

This parameter allows you to specify a prefix for the filenames of the saved images. The default value is "ComfyUI". This prefix helps in organizing and identifying the images, especially when saving multiple images in a sequence.

data_format

This parameter determines the format in which the images will be saved. You can choose between "HTML_image" and "Raw_data". "HTML_image" encodes the image in a base64 format suitable for embedding in HTML, while "Raw_data" provides the raw image data.

prompt

This hidden parameter allows you to add a text prompt as metadata to the saved images. This can be useful for tracking the conditions or inputs used to generate the images.

extra_pnginfo

This hidden parameter allows you to add additional PNG metadata to the saved images. This can include any extra information you want to store with the image, such as settings or parameters used during image generation.

Save Image (URL) Output Parameters:

This node does not produce any direct output parameters. Its primary function is to save images to a specified URL.

Save Image (URL) Usage Tips:

  • Ensure that the URL provided is capable of handling POST requests and can process the incoming image data.
  • Use the filename_prefix parameter to organize your saved images effectively, especially when dealing with large batches.
  • Choose the appropriate data_format based on your needs; use "HTML_image" for web embedding and "Raw_data" for raw image storage.
  • Utilize the hidden prompt and extra_pnginfo parameters to store useful metadata with your images, aiding in future reference and organization.

Save Image (URL) Common Errors and Solutions:

requests.exceptions.RequestException

  • Explanation: This error occurs when there is an issue with the HTTP request, such as a network problem or an invalid URL.
  • Solution: Ensure that the URL is correct and that your network connection is stable. Verify that the server at the URL is configured to accept POST requests.

ValueError: Invalid image data

  • Explanation: This error occurs when the image data provided is not in the expected format.
  • Solution: Ensure that the images parameter contains valid image tensors. Check the format and data type of the images being passed to the node.

json.JSONDecodeError

  • Explanation: This error occurs when there is an issue with encoding the metadata to JSON format.
  • Solution: Verify that the prompt and extra_pnginfo parameters contain valid JSON-serializable data. Ensure that all metadata is correctly formatted.

OSError: Cannot save image

  • Explanation: This error occurs when there is an issue with saving the image to the buffer.
  • Solution: Ensure that the image data is valid and that there is sufficient memory to process and save the image. Check for any issues with the PIL library or the image data itself.

Save Image (URL) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI_NetDist
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.