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/1815
**Author:** [@Yanyutin753](https://github.com/Yanyutin753)
**Created:** 4/28/2024
**Status:** ✅ Merged
**Merged:** 4/30/2024
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `new-dev`
---
### 📝 Commits (2)
- [`3321a1b`](https://github.com/open-webui/open-webui/commit/3321a1b922588dfc7d137646c79ed69a3b327aeb) ✨ expend the image format type after the file is downloaded
- [`80413a7`](https://github.com/open-webui/open-webui/commit/80413a7628a86376b0d990e6d792b92e5a954404) refac
### 📊 Changes
**1 file changed** (+36 additions, -21 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/apps/images/main.py` (+36 -21)
</details>
### 📄 Description
## Pull Request Checklist
---
## Description
✨ optimize the file name after the file is downloaded
fix #1867
---
### 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/1815
Author: @Yanyutin753
Created: 4/28/2024
Status: ✅ Merged
Merged: 4/30/2024
Merged by: @tjbck
Base:
dev← Head:new-dev📝 Commits (2)
3321a1b✨ expend the image format type after the file is downloaded80413a7refac📊 Changes
1 file changed (+36 additions, -21 deletions)
View changed files
📝
backend/apps/images/main.py(+36 -21)📄 Description
Pull Request Checklist
Description
✨ optimize the file name after the file is downloaded
fix #1867
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.