Skip to main content

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]

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

comfyui_ib_customnodes-0.2.2.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

comfyui_ib_customnodes-0.2.2-py2.py3-none-any.whl (8.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file comfyui_ib_customnodes-0.2.2.tar.gz.

File metadata

File hashes

Hashes for comfyui_ib_customnodes-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ed1e36a7c99488135d647384d19785ce8681baae323c1f0bb0a25436b3f6cd32
MD5 71b7128eb14044ff4ce9210a65e44b7a
BLAKE2b-256 ee7a5902ac05fad6d7d67915b48f9736d9d592074c91e45ad6a883632508c32a

See more details on using hashes here.

File details

Details for the file comfyui_ib_customnodes-0.2.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for comfyui_ib_customnodes-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 986713c6b5d0ced95eb7a671aae939bb0ab1f5899da016a49a7c33e13131a082
MD5 a56b06b0bd9248ba138d3656287ee979
BLAKE2b-256 0a0aa3086721f4f036e829bd49339fc9c30f790e054fc5fb2bbd8b33520f3792

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page