山竹TIF保存
16-bit TIFF saver that stays in ComfyUI's output folder
- images
ShanzhuTifSaver is the well-behaved member of the pack's TIFF family: it takes an IMAGE batch and a filename_prefix, and saves every frame as a 16-bit unsigned TIFF in ComfyUI's normal output directory, with the standard auto-incrementing counter. No grayscale conversion, no custom path, no surprises - this is the one that does what you'd expect a save node to do.
Mechanically it uses ComfyUI's own folder_paths.get_save_image_path(), so the files land in ComfyUI/output/ (or whatever you've configured as the output dir) named {prefix}_{counter:05}_.tif. Each image tensor is scaled by 65535, clipped to 0–65535, cast to unsigned 16-bit, and written with imageio. Color is kept as-is - if you want a single-channel grayscale depth-style TIFF, that's the pack's other saver (ShanzhuLujingTIFSaver); this one preserves RGB. It's an output node, so nothing comes out the other side; the UI shows the saved file list just like the core Save Image node.
Why 16-bit TIFF at all? The audience here is post-production. Sixteen bits per channel means smooth gradients carry 65,536 levels instead of 256, which is the difference between a clean sky and one that shows visible banding the moment you lift the levels in Photoshop or DaVinci. If you're handing ComfyUI output to an editor for real work, saving a 16-bit master and grading on that is a genuinely good habit. If your output's only ever going to socials, it's wasted effort - you'll crush it back to 8-bit anyway.
The inputs are just images and filename_prefix (default "ComfyUI"). Gotchas are minimal: the {counter:05} comes from ComfyUI's path helper, which increments rather than overwriting existing files in the same folder - a small upgrade over some of the pack's other savers, and a reason to keep the default prefix if you're doing multiple passes.
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/, then restart. imageio is one of the pack's few real dependencies, and this node (plus its path variant) is why it's in requirements.txt. The rest - torch, numpy, Pillow - ship with ComfyUI already.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| filename_prefix | STRING | ComfyUI | — |
Outputs (0)
No outputs