Commit Graph
46 Commits
Author SHA1 Message Date
EnragedAntelope 862cf766a8 Update version to 2.1.04 in pyproject.toml 2025-11-08 09:10:58 -05:00
EnragedAntelope f3a02e2d7d Refactor ConstrainResolution class and methods 2025-11-08 09:10:43 -05:00
EnragedAntelope 5f891fe131 Bump version to 2.1.03 and update dependencies
Updated version number and removed comfy_api from dependencies.
2025-11-08 09:03:03 -05:00
EnragedAntelope 81364107cb Refactor ConstrainResolution class and methods 2025-11-08 09:02:46 -05:00
EnragedAntelope 7a919b73e8 Update README to reflect correct dependencies
Removed reference to 'comfy_api' from dependencies.
2025-11-08 09:01:58 -05:00
EnragedAntelope ea32ad9879 Remove comfy_api from requirements 2025-11-08 09:01:04 -05:00
EnragedAntelope b6de74ba69 Update version to 2.1.02 in pyproject.toml 2025-11-08 08:56:15 -05:00
EnragedAntelope e07274aab3 Refactor ConstrainResolution class and methods 2025-11-08 08:56:03 -05:00
EnragedAntelope d0e426a5c2 Update version number to 2.1.01 in pyproject.toml 2025-11-08 08:44:15 -05:00
EnragedAntelope b6f17385d5 Refactor enums and update ConstrainResolution class 2025-11-08 08:40:28 -05:00
EnragedAntelope d3f9b7ed9d Merge pull request #5 from EnragedAntelope/claude/comfyui-v3-migration-011CUuMgBJSmRsg85TSsbfRi
Update defaults and limits for production use
2025-11-08 08:13:44 -05:00
Claude 27c854454b Update defaults and limits for production use
Changes:
- Set crop_as_required default to True (was False)
  Rationale: Most users need exact dimensions for image-to-video and
  other strict requirements. Cropping is now the default behavior for
  immediate compatibility with downstream processes.

- Increase max resolution limit from 16384 to 65536 (64k)
  Rationale: No technical reason to limit at 16k. Users working with
  high-resolution content need flexibility up to 64k range.

- Update node description to reflect crop-enabled-by-default behavior

- Comprehensive README overhaul:
  * Added "Why Use This Node?" section explaining use cases
  * Detailed documentation of all inputs with ranges and recommendations
  * Comprehensive outputs section with descriptions
  * Added multiple workflow examples (I2V, SDXL, batch, portraits)
  * Advanced tips section for edge cases
  * Technical details on algorithms and validation
  * Installation instructions for ComfyUI Manager and manual
  * ComfyUI v3 compatibility notes
  * Version history and support information

No version bump - still v2.1.0 as functionality unchanged
2025-11-08 13:11:56 +00:00
EnragedAntelope 827a1aa33d Merge pull request #4 from EnragedAntelope/claude/comfyui-v3-migration-011CUuMgBJSmRsg85TSsbfRi
Add image resizing with intelligent cropping support
2025-11-08 08:09:00 -05:00
Claude 7e60424416 Add image resizing with intelligent cropping support
Features:
- Actual image resizing using torch bilinear interpolation
- Optional cropping to preserve aspect ratio when rounding causes deviations
- Configurable crop position (center, top, bottom, left, right)
- Resized image now output first, followed by original passthrough
- Input validation with detailed error messages
- Comprehensive tooltips on all inputs and outputs
- Reorganized UI with logical grouping of parameters
- Enhanced description with usage tips
- Max value constraints added to prevent unreasonable inputs

Technical improvements:
- Use torch.nn.functional.interpolate for high-quality resizing
- Smart crop algorithm that resizes first then crops to preserve quality
- Proper tensor shape handling [batch, height, width, channels]
- Aspect ratio deviation warnings when crop is disabled
- min/max bounds on all numeric inputs

Breaking changes:
- Output order changed: resized_image is now first output
- Output names simplified (width/height instead of constrained_width/constrained_height)
- execute() signature expanded with crop parameters

