ComfyUI Extension: ComfyUI-LatentOrientation
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.
A simple node for ComfyUI that rotates or resizes the input latent to common orientations.
README
ComfyUI-LatentOrientation
A simple node for ComfyUI that rotates or resizes the input latent to common orientations.
Comfy has built-in Flip Latent and Rotate Latent (by degrees), but this is a little different.

Installation
Simply drag the image above into ComfyUI and use ComfyUI Manager » Install Missing Custom Nodes. Alternatively, clone this repo into your custom_nodes folder.
Inputs
samples(LATENT): The input latent to adjust.orientation(CHOOSE): The adjustment logic, as defined below.portrait: Rotatessamplessuch that the height is greater than the width.landscape: Rotatessamplessuch that the width is greater than the height.min square: Cropssamplesto equal width and height, using the smaller dimension of the two.max square: Padssamplesto equal width and height, using the greater dimension of the two.avg square: Takes the average between width and height ofsamplesand resizes both dimensions to this value.
Outputs
- LATENT: The adjusted latent.
Run ComfyUI workflows without the setup
No installs, no CUDA version roulette, no GPU sitting idle on your bill. Bring a workflow and run it in the browser.