mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5881] [MERGED] fix(mobile): bound illustration previews through large PNG metadata #6979
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#6979
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5881
Author: @SpicyMarinara
Created: 9/6/2026
Status: ✅ Merged
Merged: 9/6/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/5870-bounded-mobile-images📝 Commits (2)
8134168chore: track iPhone image decode follow-upc247211fix(mobile): bound decoded previews through large PNG metadata📊 Changes
4 files changed (+159 additions, -87 deletions)
View changed files
📝
CHANGELOG.md(+2 -0)📝
e2e/illustration-arrival.e2e.ts(+93 -64)📝
packages/server/src/services/image/image-thumbnail.ts(+22 -10)📝
scripts/regressions/gallery-previews.regression.ts(+42 -13)📄 Description
Linked issue
Refs #5870. Keep the issue open for physical-iPhone confirmation.
Why
The maintainer confirmed that the installed iPhone Home Screen app still reloads or stays black around Illustrator image arrival on Docker build
36f5379b2e7d. No appearance-setting workaround is acceptable. Inspection found two reproducible gaps in the previous mitigation: width-only previews leave portrait/tall images oversized, and static PNGs with more than 64 KiB of metadata before IDAT fall back to the full original.What changed
Automated evidence
naturalWidth1024 instead of 683). Patched production Docker: 21/21 selected browser checks pass across desktop Chromium, mobile Chromium and mobile WebKit, including saved automatic arrival before the remaining agent stream closes and saved-result recovery after reopening.pnpm checkpasses. Local gallery regressions (6/6) and Roleplay swipe-media regression pass. Production Docker API smoke with normal rate limits passes health/SPA/upload/preview/original checks. Local Docker is Linux/arm64; CI additionally builds Linux/amd64.c247211d7with no actionable findings.Validation / manual test plan
Proof boundaries and risk
The physical iPhone black-screen/GPU/process failure was not reproduced or profiled here. These tests prove reduced decoded dimensions and corrected delivery paths, not that every WebKit black screen is eliminated. The user's original GPT Image output was unavailable; large-metadata fixtures are synthetic. Paid provider calls were not made. Animated/unsupported images and deliberately opened originals retain the existing full-size behavior. Shared compact background/game-asset thumbnails also use the dimension bound; scene backgrounds and sprites are not changed.
UI evidence
Before/after mobile WebKit screenshots and detailed runtime evidence. Synthetic content only; download/open
proof.htmlto view the embedded images. Screenshots retain the existing layout; assertions demonstrate the reduced decoded pixel sizes.Docs and release notes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.