ComfyUI > Nodes > Comfy_Felsirnodes > Focal Rescale

ComfyUI Node: Focal Rescale

Class Name

Focal Rescale

Category
Felsir
Author
Felsir (Account age: 3861days)
Extension
Comfy_Felsirnodes
Latest Updated
2026-03-10
Github Stars
0.02K

How to Install Comfy_Felsirnodes

Install this extension via the ComfyUI Manager by searching for Comfy_Felsirnodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfy_Felsirnodes 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

Focal Rescale Description

Resizes images while preserving a focal point, ensuring key areas remain prominent.

Focal Rescale:

The Focal Rescale node is designed to resize images while maintaining a specific focal point, allowing you to emphasize particular areas of an image during the scaling process. This node is particularly useful for AI artists who want to ensure that a specific part of an image remains prominent after resizing. By focusing on a designated point, the node adjusts the image dimensions to fit the desired width and height, ensuring that the focal area is centered and preserved. This capability is essential for maintaining the artistic intent and composition of an image, especially when adapting it to different formats or sizes.

Focal Rescale Input Parameters:

image_in

This parameter accepts the input image that you wish to rescale. It is crucial as it serves as the base for the entire rescaling process.

width

This integer parameter specifies the target width for the rescaled image. It ranges from 16 to 2048, with a default value of 512. Adjusting this value changes the horizontal dimension of the output image.

height

This integer parameter defines the target height for the rescaled image. Like the width, it ranges from 16 to 2048, with a default value of 512. Modifying this value alters the vertical dimension of the output image.

focalx

This integer parameter determines the horizontal focal point of the image, with a default value of 256. It influences which part of the image remains centered during the rescaling process.

focaly

This integer parameter sets the vertical focal point of the image, also with a default value of 256. It affects the vertical centering of the focal area during resizing.

Focal Rescale Output Parameters:

IMAGE

The output image that has been rescaled according to the specified width, height, and focal points. This image retains the focal area as the central point of interest.

rect_left

This integer represents the left coordinate of the rectangle that defines the focal area within the rescaled image. It helps in understanding the horizontal positioning of the focal area.

rect_top

This integer indicates the top coordinate of the rectangle that defines the focal area within the rescaled image. It provides insight into the vertical positioning of the focal area.

rect_width

This integer specifies the width of the rectangle that encompasses the focal area. It is crucial for understanding the horizontal extent of the focal area within the image.

rect_height

This integer denotes the height of the rectangle that encompasses the focal area. It is essential for understanding the vertical extent of the focal area within the image.

Focal Rescale Usage Tips:

  • To maintain the focus on a specific area of your image, adjust the focalx and focaly parameters to align with the desired focal point before resizing.
  • Use the width and height parameters to set the target dimensions of your image, ensuring that the focal area remains prominent and well-positioned.

Focal Rescale Common Errors and Solutions:

Image size mismatch

  • Explanation: This error occurs when the input image dimensions do not align with the specified width and height parameters.
  • Solution: Ensure that the input image is compatible with the target dimensions or adjust the width and height parameters to better fit the input image.

Focal point out of bounds

  • Explanation: This error arises when the specified focal point (focalx or focaly) is outside the bounds of the image.
  • Solution: Adjust the focalx and focaly parameters to ensure they fall within the image dimensions, ensuring the focal point is correctly centered.

Focal Rescale Related Nodes

Go back to the extension to check out more related nodes.
Comfy_Felsirnodes
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.