ComfyUI > Nodes > ComfyUI > ImageRGBToYUV

ComfyUI Node: ImageRGBToYUV

Class Name

ImageRGBToYUV

Category
image/batch
Author
ComfyAnonymous (Account age: 872days)
Extension
ComfyUI
Latest Updated
2025-05-13
Github Stars
76.71K

How to Install ComfyUI

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

ImageRGBToYUV Description

Converts RGB images to YUV color space for efficient compression and manipulation using kornia library.

ImageRGBToYUV:

The ImageRGBToYUV node is designed to convert images from the RGB color space to the YUV color space, which is often used in video compression and broadcasting. This conversion is beneficial because the YUV color space separates the image's luminance (brightness) from its chrominance (color information), allowing for more efficient compression and manipulation of images. By transforming an image into YUV, you can independently adjust the brightness and color, which is particularly useful in various image processing tasks such as color correction, filtering, and video encoding. The node leverages the kornia library to perform this conversion, ensuring high performance and accuracy.

ImageRGBToYUV Input Parameters:

image

The image parameter is the primary input for the ImageRGBToYUV node. It expects an image in the RGB color space, which is the standard format for most digital images. This parameter is crucial as it provides the data that will be transformed into the YUV color space. The input image should be in a format that the node can process, typically a tensor representation of the image. There are no specific minimum, maximum, or default values for this parameter, as it depends on the image you wish to convert.

ImageRGBToYUV Output Parameters:

Y

The Y output represents the luminance component of the image, which corresponds to the brightness information. This component is crucial for understanding the light intensity in the image and is often used in tasks that require brightness adjustments or analysis.

U

The U output is one of the chrominance components, representing the blue projection of the color information. It is essential for capturing the color variations in the image, particularly the blue-yellow axis, and is used in color correction and enhancement processes.

V

The V output is the second chrominance component, representing the red projection of the color information. Similar to the U component, it captures color variations, specifically along the red-green axis, and is vital for tasks involving color adjustments and image enhancement.

ImageRGBToYUV Usage Tips:

  • Ensure that the input image is in the correct RGB format before using the node to avoid unexpected results.
  • Use the Y output for tasks that require brightness adjustments, such as enhancing contrast or performing edge detection.
  • Utilize the U and V outputs for color correction tasks, allowing you to adjust the color balance without affecting the image's brightness.

ImageRGBToYUV Common Errors and Solutions:

Invalid image format

  • Explanation: The input image is not in a compatible format for conversion.
  • Solution: Ensure the image is in RGB format and properly pre-processed before inputting it into the node.

Dimension mismatch

  • Explanation: The input image dimensions do not match the expected format.
  • Solution: Verify that the image dimensions are correct and consistent with the node's requirements, typically a 3D tensor with channels last.

Kornia library not found

  • Explanation: The kornia library is not installed or not accessible.
  • Solution: Install the kornia library using a package manager like pip and ensure it is correctly imported in your environment.

ImageRGBToYUV Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
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 Playground, enabling artists to harness the latest AI tools to create incredible art.