Visit ComfyUI Online for ready-to-use ComfyUI environment
Transform images by adjusting pixel aspect ratios to simulate non-square pixels, ideal for creating vintage TV effects.
The NonSquarePixelsV1
node is designed to transform images by altering their pixel aspect ratios, allowing you to simulate the appearance of non-square pixels commonly found in various video formats. This node is particularly useful for artists and designers who want to create visuals that mimic the look of older television standards or achieve specific artistic effects. By adjusting the pixel aspect ratio, you can stretch or compress the width of the image while maintaining its height, giving you creative control over the final appearance. The node offers flexibility through preset options for common video standards like PAL and NTSC, as well as a custom aspect ratio setting for more tailored adjustments. Additionally, you have the option to preserve the original image dimensions, ensuring that the transformation fits seamlessly into your existing workflow.
This parameter accepts a batch of images that you want to process. The images should be provided in a format compatible with the node, typically as a tensor or array. The node will apply the pixel aspect ratio transformation to each image in the batch.
The preset
parameter allows you to select from predefined pixel aspect ratios that correspond to common video standards. Options include "CUSTOM", "PAL (4:3)", "PAL WIDESCREEN (16:9)", "NTSC (4:3)", and "NTSC WIDESCREEN (16:9)". The default value is "CUSTOM", which means you can specify a custom aspect ratio using the custom_pixel_aspect_ratio
parameter. Choosing a preset automatically sets the aspect ratio to match the selected video standard.
This parameter lets you define a custom pixel aspect ratio when the preset
is set to "CUSTOM". It is a floating-point value with a default of 1.0667, which corresponds to the PAL 4:3 standard. The value can range from 0.5 to 2.0, allowing for a wide variety of aspect ratio adjustments. This flexibility enables you to achieve specific visual effects that are not covered by the standard presets.
The preserve_original_size
parameter determines whether the processed images should retain their original dimensions. It has two options: "enable" and "disable", with "enable" as the default. When enabled, the node will resize the transformed images back to their original width and height, ensuring that the overall image size remains unchanged. This is useful if you want to apply the aspect ratio effect without altering the image's dimensions.
The output of the NonSquarePixelsV1
node is a batch of images that have been processed to reflect the specified pixel aspect ratio. These images are returned as a tensor, ready for further processing or use in your projects. The transformation applied to the images can create unique visual effects, making this output valuable for artistic and design purposes.
preset
to "CUSTOM" and adjust the custom_pixel_aspect_ratio
to see how different aspect ratios impact the image's appearance.preserve_original_size
is set to "enable" to avoid any unintended resizing.custom_pixel_aspect_ratio
value is outside the allowed range.custom_pixel_aspect_ratio
to be within the range of 0.5 to 2.0. Double-check the value to ensure it falls within these limits.preset
parameter is set to one of the available options: "CUSTOM", "PAL (4:3)", "PAL WIDESCREEN (16:9)", "NTSC (4:3)", or "NTSC WIDESCREEN (16:9)".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.