[PR #17721] [MERGED] fix: Use generic filename for downloaded images #11323

Closed
opened 2025-11-11 19:28:49 -06:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: fix-image-download-filename


📝 Commits (3)

  • ab30b10 fix(image): Use generic filename for downloaded images
  • e201dc9 Update ImagePreview.svelte
  • 4f22a1c Update 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.

## 📋 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>
GiteaMirror added the pull-request label 2025-11-11 19:28:49 -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#11323