ComfyUI Extension: ComfyUI-LatentOrientation
A simple node for ComfyUI that rotates or resizes the input latent to common orientations.
Custom Nodes (0)
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.