ComfyUIΒ Β >Β Β NodesΒ Β >Β Β Jovimetrix Composition Nodes >Β Β PIXEL SWAP (JOV) πŸ”ƒ

ComfyUI Node: PIXEL SWAP (JOV) πŸ”ƒ

Class Name

PIXEL SWAP (JOV) πŸ”ƒ

Category
JOVIMETRIX πŸ”ΊπŸŸ©πŸ”΅/COMPOSE
Author
amorano (Account age: 5221 days)
Extension
Jovimetrix Composition Nodes
Latest Updated
7/3/2024
Github Stars
0.2K

How to Install Jovimetrix Composition Nodes

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

PIXEL SWAP (JOV) πŸ”ƒ Description

Swap pixel values between images using specified patterns for dynamic color channel rearrangement and manipulation, enabling diverse visual transformations for AI artists.

PIXEL SWAP (JOV) πŸ”ƒ:

The PIXEL SWAP (JOV) πŸ”ƒ node is designed to swap pixel values between two images based on specified swizzle patterns and values. This node allows you to dynamically rearrange and manipulate the color channels of two input images, providing a high degree of flexibility in image processing and creative effects. By specifying which channels to swap and the values to use, you can achieve a variety of visual transformations, making this node a powerful tool for AI artists looking to experiment with image composition and color manipulation.

PIXEL SWAP (JOV) πŸ”ƒ Input Parameters:

PIXEL_A

This parameter accepts the first input image. It is used as one of the sources for the pixel swapping operation. The image should be in a format that supports multiple color channels, such as BGRA. If not provided, a solid channel image will be used by default.

PIXEL_B

This parameter accepts the second input image. It is used as the other source for the pixel swapping operation. Similar to PIXEL_A, the image should support multiple color channels. If not provided, a solid channel image will be used by default.

SWAP_R

This parameter specifies the swizzle pattern for the red channel. It determines which channel from the input images will be used for the red channel in the output image. Options include RED_A, GREEN_A, BLUE_A, ALPHA_A, RED_B, GREEN_B, BLUE_B, ALPHA_B, and CONSTANT. The default value is RED_A.

R

This parameter sets the constant value for the red channel if SWAP_R is set to CONSTANT. It ranges from 0 to 255, with a default value of 0.

SWAP_G

This parameter specifies the swizzle pattern for the green channel. It determines which channel from the input images will be used for the green channel in the output image. Options include RED_A, GREEN_A, BLUE_A, ALPHA_A, RED_B, GREEN_B, BLUE_B, ALPHA_B, and CONSTANT. The default value is GREEN_A.

G

This parameter sets the constant value for the green channel if SWAP_G is set to CONSTANT. It ranges from 0 to 255, with a default value of 0.

SWAP_B

This parameter specifies the swizzle pattern for the blue channel. It determines which channel from the input images will be used for the blue channel in the output image. Options include RED_A, GREEN_A, BLUE_A, ALPHA_A, RED_B, GREEN_B, BLUE_B, ALPHA_B, and CONSTANT. The default value is BLUE_A.

B

This parameter sets the constant value for the blue channel if SWAP_B is set to CONSTANT. It ranges from 0 to 255, with a default value of 0.

SWAP_A

This parameter specifies the swizzle pattern for the alpha channel. It determines which channel from the input images will be used for the alpha channel in the output image. Options include RED_A, GREEN_A, BLUE_A, ALPHA_A, RED_B, GREEN_B, BLUE_B, ALPHA_B, and CONSTANT. The default value is ALPHA_A.

A

This parameter sets the constant value for the alpha channel if SWAP_A is set to CONSTANT. It ranges from 0 to 255, with a default value of 0.

PIXEL SWAP (JOV) πŸ”ƒ Output Parameters:

Output Image

The output of the PIXEL SWAP (JOV) πŸ”ƒ node is a single image that combines the specified channels from the two input images according to the swizzle patterns and values provided. This image can be used for further processing or as a final output, depending on your creative needs.

PIXEL SWAP (JOV) πŸ”ƒ Usage Tips:

  • Experiment with different swizzle patterns to create unique visual effects by rearranging the color channels in unexpected ways.
  • Use constant values for specific channels to introduce solid colors or transparency into your output image.
  • Combine this node with other image processing nodes to build complex and layered visual compositions.

PIXEL SWAP (JOV) πŸ”ƒ Common Errors and Solutions:

"Invalid image format"

  • Explanation: This error occurs if the input images are not in a format that supports multiple color channels.
  • Solution: Ensure that your input images are in a format like BGRA that supports multiple color channels.

"Parameter out of range"

  • Explanation: This error occurs if a constant value for a channel is set outside the range of 0 to 255. - Solution: Check the values for the R, G, B, and A parameters and ensure they are within the valid range.

"Swizzle pattern not recognized"

  • Explanation: This error occurs if an invalid swizzle pattern is specified.
  • Solution: Verify that the swizzle patterns for SWAP_R, SWAP_G, SWAP_B, and SWAP_A are set to one of the valid options provided.

PIXEL SWAP (JOV) πŸ”ƒ Related Nodes

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