| image | IMAGE | | Input image to analyze and resize |
| min_res | INT | 7041–65536 | Minimum resolution in pixels for width and height. Images smaller than this will be upscaled. |
| max_res | INT | 12801–65536 | Maximum resolution in pixels for width and height. Images larger than this will be downscaled. |
| multiple_of | INT | 21–256 | Ensures output dimensions are multiples of this number. Common values: 2 (most models), 8, 16, 32, or 64 (optimal performance). Set to 1 to disable rounding. |
| resize_method | COMBO | lanczos | Interpolation method used when resizing.
• lanczos: Sharpest results, best overall quality (default)
• bicubic: High quality, slightly softer than lanczos
• bilinear: Fast, slightly soft
• nearest-exact: No interpolation — for pixel art or masks
• area: Good for large downscales |
| constraint_mode | COMBO | Prioritize Min Resolution | How to handle conflicts when extreme aspect ratios make it impossible to satisfy both min and max.
• Prioritize Min Resolution: Ensures neither dimension falls below min_res (may exceed max_res)
• Prioritize Max Resolution (Strict): Strictly enforces max_res limit (may go below min_res) |
| crop_as_required | BOOLEAN | true | Enable cropping to achieve exact target dimensions when rounding causes aspect ratio changes. Disable if preserving the entire image is more important than exact dimensions. |
| crop_position | COMBO | center | Where to crop from when 'Crop as Required' is enabled.
• center: Crop equally from all sides
• top: Keep top portion, crop from bottom
• bottom: Keep bottom portion, crop from top
• left: Keep left portion, crop from right
• right: Keep right portion, crop from left |