[GH-ISSUE #6001] [Feature]: Add an inline OCR (Image-to-Text) button for uploaded images #3322

Closed
opened 2026-10-21 06:01:59 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @scavru on GitHub (Sep 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6001

Originally assigned to: @SpicyMarinara on GitHub.

Currently, when multiple images are uploaded to a conversation context, Marinara Engine processes them repeatedly with every new message sent. This significantly blows up the context window token usage and causes slower response times, especially when using heavy multimodal models.

However, users often upload images just to reference a block of text within them (e.g., descriptions, lore notes, or stats). If a user deletes the image to save tokens, that information is lost entirely from the chat.

Describe the solution you'd like

I would love to see an inline OCR / "Convert Image to Text" button directly on the uploaded image card in the chat window.

Clicking this button would:

  1. Extract the text from the image using a lightweight local OCR library (or via an active multimodal model call).
  2. Replace the image in the current attachment slot/chat context with the extracted raw text (or append it as a text note).
  3. Allow the user to safely remove the heavy image asset while keeping the essential textual information inside the conversation history.

Describe alternatives you've considered

Manually transcribing text from images or using external third-party OCR tools before uploading, which disrupts the immersive flow of using Marinara Engine.

Additional context

This feature would greatly optimize token management and context window economy, making long-form roleplay and game sessions much smoother and lighter on API costs.

Originally created by @scavru on GitHub (Sep 9, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6001 Originally assigned to: @SpicyMarinara on GitHub. ### Is your feature request related to a problem? Please describe. Currently, when multiple images are uploaded to a conversation context, Marinara Engine processes them repeatedly with every new message sent. This significantly blows up the context window token usage and causes slower response times, especially when using heavy multimodal models. However, users often upload images just to reference a block of text within them (e.g., descriptions, lore notes, or stats). If a user deletes the image to save tokens, that information is lost entirely from the chat. ### Describe the solution you'd like I would love to see an **inline OCR / "Convert Image to Text" button** directly on the uploaded image card in the chat window. Clicking this button would: 1. Extract the text from the image using a lightweight local OCR library (or via an active multimodal model call). 2. Replace the image in the current attachment slot/chat context with the extracted raw text (or append it as a text note). 3. Allow the user to safely remove the heavy image asset while keeping the essential textual information inside the conversation history. ### Describe alternatives you've considered Manually transcribing text from images or using external third-party OCR tools before uploading, which disrupts the immersive flow of using Marinara Engine. ### Additional context This feature would greatly optimize token management and context window economy, making long-form roleplay and game sessions much smoother and lighter on API costs.
bsakaguchi 2026-10-21 06:01:59 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 9, 2026):

Image

We already have this toggle in Advanced Parameters.

<!-- gh-comment-id:5606439675 --> @SpicyMarinara commented on GitHub (Sep 9, 2026): <img width="576" height="100" alt="Image" src="https://github.com/user-attachments/assets/4fb1da5b-d22a-480e-9514-b4402c1833db" /> We already have this toggle in Advanced Parameters.
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#3322
No description provided.