[GH-ISSUE #2935] Image Generation Gallery #51738

Closed
opened 2026-05-05 12:55:13 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @EJStaats on GitHub (Jun 8, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/2935


Perhaps a bit of a niche problem...
I have a domain pointing to my open webui instance so that I can access it anywhere over the internet (and share the instance with some friends). The flow of data is as follows:
client -> accesses open webui through "https://my-domain.com" -> is proxied through my DNS provider (Cloudflare) -> resolves at my own reverse proxy server -> reverse proxy server points to server (docker container) running open web-ui.
Stable-diffusion webui is running on the same network as the open webui server, so there is no issues accessing it.
The issue comes with previewing the generated image. Depending on the image generation settings (eg. if the generation takes too long), the preview will not be shown in the chat, even though the image does eventually get generated and appears in /cache/image/generations/ folder.
I have narrowed it down to a proxy_timeout setting on Cloudflare's end. They have a 100 second timeout for non-enterprise accounts which is not configurable. Because of the timeout, the webui does not serve the image to the client.


Describe the solution you'd like

A possible solution would be to have the webui look for changes in the /cache/image/generations/ folder on reloading the page. Then if a newer image is found (than the one currently displayed) it should show the new image.
An alternate (perhaps better) option would be an image gallery (maybe somewhere in the chat, as a dropdown?).
Another possible solution would be a button (next to image generation) which simply refreshes the generated image ie. manually checks in /cache/image/generations/ for an updated image.


Describe alternatives you've considered

A clear alternative is to turn off proxy in Cloudflare DNS settings. However, I prefer the extra security of not having my public ip exposed directly via my domain.
I can also just ssh/sftp/scp to get images off the server. But this is a bit clunky. It would be nice to have it part of the web ui.

Originally created by @EJStaats on GitHub (Jun 8, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/2935 ___ ### **Is your feature request related to a problem? Please describe.** Perhaps a bit of a niche problem... I have a domain pointing to my open webui instance so that I can access it anywhere over the internet (and share the instance with some friends). The flow of data is as follows: client -> accesses open webui through "https://my-domain.com" -> is proxied through my DNS provider (Cloudflare) -> resolves at my own reverse proxy server -> reverse proxy server points to server (docker container) running open web-ui. Stable-diffusion webui is running on the same network as the open webui server, so there is no issues accessing it. The issue comes with previewing the generated image. Depending on the image generation settings (eg. if the generation takes too long), the preview will not be shown in the chat, even though the image does eventually get generated and appears in /cache/image/generations/ folder. I have narrowed it down to a proxy_timeout setting on Cloudflare's end. They have a 100 second timeout for non-enterprise accounts which is not configurable. Because of the timeout, the webui does not serve the image to the client. ___ ### **Describe the solution you'd like** A possible solution would be to have the webui look for changes in the /cache/image/generations/ folder on reloading the page. Then if a newer image is found (than the one currently displayed) it should show the new image. An alternate (perhaps better) option would be an image gallery (maybe somewhere in the chat, as a dropdown?). Another possible solution would be a button (next to image generation) which simply refreshes the generated image ie. manually checks in /cache/image/generations/ for an updated image. ___ ### **Describe alternatives you've considered** A clear alternative is to turn off proxy in Cloudflare DNS settings. However, I prefer the extra security of not having my public ip exposed directly via my domain. I can also just ssh/sftp/scp to get images off the server. But this is a bit clunky. It would be nice to have it part of the web ui.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#51738