ComfyUI  >  Nodes  >  Allor Plugin >  ImageContainer

ComfyUI Node: ImageContainer

Class Name

ImageContainer

Category
image/container
Author
Nourepide (Account age: 2900 days)
Extension
Allor Plugin
Latest Updated
5/22/2024
Github Stars
0.2K

How to Install Allor Plugin

Install this extension via the ComfyUI Manager by searching for  Allor Plugin
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Allor Plugin 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
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ImageContainer Description

Customizable image container for AI artists with specified dimensions and color properties, ideal for base image generation.

ImageContainer:

The ImageContainer node is designed to create a customizable image container with specified dimensions and color properties. This node is particularly useful for AI artists who need to generate a base image with specific width, height, and color attributes, which can then be used as a canvas for further image processing or compositing tasks. By allowing you to define the size and color (including transparency) of the container, this node provides a flexible foundation for various creative workflows, ensuring that the generated image meets your exact specifications.

ImageContainer Input Parameters:

width

The width parameter specifies the width of the image container in pixels. It determines how wide the resulting image will be. The minimum value is 1, and the default value is 512. Adjusting this parameter allows you to control the horizontal size of your image container.

height

The height parameter specifies the height of the image container in pixels. It determines how tall the resulting image will be. The minimum value is 1, and the default value is 512. Adjusting this parameter allows you to control the vertical size of your image container.

red

The red parameter sets the red component of the background color for the image container. It ranges from 0 to 255, with a default value of 255. This parameter allows you to adjust the intensity of the red color in the background.

green

The green parameter sets the green component of the background color for the image container. It ranges from 0 to 255, with a default value of 255. This parameter allows you to adjust the intensity of the green color in the background.

blue

The blue parameter sets the blue component of the background color for the image container. It ranges from 0 to 255, with a default value of 255. This parameter allows you to adjust the intensity of the blue color in the background.

alpha

The alpha parameter controls the transparency of the background color for the image container. It ranges from 0.0 (completely transparent) to 1.0 (completely opaque), with a default value of 0.0. This parameter allows you to set the level of transparency for the background color.

ImageContainer Output Parameters:

IMAGE

The IMAGE output parameter provides the generated image container as a tensor. This tensor represents the image with the specified width, height, and color properties, and can be used as a base for further image processing or compositing tasks. The output is a single image tensor that can be easily integrated into your creative workflow.

ImageContainer Usage Tips:

  • To create a fully opaque image container with a specific color, set the alpha parameter to 1.0 and adjust the red, green, and blue parameters to your desired color values.
  • If you need a transparent background for your image container, set the alpha parameter to 0.0. This is useful for overlaying the container on other images without obscuring them.
  • Experiment with different width and height values to create image containers of various sizes, suitable for different aspects of your projects.

ImageContainer Common Errors and Solutions:

ValueError: Container can't be smaller than max width or height of images.

  • Explanation: This error occurs when the specified container dimensions are smaller than the dimensions of the images being processed.
  • Solution: Ensure that the width and height parameters are set to values that are equal to or larger than the dimensions of the images you intend to use within the container.

ValueError: Invalid container size type.

  • Explanation: This error occurs when an invalid container_size_type is provided.
  • Solution: Make sure to use a valid container_size_type such as "sum", "sum_width", or "sum_height" when configuring the node.

RuntimeError: Expected tensor for 'images' input.

  • Explanation: This error occurs when the input images are not provided as tensors.
  • Solution: Ensure that the input images are correctly formatted as tensors before passing them to the node.

ImageContainer Related Nodes

Go back to the extension to check out more related nodes.
Allor Plugin
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.