Previously, when downloading a generated image, the filename was set to the AI's response text. This was not ideal as the response text could be long and contain characters that are not suitable for filenames.
This commit changes the behavior to use a generic, translatable filename for downloaded images. The new filename is 'ai_generated_image' (or its translation), which is more user-friendly and consistent.
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 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/17721
**Author:** [@Classic298](https://github.com/Classic298)
**Created:** 9/24/2025
**Status:** ✅ Merged
**Merged:** 9/25/2025
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `fix-image-download-filename`
---
### 📝 Commits (3)
- [`ab30b10`](https://github.com/open-webui/open-webui/commit/ab30b105e29f1ab06abfd918a83652eb5f78a5e9) fix(image): Use generic filename for downloaded images
- [`e201dc9`](https://github.com/open-webui/open-webui/commit/e201dc995ca8640f25cdf1e821d3779794b62d65) Update ImagePreview.svelte
- [`4f22a1c`](https://github.com/open-webui/open-webui/commit/4f22a1c5e4afc91b3efe37c1709eede7e230eb96) Update translation.json
### 📊 Changes
**2 files changed** (+16 additions, -10 deletions)
<details>
<summary>View changed files</summary>
📝 `src/lib/components/common/ImagePreview.svelte` (+15 -10)
📝 `src/lib/i18n/locales/en-US/translation.json` (+1 -0)
</details>
### 📄 Description
Previously, when downloading a generated image, the filename was set to the AI's response text. This was not ideal as the response text could be long and contain characters that are not suitable for filenames.
This commit changes the behavior to use a generic, translatable filename for downloaded images. The new filename is 'ai_generated_image' (or its translation), which is more user-friendly and consistent.
### Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
---
<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/17721
Author: @Classic298
Created: 9/24/2025
Status: ✅ Merged
Merged: 9/25/2025
Merged by: @tjbck
Base:
dev← Head:fix-image-download-filename📝 Commits (3)
ab30b10fix(image): Use generic filename for downloaded imagese201dc9Update ImagePreview.svelte4f22a1cUpdate translation.json📊 Changes
2 files changed (+16 additions, -10 deletions)
View changed files
📝
src/lib/components/common/ImagePreview.svelte(+15 -10)📝
src/lib/i18n/locales/en-US/translation.json(+1 -0)📄 Description
Previously, when downloading a generated image, the filename was set to the AI's response text. This was not ideal as the response text could be long and contain characters that are not suitable for filenames.
This commit changes the behavior to use a generic, translatable filename for downloaded images. The new filename is 'ai_generated_image' (or its translation), which is more user-friendly and consistent.
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.