✨ 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.
🔄 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/1812
**Author:** [@Yanyutin753](https://github.com/Yanyutin753)
**Created:** 4/28/2024
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `image-dev`
---
### 📝 Commits (6)
- [`92c98ed`](https://github.com/open-webui/open-webui/commit/92c98eda2e7340bc7c8f32d33bc49cec8498b1bb) Merge pull request #1781 from open-webui/dev
- [`d401d77`](https://github.com/open-webui/open-webui/commit/d401d77cbd23a45bad7691619ce9604d5ed482fb) Merge pull request #1805 from open-webui/dev
- [`7de2bc8`](https://github.com/open-webui/open-webui/commit/7de2bc8dddd0433c6a37bd5d9d8eda2fa9b83304) ✨ optimize the file name after the file is downloaded
- [`849ef2c`](https://github.com/open-webui/open-webui/commit/849ef2cc8d965acd8b9d0d5bdd82d1b91b04d798) Merge branch 'open-webui:main' into image-dev
- [`1a52a08`](https://github.com/open-webui/open-webui/commit/1a52a080da21d72d1e56655380f18027d153b0c9) 📌 pylint codes
- [`7fed798`](https://github.com/open-webui/open-webui/commit/7fed798367693e1d602ffb9beb076b83ae74282f) Merge branch 'image-dev' of https://github.com/Yanyutin753/open-webui into image-dev
### 📊 Changes
**1 file changed** (+38 additions, -22 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/apps/images/main.py` (+38 -22)
</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.


---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1812
Author: @Yanyutin753
Created: 4/28/2024
Status: ❌ Closed
Base:
dev← Head:image-dev📝 Commits (6)
92c98edMerge pull request #1781 from open-webui/devd401d77Merge pull request #1805 from open-webui/dev7de2bc8✨ optimize the file name after the file is downloaded849ef2cMerge branch 'open-webui:main' into image-dev1a52a08📌 pylint codes7fed798Merge branch 'image-dev' of https://github.com/Yanyutin753/open-webui into image-dev📊 Changes
1 file changed (+38 additions, -22 deletions)
View changed files
📝
backend/apps/images/main.py(+38 -22)📄 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_imagein/open-webui/backend/apps/images/main.pyFixed
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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.