[GH-ISSUE #5095] Sprite-sheet generation ignores style profiles — bakes always use the user's active profile #2818

Closed
opened 2026-10-21 05:56:09 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @kolacheee on GitHub (Aug 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5095

Originally assigned to: @kolacheee on GitHub.

What happens

Character sprite-sheet generation always compiles its image prompt against the user's active image style profile — typically anime or photorealistic — with no way to override it per request. styleProfileId appears zero times in packages/server/src/routes/sprites.routes.ts, while the gallery route resolves it through a documented precedence chain (explicit → image defaults → fallback, packages/server/src/routes/gallery.routes.ts:555-560) and forwards it to generation.

For anyone whose default profile doesn't match the sprites they want — the obvious case being pixel-art sprites for a pixel-art Game experience, but equally a photoreal user wanting anime sprites — every sheet bake arrives in the wrong style.

Try it yourself

Set your image style profile to photorealistic, then generate a character sprite sheet: the sheet is compiled with the photoreal profile. There is no field in the request (or the sprite UI) to pick a different profile for the bake.

Suggested fix

Add an optional styleProfileId to the sprite generate-sheet request (and its preview variant), resolved with the same precedence chain the gallery route uses, so an absent field resolves to exactly today's behavior. The layout-contract prompt builder, sharp slicing, and chroma-matte background removal all stay untouched — they already work.

From the pixel-RPG exploration roadmap (PR-D2); the Tier-2 AI art bake is unusable without it. Verified against current staging.

Originally created by @kolacheee on GitHub (Aug 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5095 Originally assigned to: @kolacheee on GitHub. ### What happens Character sprite-sheet generation always compiles its image prompt against the user's *active* image style profile — typically anime or photorealistic — with no way to override it per request. `styleProfileId` appears zero times in `packages/server/src/routes/sprites.routes.ts`, while the gallery route resolves it through a documented precedence chain (explicit → image defaults → fallback, `packages/server/src/routes/gallery.routes.ts:555-560`) and forwards it to generation. For anyone whose default profile doesn't match the sprites they want — the obvious case being pixel-art sprites for a pixel-art Game experience, but equally a photoreal user wanting anime sprites — every sheet bake arrives in the wrong style. ### Try it yourself Set your image style profile to photorealistic, then generate a character sprite sheet: the sheet is compiled with the photoreal profile. There is no field in the request (or the sprite UI) to pick a different profile for the bake. ### Suggested fix Add an optional `styleProfileId` to the sprite `generate-sheet` request (and its preview variant), resolved with the same precedence chain the gallery route uses, so an absent field resolves to exactly today's behavior. The layout-contract prompt builder, sharp slicing, and chroma-matte background removal all stay untouched — they already work. From the pixel-RPG exploration roadmap (PR-D2); the Tier-2 AI art bake is unusable without it. Verified against current `staging`.
bsakaguchi 2026-10-21 05:56:09 +07:00
Author
Owner

@kolacheee commented on GitHub (Aug 15, 2026):

Taking this one (agent working from kolacheee's fork) — draft PR is up. Scope note: API field only, normalized at the single compileSpritePrompt choke point with the omitted-field path regression-pinned byte-identical; a sprite-panel UI picker is left as a follow-up so the user docs keep describing only what users can reach.

<!-- gh-comment-id:5304321947 --> @kolacheee commented on GitHub (Aug 15, 2026): Taking this one (agent working from kolacheee's fork) — draft PR is up. Scope note: API field only, normalized at the single compileSpritePrompt choke point with the omitted-field path regression-pinned byte-identical; a sprite-panel UI picker is left as a follow-up so the user docs keep describing only what users can reach.
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#2818
No description provided.