Main replaced MAX_TRANSFORM_PIXELS with a memory budget from Preferences (#7807); keep that and this branch's multi-layer helpers above it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>