ComfyUI tip: paint inpaint masks as layered PNGs and reuse them across runs
Deftroyy · reddit · 2026-11-12
A Redditor shares a reproducible ComfyUI workflow: keep inpaint masks as layered drawings.
- Export the artwork as PNG; on the same canvas, paint regions to change in white on layers above a solid black background
- Use separate white layers for toggleable parts (sleeve, background detail); hide the artwork when exporting the mask PNG at identical dimensions
- In ComfyUI, load the artwork with Load Image, load the mask with Load Image (as Mask) choosing red (grayscale is identical across channels), and wire it into your inpaint workflow's mask input
- Keep the layered source file; toggle layers and re-export to compare mask shapes under the same seed and settings
The author also plugs PeerBrush, his free layered painting editor, noting the sample art is AI-generated and AI helped draft the tip.
More from coding & agent
- Together Compiler: agent-driven continual compilation for AI inference — togethercompute · 2026-11-12
- Kalshi partners with AnyAlpha to let AI agents trade prediction markets 24/7 — ycombinator · 2026-11-12
- Google solicits Kubernetes users to help shape Agent Substrate for Managed Agents — rakyll · 2026-11-12
- Building apps in the agent era: elegant abstractions still beat raw code generation — cnakazawa · 2026-11-12
- Grok agent autonomously browses, orders and pays for a book on an unfamiliar site — xkonjin · 2026-11-12
- Stop Managing Sandbox Fleets for Cloud Agents, Argues gakonst: Go Harness-First — andreisavu · 2026-11-12