[PR #1814] [CLOSED] expend the image format type after the file is downloaded #7596

Closed
opened 2025-11-11 17:31:09 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/1814
Author: @Yanyutin753
Created: 4/28/2024
Status: Closed

Base: mainHead: new-dev


📝 Commits (3)

  • 5c887d0 feat: doge translation
  • 9af6c53 Merge pull request #1811 from open-webui/doge
  • 3321a1b expend the image format type after the file is downloaded

📊 Changes

3 files changed (+416 additions, -23 deletions)

View changed files

📝 backend/apps/images/main.py (+38 -22)
src/lib/i18n/locales/dg-DG/translation.json (+373 -0)
📝 src/lib/i18n/locales/languages.json (+5 -1)

📄 Description

Pull Request Checklist


Description

optimize the file name after the file is downloaded


Changelog Entry

Added

To expend the image format by changing method save_b64_image, save_url_image in /open-webui/backend/apps/images/main.py

Fixed

somethings, when we use third-party dall-e-3 similar to openai transfer, the download image format is not all png, i hope to expend the image format type

Additional Information

I have self-tested and it passed.

image

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/1814 **Author:** [@Yanyutin753](https://github.com/Yanyutin753) **Created:** 4/28/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `new-dev` --- ### 📝 Commits (3) - [`5c887d0`](https://github.com/open-webui/open-webui/commit/5c887d070916b82fe395648a453adbe8232df3d3) feat: doge translation - [`9af6c53`](https://github.com/open-webui/open-webui/commit/9af6c5300b7576798665e5900aa4269f71be4385) Merge pull request #1811 from open-webui/doge - [`3321a1b`](https://github.com/open-webui/open-webui/commit/3321a1b922588dfc7d137646c79ed69a3b327aeb) ✨ expend the image format type after the file is downloaded ### 📊 Changes **3 files changed** (+416 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `backend/apps/images/main.py` (+38 -22) ➕ `src/lib/i18n/locales/dg-DG/translation.json` (+373 -0) 📝 `src/lib/i18n/locales/languages.json` (+5 -1) </details> ### 📄 Description ## Pull Request Checklist --- ## Description ✨ optimize the file name after the file is downloaded --- ### Changelog Entry ### Added To expend the image format by changing method `save_b64_image`, `save_url_image` in `/open-webui/backend/apps/images/main.py` ### Fixed somethings, when we use third-party dall-e-3 similar to openai transfer, the download image format is not all png, i hope to expend the image format type ### Additional Information I have self-tested and it passed. ![image](https://github.com/open-webui/open-webui/assets/132346501/48a4d94b-bf85-4bcf-be02-f9a139f713d7) ![image](https://github.com/open-webui/open-webui/assets/132346501/da9a2e44-d21c-490b-9f45-1a64d71629ea) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 17:31:09 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#7596