Load Image From Path, PIL.Image
Project description
ComfyUI_Ib_CustomNodes
Load Image From Path
def LoadImageFromPath(
image: str = r'ComfyUI_00001_-assets\ComfyUI_00001_.png [output]'
) -> tuple[Image, Mask]
ComfyUI's built-in Load Image node can only load uploaded images, which produces duplicated files in the input directory and cannot reload the image when the source file is changed. Load Image From Path instead loads the image from the source path and does not have such problems.
One use of this node is to work with Photoshop's Quick Export to quickly perform img2img/inpaint on the edited image. Update: For working with Photoshop, comfyui-photoshop is more convenient and supports waiting for changes. See tutorial at r/comfyui.
The image path can be in the following format:
-
Absolute path:
D:\ComfyUI\output\ComfyUI_00001_-assets\ComfyUI_00001_.png -
Relative to the input directory:
ComfyUI_00001_-assets\ComfyUI_00001_.png [input] -
Relative to the output directory:
ComfyUI_00001_-assets\ComfyUI_00001_.png [output] -
Relative to the temp directory:
ComfyUI_00001_-assets\ComfyUI_00001_.png [temp]
Installation
Install via the Custom Nodes Manager in ComfyUI-Manager.
Usage Example
PIL.Image
def PILToImage(
images: PilImage
) -> Image
def PILToMask(
images: PilImage
) -> Image
def ImageToPIL(
images: Image
) -> PilImage
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file comfyui_ib_customnodes-0.2.3.tar.gz.
File metadata
- Download URL: comfyui_ib_customnodes-0.2.3.tar.gz
- Upload date:
- Size: 103.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52827aa1c00329accf242d2e54bde642d344911841927c74c4a95474fdd0c90e
|
|
| MD5 |
f4e14855b84660230f545c1bc01e71ec
|
|
| BLAKE2b-256 |
bf54229e929a6b68800fef083bcfcf62d32771ff406c0e3753cdd3561b0df4c1
|
File details
Details for the file comfyui_ib_customnodes-0.2.3-py2.py3-none-any.whl.
File metadata
- Download URL: comfyui_ib_customnodes-0.2.3-py2.py3-none-any.whl
- Upload date:
- Size: 101.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b07597426ec895d98a8e4a5865857b69d6c64238da989431125e921ff564e8a9
|
|
| MD5 |
cd8549b69bd76c4c9b4049f8902f372f
|
|
| BLAKE2b-256 |
7e1b91137a9be7e77109ceb717ac9d9d82b1484a8bc3dddc40be29893c608035
|