mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #20168] issue: hardcoded MIME type in profile image endpoints prevents correct rendering of non-PNG images #57776
Reference in New Issue
Block a user
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 @landerrosette on GitHub (Dec 25, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20168
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.43
Ollama Version (if applicable)
No response
Operating System
Debian 12
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When a model or user profile image is stored with a valid data URI (e.g.,
data:image/svg+xml;base64…), the corresponding endpoints (/models/model/profile/imageand/users/{id}/profile/image) should return the image with correctContent-Typeheader.Actual Behavior
The backend endpoints currently hardcode the response media type to
image/png, regardless of the actual data URI string stored in the database.a7271532f8/backend/open_webui/routers/models.py (L304-L317)In contrast, the Model Editor view works fine because it renders the base64 string directly from the model metadata, bypassing the two API endpoints.
Steps to Reproduce
Logs & Screenshots
Additional Information
No response
@owui-terminator[bot] commented on GitHub (Dec 25, 2025):
🔍 Similar Issues Found
I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:
#19519 issue: Base64 encoded images included in API responses
by luke-wren • Nov 26, 2025 •
bug#20091 issue: image is regarded as binary in temp chat
by funnycups • Dec 22, 2025 •
bug#19393 issue: shared chats with images - images won't show
by Classic298 • Nov 23, 2025 •
bug#18995 issue: image generation and edition doesn’t work on temporary chats
by futureshield • Nov 06, 2025 •
bug#20095 issue: temporary chat causes image attachments to appear as text
by mudkipdev • Dec 22, 2025 •
bugShow 5 more related issues
#17887 issue: error mime type
by tbs575 • Sep 29, 2025 •
bug#19361 issue: Unicode rendering issues when using HTTP header-based authentication
by tlhr • Nov 21, 2025 •
bug#16976 issue: Can't properly display base64-encoded images
by czh020110 • Aug 27, 2025 •
bug#19019 issue: Image generation doesn't work with OpenRouter
by vladkvit • Nov 07, 2025 •
bug#19438 issue: Icon loading regression
by JoelShepard • Nov 24, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@Classic298 commented on GitHub (Dec 26, 2025):
thanks