mirror of
https://github.com/Comfy-Org/comfy-remote-nodes.git
synced 2026-11-04 23:37:22 +00:00
[PR #4] [MERGED] feat(serialization): decode image:png_base64_batch envelope #4
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-remote-nodes#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-remote-nodes/pull/4
Author: @Kosinkadink
Created: 5/14/2026
Status: ✅ Merged
Merged: 5/14/2026
Merged by: @Kosinkadink
Base:
main← Head:feat/batch-image-envelope📝 Commits (1)
ed63c5afeat(serialization): decode image:png_base64_batch envelope📊 Changes
3 files changed (+88 additions, -3 deletions)
View changed files
📝
client.py(+8 -2)📝
protocol.py(+6 -0)📝
serialization.py(+74 -1)📄 Description
Track 1 (client side) — multi-image envelope
Companion PR to comfy-rnp-server#7. Implements the proxy_node side of the multi-image envelope contract so providers whose upstream returns
n > 1(Ideogram pilot in this round; Recraft / Grok / OpenAI to follow) surface as real batched[B, H, W, C]tensors in the workflow runtime.What's in this PR
Capability.IMAGE_PNG_BASE64_BATCH(image:png_base64_batch) added toprotocol.Capability, mirroringcomfy_rnp_protocol/constants.py.decode_image_envelope()now dispatchespng_base64_batchto a new_decode_image_batch_envelope()helper that stacks each PNG frame into a[B, H, W, C]tensor.shape[0]; per-frame H/W mismatch is also a hard error. Both surface asRnpProtocolErrorrather than silently dropping or padding frames — matches the SVG decoder'scountintegrity check.IMAGE_PNG_BASE64_BATCHadded toclient.CLIENT_CAPABILITIESso the server's per-request negotiator (client_advertises_capabilityincomfy_rnp_protocol.capabilities) lights up the batch path.Back-compat
Single-frame encodings (
png_base64/jpeg_base64/webp_base64) decode unchanged. Servers that don't advertise the batch encoding (older versions, future providers that haven't migrated yet) keep working.Verification
End-to-end synthetic test (white + black 32×64 PNGs):
batch shape (2, 32, 64, 3) batch decode ok single-frame regression ok mismatch err ok: image batch envelope frame count 2 does not match declared s empty-frames err ok: image batch envelope missing or empty 'frames' list capability token okCompanion PR
num_images=2SxS workflow undernotes/sxs_ideogram_batch.json).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.