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 > ComfyUI-LiTo > LiTo Preprocess Image

ComfyUI Node: LiTo Preprocess Image

Class Name

LiToPreprocess

Category
LiTo
Author
PozzettiAndrea (Account age: 2388days)
Extension
ComfyUI-LiTo
Latest Updated
2026-05-21
Github Stars
0.04K

How to Install ComfyUI-LiTo

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

LiTo Preprocess Image Description

Prepare images for LiTo 3D generation by enhancing quality, removing background, cropping, and resizing for accurate modeling.

LiTo Preprocess Image:

The LiToPreprocess node is designed to prepare images for the LiTo image-to-3D generation process. Its primary function is to enhance the quality and usability of images by performing background removal, cropping, and resizing. This node is particularly beneficial for ensuring that the main object in an image is centered and appropriately sized, which is crucial for accurate 3D modeling. By resizing images to a standard resolution of 518x518 pixels, it ensures consistency across different inputs, making it easier to integrate with other nodes in the ComfyUI framework. The node outputs both an image and a mask, allowing for flexible downstream processing and integration with other nodes, such as LiToImageTo3D, without the need for additional preprocessing steps.

LiTo Preprocess Image Input Parameters:

image

The image parameter is the primary input for the LiToPreprocess node. It represents the image that you want to preprocess for 3D generation. This parameter is crucial as it determines the initial content that will undergo background removal, cropping, and resizing. The quality and characteristics of the input image can significantly impact the effectiveness of the preprocessing steps and the final 3D output.

background_removal

This parameter controls whether the background of the input image should be removed. Enabling background removal helps in isolating the main object from its surroundings, which is essential for accurate 3D modeling. This option is particularly useful when the background is cluttered or when the focus should solely be on the object of interest.

crop_and_center

The crop_and_center parameter dictates whether the node should crop the image to center the main object. This step ensures that the object is positioned optimally within the frame, which is important for consistent 3D rendering. By centering the object, the node helps in maintaining focus and balance in the resulting image.

LiTo Preprocess Image Output Parameters:

IMAGE

The IMAGE output is the processed version of the input image, with background removal, cropping, and resizing applied as specified by the input parameters. This output is ready for further processing or direct use in 3D generation tasks. It ensures that the image is in a standardized format, facilitating seamless integration with other nodes.

MASK

The MASK output provides a binary mask of the processed image, indicating which parts of the image are considered foreground (i.e., the main object) and which are background. This mask is useful for tasks that require precise object isolation, such as compositing or further image manipulation. It complements the IMAGE output by providing additional information about the object's location and boundaries.

LiTo Preprocess Image Usage Tips:

  • Ensure that the input image is of high quality and clearly depicts the object of interest to maximize the effectiveness of the preprocessing steps.
  • Use the background_removal option when the background is distracting or irrelevant to the 3D modeling task, as this can significantly improve the focus on the main object.
  • Enable crop_and_center to ensure that the object is optimally positioned within the frame, which is crucial for achieving balanced and accurate 3D representations.

LiTo Preprocess Image Common Errors and Solutions:

Image not found

  • Explanation: This error occurs when the specified input image cannot be located or accessed by the node.
  • Solution: Verify that the image path is correct and that the file is accessible. Ensure that the image is in a supported format and located in a directory that the node can access.

Background removal failed

  • Explanation: This error indicates that the node was unable to successfully remove the background from the input image.
  • Solution: Check the quality and contrast of the input image. If the background is too similar to the object, consider manually editing the image to enhance contrast or using a different image with a clearer distinction between the object and background.

LiTo Preprocess Image Related Nodes

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

LiTo Preprocess Image