https://github.com/jerrywap/ComfyUI_LoadImageFromHttpURL
https://github.com/jerrywap/ComfyUI_LoadImageFromHttpURL
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jerrywap/ComfyUI_LoadImageFromHttpURL
- Owner: jerrywap
- License: mit
- Created: 2025-04-09T18:19:58.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-04-09T19:31:50.000Z (3 months ago)
- Last Synced: 2025-04-09T19:42:01.303Z (3 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-comfyui - **ComfyUI_LoadImageFromHttpURL** - based workflows. (All Workflows Sorted by GitHub Stars)
README
# ComfyUI_LoadImageFromHttpURL
### ๐งฉ Load Image from HTTP URL โ Custom Node for ComfyUI
By @jerrywap
[](https://github.com/jerrywap/ComfyUI_LoadImageFromHttpURL/stargazers)
---
## ๐ Description
**Load Image from HTTP URL** is a lightweight but powerful custom node for ComfyUI that allows you to **fetch images directly from a remote URL** and use them in your workflows without manual uploads or preprocessing.
Instead of uploading an image file manually, you can pass a publicly accessible image URL โ and the node will handle downloading, decoding, and converting it into an image tensor compatible with ComfyUI.
This is especially useful when you're:
- โ๏ธ Building **ComfyUI as an API service**
- ๐ก Receiving image URLs from client apps, webhooks, or JSON payloads
- ๐ Working with **dynamic content** from external APIs or cloud storageBy skipping the file transfer step, you reduce friction, improve performance, and make your workflows more automation-friendly.
---
## โจ Features
- ๐ก Downloads an image from an HTTP/HTTPS URL
- ๐ท Converts it to a proper image tensor (`IMAGE`) for ComfyUI
- ๐งผ Includes graceful fallback (returns a blank black image on error)
- โ Supports JPEG, PNG, WebP, etc. (any format supported by Pillow)---
## ๐งฉ Node Info
- **Name:** `Load Image from HTTP URL`
- **Class:** `LoadImageFromHttpURL`
- **Category:** `jerrywap/loaders`
- **Input:**
- `image_url` (STRING): Image address (e.g. https://placehold.co/400)
- **Output:**
- `IMAGE`: ComfyUI image tensor---
## ๐ง Installation
1. Clone this repo into your `ComfyUI/custom_nodes` directory:
```
cd /workspace/ComfyUI/custom_nodes
git clone https://github.com/yourusername/ComfyUI_LoadImageFromHttpURL.git
cd ComfyUI_LoadImageFromHttpURL
```2. Install dependencies:
This node requires the following Python packages:
- `requests`
- `Pillow`
- `numpy`
- `torch`If you're not sure whether you have them installed, you can simply run:
```
bash install.sh
```Or, alternatively:
```
pip install -r requirements.txt
```> โ **Note:** If you already have these packages installed (e.g., through your ComfyUI or Python environment), you **do not need to run** the installation steps.
3. Restart ComfyUI or click the **Reload Custom Nodes** button in the UI (if available).
---
## ๐ค Example Usage
Use this node to pull images from:
- Web apps or APIs
- Unsplash/image hosting services
- Placeholder toolsExample input:
```
https://placehold.co/400
```---
## ๐งโ๐ป Contributing
Contributions welcome! Submit a PR or open an issue if youโd like to improve this.
---
## ๐ License
MIT License โ free to use, modify, and distribute.
[](https://github.com/jerrywap/ComfyUI_LoadImageFromHttpURL/stargazers)