ComfyUI Node
Image Resize (Artify)
A ComfyUI node in Artify/Image with 15 inputs and 4 outputs.
Image Resize (Artify)
- image
- mask
- IMAGE
- MASK
- WIDTH
- HEIGHT
◄custom_width0►
◄custom_height0►
◄megapixels0.00►
◄scale_by1.00►
◄resize_modelongest_side►
◄resize_value0►
◄upscale_methodlanczos►
◄devicecpu►
◄divisible_by2►
◄divisible_modefloor►
◄output_modestretch►
◄crop_positioncenter►
◄pad_color#FFFFFF►
CategoryArtify/Image
Inputs (15)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Input image batch (BHWC). | |
| custom_width | INT | 00–16384 | Target width. If only one side is set, the other preserves aspect ratio. |
| custom_height | INT | 00–16384 | Target height. If only one side is set, the other preserves aspect ratio. |
| megapixels | FLOAT | 0.000–16 | If > 0, computes size from megapixels and aspect ratio (highest priority). |
| scale_by | FLOAT | 1.000.01–8 | Scale factor applied exactly once (ignored when megapixels > 0). |
| resize_mode | COMBO | longest_side | How resize_value is interpreted: longest_side or shortest_side. |
| resize_value | INT | 00–16384 | Target side value used with resize_mode. |
| upscale_method | COMBO | lanczos | Interpolation/upscale kernel. |
| device | COMBO | cpu | CPU is safest; GPU can be faster (Lanczos requires CPU). |
| divisible_by | INT | 21–512 | Snap final width/height to a multiple of this value. |
| divisible_mode | COMBO | floor | Rounding mode for divisible snapping. |
| output_mode | COMBO | stretch | Final fit behavior: stretch, crop, or padding variants. |
| crop_position | COMBO | center | Anchor for crop and asymmetric padding placement. |
| pad_color | STRING | #FFFFFF | Padding color for pad mode (#RRGGBB or #RGB). |
| maskopt | MASK | Optional mask resized with the same geometry as image. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| MASK | MASK | — |
| WIDTH | INT | — |
| HEIGHT | INT | — |