ComfyUI Node: Image Resize By Megapixels (Swwan)

Authored by aining2022

Created

Updated

27 stars

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Category

Swwan/image

Inputs

image IMAGE
megapixels FLOAT
aspect_ratio
  • default
  • 1:1
  • 3:2
  • 2:3
  • 4:3
  • 3:4
  • 16:9
  • 9:16
  • 21:9
  • 9:21
keep_proportion
  • crop
  • resize
  • pad
  • pad_edge
  • pad_edge_pixel
  • pillarbox_blur
divisible_by
  • 2
  • 4
  • 8
  • 16
  • 32
  • 64
default_divisible BOOLEAN
upscale_method
  • nearest-exact
  • bilinear
  • area
  • bicubic
  • lanczos
crop_position
  • center
  • top
  • bottom
  • left
  • right
pad_color STRING
mask MASK
device
  • cpu
  • gpu

Outputs

IMAGE

INT

INT

MASK

INT

Extension: ComfyUI_Swwan

Collection of image processing utility nodes for ComfyUI including intelligent cropping, aspect ratio scaling, and crop box restoration capabilities. (Description by CC)

Authored by aining2022

Looking for a different node?

Run ComfyUI workflows without the setup

No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.

Learn more