Visit ComfyUI Online for ready-to-use ComfyUI environment
Fetch and save images from URLs for AI artists, with tensor conversion and custom saving options.
The 🖼️ Download Image from URL node is designed to fetch an image from a specified URL and optionally save it to a local directory. This node is particularly useful for AI artists who need to quickly and efficiently download images from the web for use in their projects. By providing a URL, the node retrieves the image, converts it to a tensor format suitable for further processing, and returns the image along with its dimensions. Additionally, it offers the flexibility to save the downloaded image with a custom filename and in a specified directory, ensuring that your workflow remains organized and efficient.
This parameter specifies the URL of the image you want to download. It is a required field and must be a valid URL pointing to an image file. The node supports common image formats such as .jpg
, .jpeg
, .png
, and .webp
. If the URL is not provided or is invalid, the node will not be able to fetch the image.
This optional parameter allows you to specify a custom filename for the downloaded image. If provided, the image will be saved with this name in the specified directory. If the custom filename does not include an extension, the node will append the appropriate extension based on the image format. If not provided, the node will use the original filename from the URL.
This optional parameter specifies the directory where the downloaded image should be saved. If provided, the node will save the image in this directory. If the directory does not exist, the node will create it. If not provided, the image will not be saved to disk, but it will still be processed and returned.
This output parameter returns the downloaded image in tensor format. The tensor format is suitable for further processing in AI and machine learning workflows. The image is converted to RGB format to ensure compatibility with various processing techniques.
This output parameter returns the width of the downloaded image in pixels. It provides useful information about the image dimensions, which can be important for subsequent processing steps.
This output parameter returns the height of the downloaded image in pixels. Similar to the width parameter, it provides essential information about the image dimensions for further processing.
image_url
parameter is a valid URL pointing to an image file to avoid errors during the download process.save_file_name_override
parameter to organize your downloaded images with meaningful filenames, especially when downloading multiple images.save_path
parameter to save the downloaded images in a specific directory, which helps in keeping your project files organized.image_url
parameter is not provided.image_url
parameter.<file_extension>
.jpg
, .jpeg
, .png
, or .webp
.<status_code>
<exception_message>
© Copyright 2024 RunComfy. All Rights Reserved.