receyuki / comfyui-prompt-reader-node

The ultimate solution for managing image metadata and multi-tool compatibility. ComfyUI node version of the SD Prompt Reader
MIT License
289 stars 22 forks source link

[FEATURE REQUEST] - Embed the latent image in the PNG #72

Open laurentVeliscek opened 6 months ago

laurentVeliscek commented 6 months ago

Summary

It may be handy to be able to save the latent image into the PNG, as it's not so heavy (less than 300 Ko for a 1024 x 1024 image)...

Basic Example

Let's say you want to do a latent upscale from a generated image. The missing piece is the latent image. So it could be useful to be able to retrieve it directly from the PNG

Reference Issues.

No response

receyuki commented 6 months ago

Firstly, thank you for your suggestion, but I just searched around and currently, I don't think there is a suitable solution for embedding a latent image into PNG. Several hundred kb is already very large for an image, at least too large for the metadata. If you could provide an existing solution, such as other custom nodes that can achieve similar functionality, I could refer to their code before making a decision.