ComfyUI-PlagueKind-Nodes Tames Mask Drift for Flawless Inpainting

A digital composition symbolizing unified image and mask resizing with soft rounded corners divided vertically.

ComfyUI-PlagueKind-Nodes is a custom node for ComfyUI that unifies image and mask resizing in a single step. It offers multiple scaling modes, preserves aspect ratios, and ensures masks stay perfectly aligned with images. The node also forces both width and height to be divisible by 32, which is essential for LTX 2.3 and SDXL latent models.

PlagueKind built this node to solve the common problem of mask drift and resizing inconsistencies that often plague inpainting workflows. By merging the functionality of several separate resize nodes, it eliminates the need to juggle Image Resize, Image Resize V2, and mask resize operations. The result is a lightweight, deterministic tool that prevents misalignment during compositing.

Unified resizing for image and mask alignment

Key Features
  • Five scaling modes: dimensions, multiplier, longer side
  • Optional aspect-ratio preservation and center crop
  • Force both sides divisible by 32 (LTX 2.3)
  • Image and mask stay perfectly aligned, no drift
  • Stable tensor-based resizing with no PIL artifacts
  • Replaces Image Resize, V2, and mask resize nodes

ComfyUI users working with LTX 2.3 or SDXL inpainting pipelines will find this node immediately useful. It dramatically simplifies setups that previously required several separate resize nodes. Anyone who struggles with mask alignment drift or needs consistent, predictable resizing across images and masks can benefit from this tool.

Why this node was built

PlagueKind was motivated by persistent issues: masks shifting after resizing, one side divisible by 32 while the other was not, and the need to chain up to three different resize nodes. The node stays minimal—it’s a simplification tool, not a feature-packed resizer. With no external dependencies, it installs easily by cloning the repository.

"In real workflows (especially LTX 2.3 and SDXL pipelines), I kept running into: one side divisible by 32, the other not masks slightly shifting after resize needing 2–3 nodes just to do a 'simple resize correctly'." — Source: Reddit