ComfyUI Node

Load Any File

Loads any text or binary file and provides the file content as string or base64 string. Additionally tries to load it as a `IMAGE`. And also tries to load any metadata. `filepath` supports ComfyUI's annotated filepaths `[input]` `[output]` or `[temp]`. `filepath` also support glob-pattern expansions `subdir/**/*.png`. Internally uses python's [glob.iglob](https://docs.python.org/3/library/glob.html#glob.iglob). `metadata` calls `exiftool`, if it's installed and available at `PATH`, otherwise uses `PIL.Image.info` as a fallback. For security reason only the following directories are supported: `[input] [output] [temp]`. For performance reasons the number of files are limited to: 1024.

By geroldmeisinger·Created 9 months ago·Updated 6 months ago· 169
Load Any File
    • content
    • image
    • mask
    • metadata
    annotated_filepath
    CategoryUtility

    Inputs (1)

    NameTypeDefaultDescription
    annotated_filepathSTRINGBase directory defaults to `[input]` user-directory. Supports glob-pattern expansion `subdir/**/*.png`. Use suffix ` [input]` ` [output]` or ` [temp]` (mind the leading whitespace!) to specify a different ComfyUI user-directory.

    Outputs (4)

    NameTypeDescription
    contentSTRINGFile content for text files, base64 for binary files.
    imageIMAGEImage batch tensor.
    maskMASKMask batch tensor.
    metadataSTRINGExif data from ExifTool. Requires `exiftool` command to be available in `PATH`.