Bump version to 2.1.0
2025-11-08 13:06:46 +00:00
EnragedAntelope 4fe2cb4cc8 Merge pull request #3 from EnragedAntelope/claude/comfyui-v3-migration-011CUuMgBJSmRsg85TSsbfRi
Migrate ConstrainResolution node to ComfyUI v3 spec
2025-11-07 18:06:12 -05:00
Claude de432c6fbe Migrate ConstrainResolution node to ComfyUI v3 spec
- Convert node to use comfy_api.latest with io.ComfyNode base class
- Replace INPUT_TYPES() with define_schema() returning io.Schema
- Convert execution method from process() to execute() classmethod
- Implement ConstraintModeEnum as io.ComboInput for dropdown options
- Update all inputs to use v3 type system (io.Image, io.Int, etc.)
- Update all outputs to use io.NodeOutput wrapper
- Replace NODE_CLASS_MAPPINGS with comfy_entrypoint() pattern
- Add ConstrainResolutionExtension class for node registration
- Update __init__.py to export comfy_entrypoint
- Add comfy_api dependency to pyproject.toml and requirements.txt
- Bump version to 2.0.0 to reflect major API change
2025-11-07 23:00:32 +00:00
EnragedAntelope 812f4e8cb3 Update pyproject.toml 2025-07-26 07:58:16 -04:00
EnragedAntelope 34485e6fee Update README.md 2025-07-26 07:52:18 -04:00
EnragedAntelope e035ed905f Update nodes.py 2025-07-26 07:44:49 -04:00
EnragedAntelope 27b034dac5 Merge pull request #1 from ComfyNodePRs/update-publish-yaml
Update Github Action for Publishing to Comfy Registry
2025-03-30 09:06:11 -04:00
EnragedAntelope 992c897a3e Update LICENSE 2025-01-28 11:30:52 -05:00
EnragedAntelope 7ce36167aa Update LICENSE 2025-01-28 11:30:18 -05:00
EnragedAntelope 4586f38bad Update README.md 2025-01-28 11:29:43 -05:00
snomiao fd2ce78ff7 chore(publish): update GitHub Actions workflow for node publishing
- Add permissions for writing issues
- Restrict job execution to specific repository owner
- Update action version from `main` to `v1` for stability
- Clean up token reference in publish step
2025-01-25 15:56:33 +00:00
EnragedAntelope 39705dc183 Update README.md 2025-01-24 23:17:55 -05:00
EnragedAntelope 564766ba01 Update pyproject.toml 2025-01-24 22:14:21 -05:00
EnragedAntelope 4fbfc32f2c Create publish_action.yml 2025-01-24 22:13:52 -05:00
EnragedAntelope b0aaceb511 Update README.md 2025-01-24 22:06:02 -05:00
EnragedAntelope 4024ff8851 Add multiple of as a constraint 2025-01-24 21:50:14 -05:00
EnragedAntelope 75a4ce349f Update README.md 2025-01-24 21:49:27 -05:00
EnragedAntelope f9e1253373 Update README.md 2025-01-24 15:14:55 -05:00
EnragedAntelope fc6c1a0dc1 Update pyproject.toml 2025-01-24 15:06:07 -05:00
EnragedAntelope 74071fd56a Add files via upload 2025-01-24 14:57:21 -05:00
EnragedAntelope baf7d4a75c Update nodes.py 2025-01-24 14:46:47 -05:00
EnragedAntelope eca432361b Update README.md 2025-01-24 14:07:01 -05:00
EnragedAntelope faf9eec196 Standardize output naming convention 2025-01-24 14:01:37 -05:00
EnragedAntelope 4ee9787eec Update README.md 2025-01-24 13:50:10 -05:00
EnragedAntelope 05c3c98d52 Update README.md 2025-01-24 13:48:49 -05:00
EnragedAntelope acc197334b Update README.md 2025-01-24 13:47:28 -05:00
EnragedAntelope 678ff3dd9f Update README.md 2025-01-24 13:46:15 -05:00
EnragedAntelope 3e60682ec9 Update README.md 2025-01-24 13:45:51 -05:00
EnragedAntelope 229a03e51b Update README.md 2025-01-24 13:44:40 -05:00
EnragedAntelope eb702ddcff Initial code. 2025-01-24 13:42:40 -05:00
EnragedAntelope c5cf655973 Update README.md 2025-01-24 13:41:47 -05:00
EnragedAntelope aba831c677 Update README.md 2025-01-24 13:41:15 -05:00
EnragedAntelope 7e7d5b0092 Initial commit 2025-01-24 13:40:43 -05:00