mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1944] [Issue]: Inline avatarPath images do not use avatar thumbnails #952
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#952
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 @Promansis on GitHub (Jun 2, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1944
Originally assigned to: @Promansis on GitHub.
Summary
Inline avatar images stored only in
avatarPathare displayed as fulldata:image/...sources instead of using the avatar thumbnail cache. This appears to affect legacy/imported avatar data and may also affect malformed scheme-wrapped inline values such as*://data:....Expected behavior
Character/avatar list surfaces that request thumbnails should use the same thumbnail behavior for inline
avatarPathimages as they do for managed avatar files.Actual behavior
The thumbnail path only considers
avatarFilenameandavatarFilePath. When an avatar has onlyavatarPathwith inline image data, the UI falls back to rendering the original source directly.Steps to reproduce
avatarPathas inline image data, with noavatarFilePathoravatarFilename.CharacterAvatarImagewiththumbnailSize, such as the character list or card view.avatarPathsource instead of a generated thumbnail cache URL.Impact area
Environment
fix/1938-avatar-thumbnailsLogs, screenshots, or video
No logs or screenshots available. Static investigation found the thumbnail eligibility gate in
src/features/catalog/characters/components/CharacterAvatarImage.tsxonly checksavatarFilenameandavatarFilePath, and the Rust thumbnail command only accepts managed avatar files under the avatars directory.Regression notes
Not confirmed. This may be a remaining gap from the managed avatar thumbnail work rather than a new regression.
Additional context
Likely fix: allow the avatar thumbnail resolver to accept inline
avatarPathimage data, decode/hash/cache it safely, and haveCharacterAvatarImagepasssrcwhen managed avatar metadata is absent. If actual stored data includes scheme-wrapped inline URLs likeasset://data:image/..., normalize those todata:image/...before thumbnail/display handling.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: