ComfyUI Extension: ComfyUI-PixelResolutionCalculator

Authored by Ling-APE

Created

Updated

7 stars

Simple resuluition calculator to convert pixel resolution and aspect ratio to laten friendlt pixel width and height size.

README

ComfyUI-PixelResolutionCalculator

This node is used in the All-in-one Flux Dev workflow I made.

There is two nodes:

  • PixelResolutionCalculator

node1

  • LatentSizeToPixelSize

node1

PixelResolutionCalculator

The pixel resolution calculator is just a simple node that generate the closest "latent friendly" pixel resolution from your mega pixel and aspect ratio of choice. Took inspiration from the ImageScaleToTotalPixels node I saw from the original Flux demo workflow, since with flux everyone seems to talk about it with pixel resolution instead of width and height pixel count like SDXL.

LatentSizeToPixelSize

LatentSizeToPixelSize convert a laten samlpe input to width and height pixel count.