Image Resize By Megapixels (Swwan)
ImageResizeByMegapixels
Resizes image to target megapixels with optional aspect ratio control. - megapixels: Target total pixels in millions (1.0 = 1,000,000 pixels) - aspect_ratio: 'default' keeps original ratio, or choose a specific ratio - keep_proportion: How to handle aspect ratio changes (crop, pad, resize, etc.) - divisible_by: Ensures output dimensions are divisible by this value - default_divisible: When enabled, strictly enforces divisible_by on final output
Pack: ComfyUI_Swwan
custom_nodes.ComfyUI_Swwan