Visit ComfyUI Online for ready-to-use ComfyUI environment
Streamline image preparation for AI art with configurable settings for size, cropping, padding, and more.
The Image Prepare Settings (JPS) node is designed to streamline the process of preparing images for various AI art applications. This node allows you to configure a range of settings that can adjust the size, cropping, padding, and other attributes of an image, ensuring it meets the specific requirements of your project. By providing a comprehensive set of parameters, this node helps you achieve the desired image quality and dimensions, making it an essential tool for AI artists who need precise control over their image preprocessing tasks. The node's flexibility and ease of use make it suitable for both beginners and experienced users, enabling you to focus on your creative work without worrying about the technical details of image preparation.
This parameter determines how the image should be resized. Options include "Keep Size" (default), "Resize to Target", and "Resize to Source". Choosing "Keep Size" retains the original dimensions of the image, "Resize to Target" adjusts the image to a specified target size, and "Resize to Source" matches the size of a source image. This setting is crucial for ensuring your image fits the intended dimensions for your project.
Specifies the horizontal offset to be applied to the image. This integer value can be adjusted to shift the image left or right, helping to align it properly within the frame. The default value is 0, with a range typically from -2048 to 2048.
Specifies the vertical offset to be applied to the image. This integer value can be adjusted to shift the image up or down, ensuring it is correctly positioned. The default value is 0, with a range typically from -2048 to 2048.
Defines the number of pixels to crop from the left side of the image. This integer value allows you to remove unwanted parts of the image from the left. The default value is 0, with a range typically from 0 to the width of the image.
Defines the number of pixels to crop from the right side of the image. This integer value allows you to remove unwanted parts of the image from the right. The default value is 0, with a range typically from 0 to the width of the image.
Defines the number of pixels to crop from the top of the image. This integer value allows you to remove unwanted parts of the image from the top. The default value is 0, with a range typically from 0 to the height of the image.
Defines the number of pixels to crop from the bottom of the image. This integer value allows you to remove unwanted parts of the image from the bottom. The default value is 0, with a range typically from 0 to the height of the image.
Specifies the number of pixels to add as padding to the left side of the image. This integer value helps to create space around the image. The default value is 0, with a range typically from 0 to 2048.
Specifies the number of pixels to add as padding to the right side of the image. This integer value helps to create space around the image. The default value is 0, with a range typically from 0 to 2048.
Specifies the number of pixels to add as padding to the top of the image. This integer value helps to create space around the image. The default value is 0, with a range typically from 0 to 2048.
Specifies the number of pixels to add as padding to the bottom of the image. This integer value helps to create space around the image. The default value is 0, with a range typically from 0 to 2048.
Determines the interpolation method used for resizing the image. Options include "lanczos", "nearest", "bilinear", "bicubic", "area", and "nearest-exact". Each method offers different levels of quality and performance, with "lanczos" providing high-quality results and "nearest" being faster but less smooth.
Specifies the amount of sharpening to apply to the image. This floating-point value enhances the edges and details of the image. The default value is 0.0, with a typical range from 0.0 to 1.0.
A boolean parameter that determines whether the image should be flipped horizontally. Setting this to true flips the image, which can be useful for certain artistic effects or corrections.
This output parameter is a tuple containing all the configured settings for image preparation. It includes values for resizing, offsets, cropping, padding, interpolation, sharpening, and flipping. This comprehensive set of settings ensures that the image is processed according to your specifications, ready for further use in your AI art projects.
resize_to
parameter to "Keep Size".offset_width
and offset_height
parameters to fine-tune the positioning of your image within the frame.interpolation
methods to find the best balance between quality and performance for your specific use case.sharpening
sparingly to enhance image details without introducing artifacts.resize_to
parameter must be set to one of the predefined options: "Keep Size", "Resize to Target", or "Resize to Source".resize_to
parameter is set to a valid option.offset_width
or offset_height
parameter is set to a value outside the acceptable range.crop_left
, crop_right
, crop_top
, or crop_bottom
parameter is set to a value that exceeds the dimensions of the image.interpolation
parameter must be set to one of the predefined methods: "lanczos", "nearest", "bilinear", "bicubic", "area", or "nearest-exact".interpolation
parameter to a valid method.sharpening
parameter is set to a value outside the acceptable range.© Copyright 2024 RunComfy. All Rights Reserved.