Files
MathiasandClaude Sonnet 5 1f04e10322 Add MegapixelScale node (#23)
* Add MegapixelScale node to scale width/height to a target megapixel count

Scales width and height so total pixels match the given megapixels
input while preserving the original aspect ratio.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Es1PqnGyFk9U2mngaWxgNg

* Round MegapixelScale output to nearest multiple of 8

Diffusion models generally require width/height divisible by 8, so
snap the scaled dimensions directly instead of leaving raw rounding.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Es1PqnGyFk9U2mngaWxgNg

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-08-27 23:12:55 +02:00
..