[GH-ISSUE #150] [Feature]: Inline Image Embedding #47

Closed
opened 2026-10-20 17:24:29 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @willdel on GitHub (Apr 20, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/150

What problem does this solve?

Apologies if this feature is already available, I wasn't able to find it.
I would like to request the ability to embed inline images in the chat. For example, in SillyTavern, I was able to use the lorebook to trigger pre-made images (URL or local) that would show a specific illustration of the scene without having to use AI image generation. A good SFW example is if an NPC was at the beach and kisses {{user}}, a specific image showing the scene would show in the chat using NPC,Beach,Kiss or the {{user}} and their party come across a horde of goblins NPC, GoblinHorde,Fight.
As best I can tell, right now users must manually switch backgrounds or rely on the sprite system, which is designed for character expressions, not scene‑specific illustrations. I also tried to use HTML which is hit or miss and regex edits are needed.

Proposed solution

Add a universal image‑embed syntax (e.g., [img: URL or local path] or alt) that is parsed and displayed inline when a message is rendered. This could be used by both users and AI characters (if the model outputs the tag).
Secondary, but If possible, I would also like the ability to display webm files as well.

Alternatives considered

Using the Background agent with custom backgrounds: requires separate setup and doesn't allow inline images alongside text.
HTML agent injection: possible but hacky, requires technical knowledge and manual file‑path management.

Additional context

Some roleplayers prepare visual assets for key moments and want to share them seamlessly during the narrative. This would also allow characters to "show" things (like a drawn map, a photograph in‑story, etc.) without leaving the chat interface.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @willdel on GitHub (Apr 20, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/150 ## What problem does this solve? Apologies if this feature is already available, I wasn't able to find it. I would like to request the ability to embed inline images in the chat. For example, in SillyTavern, I was able to use the lorebook to trigger pre-made images (URL or local) that would show a specific illustration of the scene without having to use AI image generation. A good SFW example is if an NPC was at the beach and kisses {{user}}, a specific image showing the scene would show in the chat using ![NPC,Beach,Kiss](127.0.0.1/images/image.png) or the {{user}} and their party come across a horde of goblins ![NPC, GoblinHorde,Fight](127.0.0.1/images/image.png). As best I can tell, right now users must manually switch backgrounds or rely on the sprite system, which is designed for character expressions, not scene‑specific illustrations. I also tried to use HTML which is hit or miss and regex edits are needed. ## Proposed solution Add a universal image‑embed syntax (e.g., [img: URL or local path] or ![alt](url)) that is parsed and displayed inline when a message is rendered. This could be used by both users and AI characters (if the model outputs the tag). Secondary, but If possible, I would also like the ability to display webm files as well. ## Alternatives considered Using the Background agent with custom backgrounds: requires separate setup and doesn't allow inline images alongside text. HTML agent injection: possible but hacky, requires technical knowledge and manual file‑path management. ## Additional context Some roleplayers prepare visual assets for key moments and want to share them seamlessly during the narrative. This would also allow characters to "show" things (like a drawn map, a photograph in‑story, etc.) without leaving the chat interface. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:24:29 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Apr 20, 2026):

We already have that.

Image Image
<!-- gh-comment-id:4283783342 --> @SpicyMarinara commented on GitHub (Apr 20, 2026): We already have that. <img width="972" height="844" alt="Image" src="https://github.com/user-attachments/assets/8c87f5bb-8724-4f0e-81e3-57d8f16df15d" /> <img width="820" height="246" alt="Image" src="https://github.com/user-attachments/assets/ad6dbe17-ce4c-4f73-8f4b-d43cbc702021" />
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#47
No description provided.