Nodes/Banana Gemini Image Generator/心宝❤图片加载
ComfyUI Node

心宝❤图片加载

The image loader that ships empty so your workflow doesn't carry a picture

By 98624017·Created 9 months ago·Updated 5 months ago· 2
心宝❤图片加载
    • IMAGE
    • MASK
    image

    Every ComfyUI workflow has the same packaging problem: the image loader's dropdown defaults to a baked-in image, so when you share a workflow, the first thing the receiver has to do is figure out which picture is hiding in it and swap it. This node solves that with a trick: the default selection isn't a real image at all - it's a placeholder literally named ⚠️_点击这里清空图片_⚠️.png, which reads as "click here to clear the image."

    The display name 图片加载 ("image load") and the Clean suffix tell the story: it's the pack's version of the standard LoadImage, tuned so workflows can be shared without dragging a demo picture along. The placeholder is the "no image selected" state - pick it and the node holds an empty slot until you load your own.

    The one input and two outputs

    • image - the file dropdown. The choices shown in the schema are the placeholder ⚠️_点击这里清空图片_⚠️.png and example.png (a sample). Load any image in ComfyUI's input folder and it joins the list; pick the placeholder to clear.

    Outputs are the same pair the core LoadImage gives you:

    • IMAGE - the loaded image as a tensor.
    • MASK - the image's alpha channel as a mask. Most images have no transparency, so this is an all-white (fully opaque) mask; it's there for when the loaded PNG does carry alpha. Wire it where a mask is expected and ignore it otherwise.

    Why "clean" is the point

    The Clean matters more than it looks. When the author's 一键详情页 workflows get shared, they want the receiver's first run to start from "pick your product," not from a stale sample that makes the pipeline look broken when it's actually just running on the demo image. A placeholder default is a small UX decision with real payoff: the empty state is explicit instead of a surprise.

    It's also just a normal loader, which is worth stating plainly - no resizing, no EXIF stripping, no metadata games. The KB's image-io-metadata doc is where the exotic versions of this live; this node is the boring, predictable one, which for a shared-workflow default is a feature.

    Installing

    Part of comfyui-banana-li-linux:

    cd ComfyUI/custom_nodes
    git clone https://github.com/98624017/comfyui-banana-li-linux
    

    Restart ComfyUI. No dependencies beyond Pillow from the pack's requirements. If you share workflows and have ever received one with a mysterious default image, this node is the fix the author built for that exact annoyance - worth grabbing even if you never touch the rest of the pack.

    CategoryXinbao/Image

    Inputs (1)

    NameTypeDefaultDescription
    imageCOMBO2 options: ⛔_点击这里清空图片_⛔.png, example.png

    Outputs (2)

    NameTypeDescription
    IMAGEIMAGE
    MASKMASK