Nodes Browser

ComfyDeploy: How comfyui-fofr-toolkit works in ComfyUI?

What is comfyui-fofr-toolkit?

Nodes:Incrementer, Width and height from aspect ratio, Width and height for scaling image to ideal resolutio. A simple set of tooling nodes.

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for comfyui-fofr-toolkit and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

🪴 comfyui-fofr-toolkit

Simple building block nodes for ComfyUI

Nodes

Incrementer

A simple counter with a max value.

Inputs:

  • current_index (required): An integer representing the current index. Default is 0.
  • max (optional): The maximum value before the counter resets. Default is 10.

Width and height from aspect ratio

Calculates width and height based on a given aspect ratio and ideal target size.

Inputs:

  • aspect_ratio (required): Choose from predefined aspect ratios (eg "1:1", "16:9", "21:9").
  • target_size (required): The target size
  • multiple_of (optional): Ensure the output dimensions are multiples of this value (default 8, range 1-1024).

Width and height for scaling image to ideal resolution

Calculates width and height for scaling an input image to a target resolution (for example 1024x1024 is a common ideal size) while maintaining its aspect ratio.

For example, an image that is 3:2 with a target of 1024x1024 pixels will be scaled to 1256x840 (rather than the less ideal 1024x682).

Inputs:

  • image (required): The input image to be scaled.
  • target_size (required): The target size for scaling. Default is 1024, range 64-8192.
  • multiple_of (optional): Ensure the output dimensions are multiples of this value (default 8, range 1-1024).