Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > NKD Klein Tools > 😺NKD Klein Reference Fit

ComfyUI Node: 😺NKD Klein Reference Fit

Class Name

NKDKleinReferenceFit

Category
😺NKD Nodes/Klein
Author
nekodificador (Account age: 2573days)
Extension
NKD Klein Tools
Latest Updated
2026-06-17
Github Stars
0.06K

How to Install NKD Klein Tools

Install this extension via the ComfyUI Manager by searching for NKD Klein Tools
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter NKD Klein Tools in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

😺NKD Klein Reference Fit Description

Experimental tool for scaling reference image to fit within specified mask region on canvas-sized image, ensuring full positioning integrity.

😺NKD Klein Reference Fit:

The NKDKleinReferenceFit node is an experimental tool designed to scale a reference image to fit within a specified mask region on a canvas-sized image. This node ensures that the entire reference image is positioned within the masked area, rather than just the portion that overlaps with it. This functionality is particularly useful when you want to maintain the integrity of the reference image within a specific zone on your canvas. By connecting the reference image to this node, along with your mask, and then linking it to the reference slot of Presampling, you can achieve precise placement of the reference image. It is important to use the same mask in the Reference Region node to ensure consistency and accuracy in the placement.

😺NKD Klein Reference Fit Input Parameters:

reference_image

The reference image parameter is the image that you want to scale and fit within the masked region on the canvas. This image serves as the source that will be adjusted to fit entirely within the specified mask area, ensuring that the whole image is visible within the designated zone.

mask

The mask parameter defines the specific region on the canvas where the reference image should be placed. It acts as a guide for scaling and positioning the reference image, ensuring that the entire image fits within this masked area. If the mask is empty or not properly defined, the node will not perform any operation.

😺NKD Klein Reference Fit Output Parameters:

fitted_image

The fitted image is the output that results from scaling and positioning the reference image within the specified mask region on the canvas. This output ensures that the entire reference image is visible within the designated area, maintaining its integrity and intended placement.

😺NKD Klein Reference Fit Usage Tips:

  • Ensure that the mask accurately defines the region where you want the reference image to be placed to achieve the best results.
  • Use the same mask in the Reference Region node to maintain consistency and accuracy in the placement of the reference image.

😺NKD Klein Reference Fit Common Errors and Solutions:

Empty mask — node is a no-op

  • Explanation: This error occurs when the mask is either not provided or is empty, resulting in no operation being performed by the node.
  • Solution: Ensure that a valid mask is connected to the node, defining the region where the reference image should be placed.

😺NKD Klein Reference Fit Related Nodes

Go back to the extension to check out more related nodes.
NKD Klein Tools
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

😺NKD Klein Reference Fit