ComfyUI Node
Perfect Pixel
Detect pixel-grid spacing and upscale pixel art with refined dimensions.
Perfect Pixel
- images
- scaled_image
- refined_w
- refined_h
◄sample_methodcenter►
◄min_size1►
◄peak_width1►
◄refine_intensity0.25►
◄fix_squaretrue►
◄debugfalse►
CategoryFair/image
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | — | |
| sample_method | COMBO | center | 3 options: majority, center, median |
| min_size | INT | 1 | Minimum size of the detected pixel pattern |
| peak_width | INT | 1 | Minimum peak width for peak detection. |
| refine_intensity | FLOAT | 0.250–0.5 | Intensity for grid line refinement. Recommended range is [0, 0.5]. Given original estimated grid line at x, the refinement will search in [x * (1 - refine_intensity), x * (1 + refine_intensity)]. |
| fix_square | BOOLEAN | true | Whether to enforce output to be square when detected image is almost square. |
| debug | BOOLEAN | false | Whether to show debug plots.s |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| scaled_image | IMAGE | — |
| refined_w | INT | — |
| refined_h | INT | — |