Skip to content

fix(image): support single-channel images in Save Image (Advanced)#14761

Draft
bigcat88 wants to merge 1 commit into
masterfrom
fix/core/save-image-advanced-grayscale
Draft

fix(image): support single-channel images in Save Image (Advanced)#14761
bigcat88 wants to merge 1 commit into
masterfrom
fix/core/save-image-advanced-grayscale

Conversation

@bigcat88

@bigcat88 bigcat88 commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Single-channel images crashed _encode_image: channel-less (B, H, W) tensors failed the shape unpack with not enough values to unpack (expected 3, got 2), and explicit (B, H, W, 1) tensors had no pixel-format mapping

Key _FORMAT_SPECS by channel count (1/3/4) and add true grayscale encode paths - single-channel PNG (gray, gray16be) and Y-only EXR (grayf32le) - matching the standard Save Image node's grayscale behavior. RGB/RGBA output is byte-identical to before

Signed-off-by: bigcat88 <bigcat88@icloud.com>
@needles-mybot

Copy link
Copy Markdown

Draft PR — closing. Reopen when ready.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants