mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-12 01:54:38 -05:00
feat: image gen - comfy option - save workflow exif #805
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @qrkourier on GitHub (May 4, 2024).
Is your feature request related to a problem? Please describe.
The images are saved, but devoid of exif data.
Describe the solution you'd like
It's a feature of comfy to save the inputs and workflow in the output image exif data. It would be helpful to have the option to enable this because, while more privacy conscious to omit it, it is very useful for iterating on an image by loading it in comfy. Many users will appreciate this option, but it should not be enabled by default.
Describe alternatives you've considered
I considered trying to reproduce the image from scratch in comfy, but open-webui is opaque about the input parameters so it's unclear where to start.
Additional context
The default prompt (comfy workflow) is inline in https://github.com/open-webui/open-webui/blob/v0.1.123/backend/apps/images/utils/comfyui.py#L18
The SaveImage class in comfy always saves exif data, so it may actually be a comfy bug that the image returned by the API is missing those metadata:
daa92a8ff4/nodes.py (L1380)