Nodes/ComfyUI-ZML-Image/ZML_导出图像 (子工作流)
ComfyUI Node

ZML_导出图像 (子工作流)

Mark an image as a subflow output — and nothing else

By zml-w·Created about a year ago·Updated 2 months ago· 218
ZML_导出图像 (子工作流)
  • 图像

    ZML_SubflowExportImage is the IMAGE-flavored version of the pack's subflow export marker. You feed it an image and its entire job is to not do anything with it - the backend is literally return {}. What it does do is tell ComfyUI, and anyone reading the graph, that this image is an output boundary: the point where data leaves the subflow.

    This is the sibling of ZML_SubflowExportAny (the any-type version) and pairs with ZML_SubflowLoadImage on the input side. All three live in the 子工作流 category, which the pack author added to support reusable, parallel-friendly workflow chunks - his stated goal was working around ComfyUI's single-threaded execution by moving simple logic and API work into separate subflows. To build those subflows you need explicit in/out boundaries, and that's the niche these nodes fill.

    Inputs and outputs

    • 图像 (required, IMAGE) - the image to hand out of the subflow. No outputs, and since it's an output node it always runs, so the exported image is always the freshest one.

    The honest picture

    On a flat graph this node does nothing for you - it consumes an image and produces nothing, which looks broken until you remember its purpose is structural, not computational. Inside a subgraph it's the clean way to say "this is an output port." If you've ever built a ComfyUI subgraph and fought with which nodes are supposed to be the I/O, this is the pack's answer for images: put this at the exit, put the load node at the entrance, done.

    Two practical notes. First, it's typed IMAGE specifically, so if your subflow exits with a latent or a mask you'll want the any-type export node instead (or convert). Second, this whole subflow trio is a newer, less battle-tested corner of the pack - the author has said nodes he uses less himself may carry bugs, so if you're building production workflows on subgraphs, test the pattern before trusting it at scale.

    Install

    ComfyUI Manager → search "ComfyUI-ZML-Image", or cd ComfyUI/custom_nodes && git clone https://github.com/zml-w/ComfyUI-ZML-Image, restart. Displayed as ZML_导出图像 (子工作流) in the Chinese-default UI; the English patch translates it. No models or extra dependencies.

    Categoryimage/ZML_图像/子工作流

    Inputs (1)

    NameTypeDefaultDescription
    图像IMAGE

    Outputs (0)

    No outputs