Nodes/comfyui-artify/Image Resize (Artify)
ComfyUI Node

Image Resize (Artify)

A ComfyUI node in Artify/Image with 15 inputs and 4 outputs.

By ArtifyGames·Created 6 months ago·Updated 6 months ago· 0
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)

NameTypeDefaultDescription
imageIMAGEInput image batch (BHWC).
custom_widthINT00–16384Target width. If only one side is set, the other preserves aspect ratio.
custom_heightINT00–16384Target height. If only one side is set, the other preserves aspect ratio.
megapixelsFLOAT0.000–16If > 0, computes size from megapixels and aspect ratio (highest priority).
scale_byFLOAT1.000.01–8Scale factor applied exactly once (ignored when megapixels > 0).
resize_modeCOMBOlongest_sideHow resize_value is interpreted: longest_side or shortest_side.
resize_valueINT00–16384Target side value used with resize_mode.
upscale_methodCOMBOlanczosInterpolation/upscale kernel.
deviceCOMBOcpuCPU is safest; GPU can be faster (Lanczos requires CPU).
divisible_byINT21–512Snap final width/height to a multiple of this value.
divisible_modeCOMBOfloorRounding mode for divisible snapping.
output_modeCOMBOstretchFinal fit behavior: stretch, crop, or padding variants.
crop_positionCOMBOcenterAnchor for crop and asymmetric padding placement.
pad_colorSTRING#FFFFFFPadding color for pad mode (#RRGGBB or #RGB).
maskoptMASKOptional mask resized with the same geometry as image.

Outputs (4)

NameTypeDescription
IMAGEIMAGE
MASKMASK
WIDTHINT
HEIGHTINT