[GH-ISSUE #17568] issue: matplotlub bug that shows the base64 image data #33861

Closed
opened 2026-04-25 07:44:22 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @david-hung on GitHub (Sep 18, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17568

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

v0.6.29

Ollama Version (if applicable)

No response

Operating System

Ubuntu 22.04

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

Plots should render normally without dumping the base64 image data to stdout.

Actual Behavior

When running Python code snippets that generate plots with Matplotlib, the console (stdout) is flooded with very large base64-encoded image strings (e.g., data:image/png;base64,…).

This output is extremely verbose and makes it difficult to view or scroll to the actual plot results. Instead of a clean plot render, users see pages of base64 data in the console.

Steps to Reproduce

  1. Start Openwebui
  2. Ask a query that generates a plot using matplotlib

Logs & Screenshots

Image Image

Identified code that needs to be fixed.
Image

Additional Information

No response

Originally created by @david-hung on GitHub (Sep 18, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/17568 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version v0.6.29 ### Ollama Version (if applicable) _No response_ ### Operating System Ubuntu 22.04 ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior Plots should render normally without dumping the base64 image data to stdout. ### Actual Behavior When running Python code snippets that generate plots with Matplotlib, the console (stdout) is flooded with very large base64-encoded image strings (e.g., data:image/png;base64,…). This output is extremely verbose and makes it difficult to view or scroll to the actual plot results. Instead of a clean plot render, users see pages of base64 data in the console. ### Steps to Reproduce 1. Start Openwebui 2. Ask a query that generates a plot using matplotlib ### Logs & Screenshots <img width="719" height="290" alt="Image" src="https://github.com/user-attachments/assets/6538a7ea-33b6-4fa0-a015-ddda57a93a66" /> <img width="720" height="376" alt="Image" src="https://github.com/user-attachments/assets/a2731fe1-5687-48ba-8492-3299060a40ca" /> Identified code that needs to be fixed. <img width="1218" height="279" alt="Image" src="https://github.com/user-attachments/assets/89874b4a-3cda-4363-a821-7b51336ecbc3" /> ### Additional Information _No response_
GiteaMirror added the bug label 2026-04-25 07:44:22 -05:00
Author
Owner

@man2004 commented on GitHub (Sep 20, 2025):

I did see this problem in v0.6.28 but I found fixed after installing v0.6.30.

<!-- gh-comment-id:3315060732 --> @man2004 commented on GitHub (Sep 20, 2025): I did see this problem in v0.6.28 but I found fixed after installing v0.6.30.
Author
Owner

@david-hung commented on GitHub (Sep 20, 2025):

@man2004 Oh I see. I'll close my issue and PR request then.

<!-- gh-comment-id:3315114677 --> @david-hung commented on GitHub (Sep 20, 2025): @man2004 Oh I see. I'll close my issue and PR request then.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#33861