* 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>