receyuki / stable-diffusion-prompt-reader

A simple standalone viewer for reading prompts from Stable Diffusion generated image outside the webui.
MIT License
1.08k stars 69 forks source link

Does Only Work with Images I Generated in the Web UI #15

Closed LittleTykha closed 1 year ago

LittleTykha commented 1 year ago

Hello,

Whenever I drag an image that is not from my Stable Diffusion Outputs folder, it says: ''No data detected or unsupported format''. Even if it's an image generated from my computer, once transferred from one computer to another, it doesn't work either.

Capture

Screenshot 2023-05-30 103757

Do you have any clues on why this is happenning? Thank you!

(edit. corrected my spelling)

receyuki commented 1 year ago

It looks like the second image has a very low resolution. This means the second image may have been compressed. So I think that's why it's missing metadata.

LittleTykha commented 1 year ago

Oh, I see. So how can I prevent them from being compressed? Thank you!

(Edit. Spelling...)

receyuki commented 1 year ago

Just don't compress it. As far as I know, any compression will destroy the metadata. Or you can choose to EXPORT the metadata of the original image as a txt file and then import it into the compressed image using EDIT.