- Add resize_method input (lanczos default, bicubic, bilinear, nearest-exact, area) backed by comfy.utils.common_upscale, with F.interpolate fallback outside ComfyUI; clamp bicubic/lanczos overshoot to [0, 1] - Fix rare off-by-one where the crop-path intermediate resize could truncate below the target dimension, yielding output 1px smaller than the reported width/height - Replace StrEnum with (str, Enum) so the pack imports on Python 3.10 - Remove unused numpy dependency from requirements.txt and pyproject - Switch print() to logging (crop notices at debug level) - Bump version to 2.3.0, sync README (inputs, technical details, version history), add requires-python - Stop tracking .claude/settings.local.json; expand tests to 36 covering execute() output shapes, all resize methods, crop positions Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
29 lines
697 B
TOML
29 lines
697 B
TOML
[project]
|
|
name = "constrainresolution"
|
|
description = "Given min/max resolution constraints, this automatically suggests optimal dimensions while preserving aspect ratio. Ideal for Image to Image (I2I) and Image to Video (I2V) workflows!"
|
|
version = "2.3.0"
|
|
license = {file = "LICENSE"}
|
|
requires-python = ">=3.10"
|
|
dependencies = []
|
|
|
|
[project.urls]
|
|
Repository = "https://github.com/EnragedAntelope/ComfyUI-ConstrainResolution"
|
|
# Used by Comfy Registry https://comfyregistry.org
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
addopts = "--import-mode=importlib"
|
|
|
|
[tool.comfy]
|
|
PublisherId = "enragedantelope"
|
|
DisplayName = "ComfyUI-ConstrainResolution"
|
|
Icon = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|