feat(animation-asset): add animation asset generation workflow#32
Draft
adamhuang17 wants to merge 1 commit into
Draft
feat(animation-asset): add animation asset generation workflow#32adamhuang17 wants to merge 1 commit into
adamhuang17 wants to merge 1 commit into
Conversation
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary #28
Supports a single reference asset supplied either as an uploaded PNG, JPEG or as a public HTTP(S) URL, with upload-size, image-content, and request-parameter validation.
Builds a fixed six-phase animation prompt directly from the user-provided action_prompt, while instructing the model to preserve the subject’s identity, proportions, design, camera angle, and rendering style.
Makes exactly one image-editing request to QNAIGC using openai/gpt-image-2 and requires a 1536×1024, 3×2 Sprite Sheet. A deterministic local mock provider is also included for validating the complete workflow without consuming model quota.
Creates the Manifest before generation and deterministically splits the Sprite Sheet into six 512×512 PNG frames in row-major order, with either preserved positioning or optional bottom-center alignment.
Builds a six-frame GIF and performs structural quality checks for frame count, dimensions, empty content, Alpha coverage, edge contact, and exact duplicate frames.
Exposes background-job status and asset retrieval endpoints, and persists request metadata, the compiled generation prompt, Manifest, raw and processed frames, quality report, Sprite Sheet, and GIF.
Testing
Added automated tests covering:
Known limitations