[PR #985] [MERGED] Support ComfyUI Video Combine animated WebP outputs #4871

Closed
opened 2026-10-22 04:11:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/985
Author: @cha1latte
Created: 5/18/2026
Status: ✅ Merged
Merged: 5/18/2026
Merged by: @cha1latte

Base: staging ← Head: feat/issue-980-comfyui-video-combine


📝 Commits (1)

  • 42b6e9c Support ComfyUI Video Combine WebP outputs

📊 Changes

2 files changed (+121 additions, -28 deletions)

View changed files

📝 packages/server/src/services/image/image-generation.ts (+54 -28)
➕ packages/server/test/image-generation-local.test.ts (+67 -0)

📄 Description

Linked issue

Closes #980

Why this change

  • ComfyUI workflows that produce animated WebP loops through Video Combine report those files separately from normal Preview Image / Save Image outputs, so generated loops were not available as chat/selfie image results.

What changed

  • Collect ComfyUI gifs outputs in addition to normal images outputs.
  • Prefer Video Combine-style outputs before still image outputs when both are present.
  • Preserve returned media metadata for WebP/GIF/JPEG instead of treating every non-JPEG ComfyUI result as PNG.
  • Added a focused local ComfyUI test for a Video Combine-style animated WebP history response.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Codex ran pnpm --filter @marinara-engine/server exec tsx --test test/image-generation-local.test.ts; it passed.
  • Codex ran pnpm check; it passed.
  • Codex did not run a real external ComfyUI Video Combine workflow in this environment. Manually verify with a real ComfyUI animated WebP workflow before treating that external-provider path as fully field-tested.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

N/A - server-side image output collection change.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/985 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/18/2026 **Status:** ✅ Merged **Merged:** 5/18/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `feat/issue-980-comfyui-video-combine` --- ### 📝 Commits (1) - [`42b6e9c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/42b6e9c21d2580cfc3e6a6bf1ae3d695ef8a2730) Support ComfyUI Video Combine WebP outputs ### 📊 Changes **2 files changed** (+121 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/services/image/image-generation.ts` (+54 -28) ➕ `packages/server/test/image-generation-local.test.ts` (+67 -0) </details> ### 📄 Description ## Linked issue Closes #980 ## Why this change - ComfyUI workflows that produce animated WebP loops through Video Combine report those files separately from normal Preview Image / Save Image outputs, so generated loops were not available as chat/selfie image results. ## What changed - Collect ComfyUI `gifs` outputs in addition to normal `images` outputs. - Prefer Video Combine-style outputs before still image outputs when both are present. - Preserve returned media metadata for WebP/GIF/JPEG instead of treating every non-JPEG ComfyUI result as PNG. - Added a focused local ComfyUI test for a Video Combine-style animated WebP history response. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Codex ran `pnpm --filter @marinara-engine/server exec tsx --test test/image-generation-local.test.ts`; it passed. - Codex ran `pnpm check`; it passed. - Codex did not run a real external ComfyUI Video Combine workflow in this environment. Manually verify with a real ComfyUI animated WebP workflow before treating that external-provider path as fully field-tested. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) N/A - server-side image output collection change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:20 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4871
No description provided.