Introduce reversible padding support and transform metadata for Image/Mask Autosize. - Add a new 'pad' crop_mode that preserves aspect ratio with reversible padding. - Introduce AutosizeTransform dataclass and AUTOSIZE_TRANSFORM IO type. - Add helper functions (_to_samples, _from_samples, _apply_transform, _resize_samples) and use them in ImageAutosize. - Add two nodes: ImageAutosizeApplyTransform and ImageAutosizeRestore to apply transforms to aligned masks and restore original dimensions. - Update tests, README, and CHANGELOG and bump package version to 0.3.0.
15 lines
759 B
TOML
15 lines
759 B
TOML
# pyproject.toml
|
|
[project]
|
|
name = "comfyui-imageautosize" # Unique identifier for your node. Immutable after creation.
|
|
description = "A node for ComfyUI that provides a convenient way of resizing or cropping an image for diffusion tasks."
|
|
version = "0.3.0" # Custom node version. Must be semantically versioned.
|
|
license = { file = "LICENSE.txt" }
|
|
dependencies = [] # Filled in from requirements.txt
|
|
|
|
[project.urls]
|
|
Repository = "https://github.com/SparknightLLC/ComfyUI-ImageAutosize"
|
|
|
|
[tool.comfy]
|
|
PublisherId = "sparknight" # TODO (fill in Publisher ID from Comfy Registry Website).
|
|
DisplayName = "ComfyUI-ImageAutosize" # Display name for the Custom Node. Can be changed later.
|
|
Icon = "https://example.com/icon.png" # SVG, PNG, JPG or GIF (MAX. 800x400px) |