Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance images by adding customizable backgrounds seamlessly.
The AddBackgroundNode is designed to enhance your images by adding a background to transparent images. This node is particularly useful for creating ID photos, profile pictures, or any other images where a solid or gradient background is desired. By providing various background rendering modes, such as pure color, up-down gradient, and center gradient, this node allows you to customize the look and feel of your images to match your specific needs. The main goal of this node is to seamlessly integrate a background into your transparent images, ensuring a professional and polished final result.
This parameter specifies the size of the output image. It allows you to choose from a predefined list of sizes, ensuring that your image meets specific requirements or standards. The available options are provided in the size_list_CN
dictionary.
This parameter defines the background color of the image. You can select from a list of predefined colors, which are specified in the color_list_CN
dictionary. This allows you to match the background color to your desired aesthetic or branding.
This parameter determines the rendering mode of the background. You can choose from three options: "纯色" (pure color), "上下渐变" (up-down gradient), and "中心渐变" (center gradient). Each mode provides a different visual effect, allowing you to customize the background to your liking.
This parameter sets the kilobyte size of the output image. It is an integer value with a default of 300. This allows you to control the file size of the output image, which can be important for storage or upload constraints.
This parameter specifies the dots per inch (DPI) of the output image. It is an integer value with a default of 300. DPI is a measure of the image's resolution, and setting it appropriately ensures that your image is of high quality and suitable for printing or other high-resolution applications.
This output parameter returns a dictionary containing the parameters used for generating the background. It includes the size, background color, rendering mode, kilobyte size, and DPI. This output is useful for verifying the settings used and for further processing or documentation purposes.
kb
parameter to control the file size of the output image, especially if you need to meet specific upload or storage requirements.dpi
parameter to 300 for high-quality prints or to a lower value for web use to optimize file size.color_list_CN
dictionary. Verify the input parameters to match the available options.© Copyright 2024 RunComfy. All Rights Reserved.