mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8447] [Issue]: Preserve colored foreground details during sprite matte cleanup #8356
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#8356
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 @SpicyMarinara on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8447
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Builtin sprite background cleanup can misclassify blue/cyan foreground details as green spill, removing narrow feather ribbons or recoloring non-matte details near the cutout edge.
Expected behavior
Flat chroma backgrounds, enclosed matte pockets and true spill should be removed while opaque blue/gold foreground details remain intact.
Actual behavior
The shared builtin cleanup uses green minus the average of red/blue as a spill score. Pale blue RGB(120,200,230) scores as positive green spill even though blue is its strongest channel. The subsequent neighborhood/projection passes can reduce alpha or rewrite foreground colors. A user also reported missing blue/gold ribbons between an intact green-background Wardrobe image and its Home cutout in Otome Hearth. The screenshots alone do not identify the cleanup engine or prove the exact runtime cause.
Steps to reproduce
Environment
a7688a071ca94459e93457d6e126678977acce7bfor local investigation.Logs, screenshots, or video
The maintainer supplied paired Wardrobe/Home screenshots. Synthetic pixel fixtures confirm that old staging changes 245 of 1,872 foreground pixels while the repaired builtin changes 0; all 7,344 key-background pixels remain transparent. Proof: https://gist.github.com/SpicyMarinara/79f20cf85eca708adce8a976fba25d34. This does not claim the screenshot asset was replayed exactly.
Additional context
Implementation owner: @SpicyMarinara (Codex), isolated branch
fix/preserve-cutout-feathers. Engine host PR: #8448. The optional revision-2 status/result metadata coordinates cache refresh with Pasta-Devs/Marinara-Agents#1849, which re-cleans the original source through builtin and retains the old visible derivative during refresh/failure.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Oct 29, 2026):
Fixed in staging by #8448. The reviewed host changes are present at
387abb65c8. Post-merge pnpm check, sprite regressions and the combined Otome cleanup/gallery/persistence replay passed on that actual merged tree. Exact synthetic proof and the original-asset/provider/device limits are recorded in https://github.com/Pasta-Devs/Marinara-Engine/pull/8448#issuecomment-6494265042. Otome cache refresh is being delivered separately in Pasta-Devs/Marinara-Agents#1849.