invoke-ai / InvokeAI

Invoke is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, and serves as the foundation for multiple commercial products.
https://invoke-ai.github.io/InvokeAI/
Apache License 2.0
23.77k stars 2.44k forks source link

[enhancement]: Assign sRGB profile to output images #7301

Open michaelezra opened 2 weeks ago

michaelezra commented 2 weeks ago

Is there an existing issue for this?

Contact Details

michaael@michaelezra.com

What should this feature add?

Please introduce an option to embed the sRGB profile to the output images, so that images open correctly in color managed workflow.

Alternatives

No response

Additional Content

No response

psychedelicious commented 2 weeks ago

It looks like there are many different profiles, including "built-in" (whatever that actually means - maybe dependent on the OS>) and many others that come as ICC or ICM files. Can you please be more specific with what is needed to fulfill this request?

Some technical info: Python's PIL package, which we use for many image operations including saving, does support embedding profiles into the output images. It looks like supporting this might require updating every call we do to save an image, even when it is done outside the consolidated invocation API. But maybe not? I don't understand this stuff and based on a brief review of an issue on the PIL repo, it looks like there is some nuance to handling profiles with PIL.