Skip to content

A ComfyUI custom node for selecting mathematically valid image resolutions filtered by aspect ratio, orientation, and megapixel limit.

Notifications You must be signed in to change notification settings

room3dev/ComfyUI-PixelForge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PixelForge · Custom Nodes for ComfyUI

A ComfyUI custom node for selecting mathematically valid image resolutions.

PixelForge Example

Features

PixelForge · Resolution Selector

  • Aspect ratio selection (1:1, 3:2, 4:3, 16:9, 16:10)
  • Orientation switch (landscape / portrait / square)
  • Divisibility constraints (16 / 32 / 64)
  • Max megapixel limit
    • 1 MP = 1024 × 1024 = 1,048,576 pixels
  • Outputs:
    • Width (px)
    • Height (px)
    • Aspect ratio (W/H)
    • Orientation
    • Total megapixels (float)

PixelForge · Resize Image

  • Advanced image resizing with multiple upscale methods
  • Keep proportion modes:
    • stretch: Stretch to exact dimensions
    • resize: Maintain aspect ratio, fit within dimensions
    • pad: Resize and add padding to reach exact dimensions
    • pad_edge: Pad using edge pixel extension
    • crop: Crop to exact aspect ratio then resize
  • Customizable pad color (RGB)
  • Crop/pad positioning (center, top, bottom, left, right)
  • Divisible by constraint for VAE/model compatibility
  • Optional mask input/output support

Installation

Copy the folder into:

ComfyUI/custom_nodes/

Restart ComfyUI.

Category

PixelForge

License

MIT

About

A ComfyUI custom node for selecting mathematically valid image resolutions filtered by aspect ratio, orientation, and megapixel limit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published