The floor sat at 0.25 MP, so 16:9's cheapest entry was 768x432 — and that one is K2-only (432 % 32 = 16), leaving 1024x576 as the smallest H3-legal 16:9 in the list. An audio-only H3 render wants 512x288, the n=1 lattice point at alignment 32, where the video canvas is pure overhead. Dropping PRESET_MIN_MP alone re-picks the geometric thinning and silently drops labels — 3:2 1152x768 and 1920x1280 among them — which breaks saved workflows, since the label string is what a graph stores. Raising PRESET_MAX_ENTRIES to 11 in the same step absorbs that: 79 -> 87 entries with every existing label still present and still pointing at the same size. The six entries beyond 512x288 / 288x512 are lattice points the old 9-entry cap had been skipping over. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K1sGVWw5KU3GD7CrhdZR7M
18 lines
717 B
TOML
18 lines
717 B
TOML
[project]
|
|
name = "comfyui-resolution-tools"
|
|
description = "Resolution maths for latent-space models, done exactly. Real megapixels (10^6, not 1024^2), patch-grid alignment for Krea 2 / MiniMax H3 / Flux / SDXL, and aspect ratios held exact instead of drifting on rounding."
|
|
version = "1.2.0"
|
|
license = { file = "LICENSE" }
|
|
readme = "README.md"
|
|
requires-python = ">=3.10"
|
|
# Pure stdlib maths; everything else is provided by ComfyUI core.
|
|
dependencies = []
|
|
|
|
[project.urls]
|
|
Repository = "https://github.com/dreevelle/ComfyUI-ResolutionTools"
|
|
|
|
[tool.comfy]
|
|
PublisherId = "dreevelle"
|
|
DisplayName = "ComfyUI-ResolutionTools"
|
|
Icon = "https://raw.githubusercontent.com/dreevelle/ComfyUI-ResolutionTools/main/assets/icon.png"
|