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.
1.5 KiB
1.5 KiB
Changelog
0.3.0 - 2026 August 5
Added
- Add reversible
padsizing that preserves pixel aspect ratio while producing divisible diffusion dimensions. - Add
Apply Autosize Transformfor applying the recorded image geometry to aligned masks. - Add
Restore Autosized Image/Maskfor removing diffusion padding and returning to the exact source dimensions. - Append reusable transform metadata to Image/Mask Autosize outputs.
0.2.0 - 2026 July 31
Changed
- Rebuilt Image Autosize with ComfyUI's V3 node API.
- Renamed the node display name to
Image/Mask Autosize. - Accept
IMAGEorMASKinputs and return the matching type. - Add
constraint_prioritywithmin_sizeandmax_sizepolicies. - Use ComfyUI's shared resize implementation to preserve device, dtype, and tensor precision for native interpolation modes.
- Replace the
multiplieroutput withscale_xand appendscale_y. - Report scales from the actual intermediate resize dimensions before an anchored crop.
- Prevent divisible-dimension rounding from producing a zero-sized output.
- Replace the Pillow interpolation list with
nearest-exact,bilinear,area,bicubic, andlanczos.
Compatibility
- Existing output index 3 now returns
scale_x;scale_yis output index 4. - The default
min_sizepriority preserves the previous sizing order. - Workflows using
nearest,box, orhammingmust select a supported interpolation mode. - Existing
IMAGEworkflows, input names, node ID, and the first three output positions remain unchanged.