Visit ComfyUI Online for ready-to-use ComfyUI environment
Automatically adjust image aspect ratio for print, resize to standard sizes, swap width/height, apply scaling factors for resolution.
The CR_Aspect Ratio For Print node is designed to help you adjust the aspect ratio of your images specifically for print purposes. This node ensures that your images conform to standard print sizes, making it easier to prepare your artwork for physical printing. By using this node, you can automatically resize your images to fit common print dimensions, swap the width and height if needed, and apply scaling factors to achieve the desired resolution. This functionality is particularly useful for artists who need to ensure their digital creations are print-ready, saving time and effort in manual adjustments.
The initial width of the image in pixels. This parameter sets the starting width before any aspect ratio adjustments or scaling are applied. The width value will be modified based on the selected aspect ratio and scaling factors. There is no strict minimum or maximum value, but it should be a positive integer.
The initial height of the image in pixels. Similar to the width parameter, this sets the starting height before adjustments. The height value will be modified according to the chosen aspect ratio and scaling factors. It should be a positive integer.
This parameter specifies the desired aspect ratio for the print. If the aspect ratio matches one of the predefined print sizes, the width and height will be adjusted accordingly. Common aspect ratios include standard print sizes like A4, A3, etc. The exact values for these sizes are predefined in the node.
A toggle option that allows you to swap the width and height dimensions. If set to "On," the width and height values will be interchanged. This is useful when you need to change the orientation of your image from portrait to landscape or vice versa. Options are "On" or "Off."
A scaling factor applied to the image after the aspect ratio adjustment. This factor allows you to increase the resolution of your image. The upscale factor should be a positive number, typically greater than or equal to 1.
A scaling factor applied to the image before the aspect ratio adjustment. This factor allows you to scale your image up or down before fitting it to the desired aspect ratio. The prescale factor should be a positive number, typically greater than or equal to 1.
The number of images to process in a single batch. This parameter is useful for processing multiple images simultaneously. The batch size should be a positive integer.
The adjusted width of the image after applying the aspect ratio and scaling factors. This value is an integer representing the final width in pixels.
The adjusted height of the image after applying the aspect ratio and scaling factors. This value is an integer representing the final height in pixels.
The upscale factor applied to the image. This value is returned to confirm the scaling factor used.
The prescale factor applied to the image. This value is returned to confirm the scaling factor used.
The number of images processed in the batch. This value is returned to confirm the batch size used.
A tensor representing the latent space of the processed images. This tensor is used internally for further image processing and manipulation.
A URL link to the help documentation for the node. This link provides additional information and guidance on using the node effectively.
swap_dimensions
option to quickly change the orientation of your image without manually adjusting the width and height.prescale_factor
to downscale high-resolution images before adjusting the aspect ratio to maintain quality and performance.upscale_factor
to increase the resolution of your image after adjusting the aspect ratio, especially when preparing images for large prints.© Copyright 2024 RunComfy. All Rights Reserved.