Visit ComfyUI Online for ready-to-use ComfyUI environment
Effortlessly adjust images to fit social media aspect ratios for various platforms with predefined sizes.
The CR Aspect Ratio Social Media node is designed to help you effortlessly adjust your images to fit the specific aspect ratios required by various social media platforms. This node simplifies the process of resizing and cropping images to meet the exact dimensions needed for platforms like Instagram, Facebook, TikTok, YouTube, LinkedIn, Pinterest, and more. By using this node, you can ensure that your images are perfectly optimized for each platform, enhancing their visual appeal and engagement. The node provides a range of predefined aspect ratios tailored to popular social media formats, making it easy to select the right size for your needs. Whether you're creating content for Instagram Stories, Facebook Marketplace, or YouTube Banners, this node streamlines the process, saving you time and effort while ensuring your images look their best.
The width parameter specifies the initial width of the image before any aspect ratio adjustments are applied. This value is essential for determining the starting dimensions of your image. The width should be set according to the original size of your image or the desired width before scaling. There is no strict minimum or maximum value, but it should be a positive integer that makes sense for your image's resolution.
The height parameter specifies the initial height of the image before any aspect ratio adjustments are applied. Similar to the width, this value is crucial for determining the starting dimensions of your image. The height should be set according to the original size of your image or the desired height before scaling. There is no strict minimum or maximum value, but it should be a positive integer that makes sense for your image's resolution.
The aspect_ratio parameter allows you to select from a list of predefined aspect ratios tailored for various social media platforms. This parameter ensures that your image is resized and cropped to fit the selected aspect ratio perfectly. Options include "Instagram Portrait
The swap_dimensions parameter is a boolean flag that, when set to true, swaps the width and height of the image. This can be useful if you need to change the orientation of your image from landscape to portrait or vice versa. The default value is false.
The upscale_factor parameter determines the factor by which the image should be upscaled. This is useful if you need to increase the resolution of your image to meet specific requirements. The value should be a positive float, with a default value of 1.0, meaning no upscaling.
The prescale_factor parameter determines the factor by which the image should be prescaled before applying the aspect ratio adjustments. This can help in maintaining image quality during the resizing process. The value should be a positive float, with a default value of 1.0, meaning no prescaling.
The batch_size parameter specifies the number of images to be processed in a single batch. This is useful for handling multiple images simultaneously, saving time and effort. The value should be a positive integer, with a default value of 1.
The adjusted_image parameter is the output image that has been resized and cropped to fit the selected aspect ratio. This image is ready for upload to the specified social media platform, ensuring it meets the platform's requirements and looks visually appealing.
© Copyright 2024 RunComfy. All Rights Reserved.