mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3964] [Issue]: Add Set as avatar action to gallery images #2141
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#2141
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 (Jul 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3964
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Allow users to set an existing character or persona gallery image as its avatar directly. This removes the need to download the image and re-upload it through the avatar picker.
Expected behavior
Each gallery image should offer a "Set as avatar" action. Selecting it should copy the image to the avatars directory, update the owning character or persona's avatarPath, retain the original gallery image, and reset avatarCrop or open the existing crop editor.
Actual behavior
Gallery images cannot be applied directly as avatars. Users must download the desired image and then re-upload it through the avatar picker; the avatar generator cannot reuse an existing gallery image.
Steps to reproduce
Environment
Logs, screenshots, or video
No logs, screenshots, or video provided.
Additional context
The action should support both characters and personas and target the owner of the gallery where it was invoked, including in multi-character chats. Suggested implementation: add a gallery action and endpoint that validates the destination filename, copies the gallery file into DATA_DIR/avatars/, updates avatarPath, and refreshes the character or persona. Existing gallery routes, avatar filename validation, avatar upload/generator logic, avatarCrop handling, and the SillyTavern bulk import copy behavior may be reusable. The current alternatives are download/re-upload or generating a new portrait. A maintainer responded that the feature would be added.
Discord thread: FR Add a "Set as avatar" action on gallery images (promote a generated chat image to a ch
Discord thread link: https://discord.com/channels/1417099416812392641/1529683903256854698
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (3 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: