https://github.com/room3dev/ComfyUI-PixelForge
A ComfyUI custom node for selecting mathematically valid image resolutions filtered by aspect ratio, orientation, and megapixel limit.
https://github.com/room3dev/ComfyUI-PixelForge
comfyui comfyui-custom-node image-resizer image-resolution
Last synced: 4 months ago
JSON representation
A ComfyUI custom node for selecting mathematically valid image resolutions filtered by aspect ratio, orientation, and megapixel limit.
- Host: GitHub
- URL: https://github.com/room3dev/ComfyUI-PixelForge
- Owner: room3dev
- Created: 2026-01-20T01:32:33.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-01-20T06:33:26.000Z (5 months ago)
- Last Synced: 2026-01-20T09:33:03.846Z (5 months ago)
- Topics: comfyui, comfyui-custom-node, image-resizer, image-resolution
- Language: Python
- Homepage:
- Size: 254 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-comfyui - **ComfyUI-PixelForge** - time feedback. (Workflows (4025) sorted by GitHub Stars)
README
# PixelForge · Custom Nodes for ComfyUI
A ComfyUI custom node for selecting mathematically valid image resolutions.

## 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