ComfyUI > Nodes > Dream Project Animation Nodes > ⌗ Common Frame Dimensions

ComfyUI Node: ⌗ Common Frame Dimensions

Class Name

Common Frame Dimensions [Dream]

Category
✨ Dream/🛠 utils
Author
Dream Project (Account age: 669days)
Extension
Dream Project Animation Nodes
Latest Updated
2024-07-01
Github Stars
0.07K

How to Install Dream Project Animation Nodes

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

⌗ Common Frame Dimensions Description

Simplify frame selection for animation and video projects with standard dimensions, aspect ratios, and alignment options.

Common Frame Dimensions [Dream]:

The Common Frame Dimensions [Dream] node is designed to help you quickly and easily select standard frame dimensions for your animation or video projects. This node simplifies the process of choosing the right size, aspect ratio, and orientation for your frames, ensuring that your output is consistent and professional. By providing a range of common sizes and aspect ratios, this node eliminates the guesswork and manual calculations, allowing you to focus on the creative aspects of your work. Additionally, it offers options for alignment and scaling, making it versatile for various project requirements.

Common Frame Dimensions [Dream] Input Parameters:

size

This parameter allows you to select from a list of common frame sizes, such as "3840", "1920", "1440", "1280", "768", "720", "640", and "512". Choosing the appropriate size ensures that your frames are set to a standard resolution, which is crucial for maintaining quality and compatibility across different devices and platforms.

aspect_ratio

This parameter lets you choose the aspect ratio for your frames from options like "16:9", "16:10", "4:3", "1:1", "5:4", "3:2", "21:9", and "14:9". The aspect ratio determines the proportional relationship between the width and height of your frames, which is important for achieving the desired visual effect and ensuring that your content fits well within the intended display format.

orientation

This parameter allows you to set the orientation of your frames to either "wide" or "tall". The orientation affects how your frames are displayed and can be crucial for certain types of content, such as portrait or landscape videos.

divisor

This parameter provides options for scaling your frames by a divisor of "8", "4", "2", or "1". Scaling by a divisor can help you adjust the frame size to meet specific requirements or constraints, such as reducing the resolution for performance optimization.

alignment

This parameter is an integer value that specifies the alignment of your frames, with a default value of 64 and a range from 1 to 512. Alignment ensures that your frames are properly positioned and aligned within the specified dimensions, which is important for maintaining visual consistency.

alignment_type

This parameter allows you to choose the type of alignment for your frames, with options including "ceil", "floor", and "nearest". The alignment type determines how the frame dimensions are adjusted to fit within the specified alignment constraints, which can affect the final appearance of your frames.

Common Frame Dimensions [Dream] Output Parameters:

width

This output parameter represents the calculated width of your frames based on the selected size, aspect ratio, and orientation. It ensures that your frames are set to the correct width for your project requirements.

height

This output parameter represents the calculated height of your frames based on the selected size, aspect ratio, and orientation. It ensures that your frames are set to the correct height for your project requirements.

final_width

This output parameter represents the final adjusted width of your frames after applying the alignment and scaling options. It ensures that your frames are properly aligned and scaled to meet the specified constraints.

final_height

This output parameter represents the final adjusted height of your frames after applying the alignment and scaling options. It ensures that your frames are properly aligned and scaled to meet the specified constraints.

Common Frame Dimensions [Dream] Usage Tips:

  • When selecting the frame size, consider the resolution requirements of your target platform to ensure compatibility and optimal quality.
  • Use the aspect ratio parameter to match the display format of your content, such as 16:9 for widescreen videos or 1:1 for social media posts.
  • Adjust the orientation parameter based on the type of content you are creating, such as "wide" for landscape videos or "tall" for portrait videos.
  • Utilize the divisor parameter to scale your frames appropriately, especially if you need to optimize performance or meet specific resolution constraints.
  • Set the alignment and alignment_type parameters to ensure that your frames are properly positioned and aligned within the specified dimensions.

Common Frame Dimensions [Dream] Common Errors and Solutions:

Invalid size selection

  • Explanation: The selected size is not available in the list of common frame sizes.
  • Solution: Choose a size from the provided options: "3840", "1920", "1440", "1280", "768", "720", "640", or "512".

Invalid aspect ratio selection

  • Explanation: The selected aspect ratio is not available in the list of common aspect ratios.
  • Solution: Choose an aspect ratio from the provided options: "16:9", "16:10", "4:3", "1:1", "5:4", "3:2", "21:9", or "14:9".

Invalid alignment value

  • Explanation: The alignment value is outside the allowed range of 1 to 512. - Solution: Set the alignment value within the range of 1 to 512.

Invalid alignment type selection

  • Explanation: The selected alignment type is not available in the list of alignment types.
  • Solution: Choose an alignment type from the provided options: "ceil", "floor", or "nearest".

⌗ Common Frame Dimensions Related Nodes

Go back to the extension to check out more related nodes.
Dream Project Animation 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.