ComfyUI > Nodes > DJZ-Nodes > Black Bars V2

ComfyUI Node: Black Bars V2

Class Name

BlackBarsV2

Category
image/format
Author
DriftJohnson (Account age: 4052days)
Extension
DJZ-Nodes
Latest Updated
2025-04-25
Github Stars
0.04K

How to Install DJZ-Nodes

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

Black Bars V2 Description

Enhance images with cinematic black bars for aspect ratio control and professional widescreen look.

Black Bars V2:

The BlackBarsV2 node is designed to enhance your images by adding cinematic black bars, commonly known as letterboxing, to achieve a specific aspect ratio. This node is particularly useful for artists and creators who want to give their visuals a professional, widescreen look that is often associated with films and high-quality video content. By applying black bars, you can control the aspect ratio of your images, ensuring they fit within a desired frame or presentation style. The node also offers additional features such as safe area guides, which help you maintain important visual elements within the visible area, and optional guides to assist in composition. These features make BlackBarsV2 a versatile tool for both aesthetic enhancement and practical composition adjustments.

Black Bars V2 Input Parameters:

images

This parameter expects a tensor of images that you want to process. The images are the primary input on which the black bars will be applied. The quality and resolution of the input images will directly affect the final output, so it's important to use high-quality images for the best results.

mode

The mode parameter allows you to specify the method of applying black bars. Different modes may offer various styles or techniques for adding the bars, affecting the final appearance of the image. The exact options for this parameter are not specified, but it typically involves choices like fixed aspect ratios or custom settings.

target_ratio

This parameter defines the desired aspect ratio for the output image. By setting a target ratio, you can control how the black bars are applied to achieve the specific cinematic look you are aiming for. Common aspect ratios include 16:9, 4:3, and 21:9, among others.

safe_area

The safe_area parameter is a boolean option that, when enabled, applies guides to ensure that important elements of your image remain within the visible area after the black bars are added. This is particularly useful for maintaining the focus on key subjects or details in your composition.

show_guides

This boolean parameter, when enabled, displays additional guides on the image to assist with composition and alignment. These guides can help you ensure that your image is balanced and that important elements are positioned correctly within the frame.

Black Bars V2 Output Parameters:

result

The result is a tensor of images with the applied black bars and any additional guides if requested. This output maintains the original quality of the input images while adding the specified aspect ratio adjustments. The result is ready for further processing or final presentation, providing a polished, cinematic appearance.

Black Bars V2 Usage Tips:

  • To achieve a classic cinematic look, set the target_ratio to 21:9, which is commonly used in films.
  • Use the safe_area option to ensure that critical elements of your image are not obscured by the black bars, especially if the image will be viewed on different screen sizes.

Black Bars V2 Common Errors and Solutions:

Invalid aspect ratio

  • Explanation: This error occurs when the target_ratio is set to a value that is not supported or incorrectly formatted.
  • Solution: Ensure that the target_ratio is specified in a valid format, such as "16:9" or "4:3", and that it is a supported aspect ratio.

Image tensor mismatch

  • Explanation: This error happens when the input images tensor does not match the expected dimensions or format.
  • Solution: Verify that the input images are correctly formatted as a tensor and that they meet the required dimensions for processing.

Black Bars V2 Related Nodes

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