Nodes/ComfyUI_SZtools/山竹TIF路径保存
ComfyUI Node

山竹TIF路径保存

16-bit grayscale TIFF with a custom path and dimensions in the name

By Rocky-Lee-001·Created about a year ago·Updated about a year ago· 2
山竹TIF路径保存
  • images
    文件名前缀ComfyUI
    保存路径

    ShanzhuLujingTIFSaver is the path-controllable, grayscale version of the pack's TIFF saver. "Lujing" is 路径, meaning "path" - the whole point of this node versus the plain ShanzhuTifSaver is that you get to say where the files go, and you get single-channel grayscale 16-bit TIFFs out, with the image dimensions baked into every filename.

    Inputs are images, 文件名前缀 (filename prefix, default "ComfyUI"), and 保存路径 (save path). A blank save path falls back to ComfyUI's output folder; a real path gets os.makedirs'd into existence, so you can point it at a scratch folder and it'll create it on the spot. The mechanism: each frame is scaled to 65535, and if it's RGB it's converted to grayscale with the classic ITU-R weights (0.2989 × red + 0.5870 × green + 0.1140 × blue), clipped, and saved as an unsigned 16-bit TIFF named {prefix}_{counter:05}_{W}x{H}_.tif. The _WxH suffix comes from each image's actual size, which makes mixed-resolution batches easy to audit at a glance. It also refuses to overwrite: existing files bump the counter until the name is free.

    The honest use case is a grayscale 16-bit master. If your pipeline produces a depth map, a single-channel mask, or any luminance-only result that you want to carry into another tool as lossless data, this is the right saver. Sixteen-bit grayscale is also where banding-averse workflows live - 65,536 levels of gray means smooth gradients don't posterize. The output is an output-node-style save: no wires out, paths shown in the UI.

    Two things to flag. First, the widget names really are Chinese - on an English ComfyUI install you'll see 文件名前缀 and 保存路径 as the input labels. It works fine; it's just this pack's Chinese-first design showing. Second, the grayscale conversion is a straight weighted average of the channels, not a perceptual LUT - perfectly fine for depth maps and masks, but if you expected a pleasing black-and-white photo conversion, this isn't that; run a proper desaturation node first if aesthetics matter.

    Install is the shared pack story: ComfyUI Manager search "ComfyUI_SZtools", or git clone https://github.com/Rocky-Lee-001/ComfyUI_SZtools into custom_nodes/, restart. imageio and tifffile are the only non-standard dependencies, and they're light.

    Category山竹TIF路径保存

    Inputs (3)

    NameTypeDefaultDescription
    imagesIMAGE
    文件名前缀STRINGComfyUI
    保存路径STRING

    Outputs (0)

    No outputs