mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5095] Sprite-sheet generation ignores style profiles — bakes always use the user's active profile #2818
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2818
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?
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.
styleProfileIdappears zero times inpackages/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
styleProfileIdto the spritegenerate-sheetrequest (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.@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.