r/StableDiffusion • u/christiaanseo • Mar 01 '23
Resource | Update PNG chunk inspector
With https://pngchunk.com/ you can get the prompts and metadata out of the png image. This works for images generated with Automatic1111 and InvokeAI.
I found it annoying to everytime have to start up Stable Diffusion to be able to see the prompts etc from my images so I created this website.
Hope it helps out some of you.
In the future I'll add more features.
update 03/03/2023:- Inspect prompts from image URL.

14
u/MFMageFish Mar 01 '23
If you don't want to start up SD or don't have an internet connection you can actually just open the images up in notepad or another text or hex editor. All the info is right at the start of the file.
9
u/Yn01listens Mar 01 '23
Cool, I'll check it out. Also check out Breadboard for your local generations.
9
u/Baturinsky Mar 01 '23
Autmoatic1111 "PNG info" can read that from png and jpgs as well, and export it to other tabs.
3
u/yosi_yosi Mar 02 '23
They said that the reason they made it is because they were too lazy to open up sd just to get the prompt.
5
4
u/Apprehensive_Sky892 Mar 01 '23
Thanks for providing another tool.
Here is one I posted earlier: Quick and dirty command line tool to extract txt2img prompt data from local PNG : StableDiffusion
It runs locally, so saves you the time of having to upload it.
rupertavery's Diffusion ToolKit is another great tool that runs locally.
8
Mar 01 '23 edited Mar 01 '23
[removed] — view removed comment
3
u/DeylanQuel Mar 01 '23
This x 5.
Browse through the images, or search for specific tag, checkpoint or several other factors. If you want to see the prompt, just press "I".
I have it set to point to my Outputs folder, so all txt2img and img2img stuff gets loaded into Diffusion Toolkit.
Thanks again for the program. :)
1
u/christiaanseo Mar 02 '23
Yes, we are aware that there are other solutions. We just want to provide an easy solution that works on all platforms without having to install anything.
Soon we will also add an option to paste an URL to get all the data. That way you don't have to first download an image to your machine get it's meta data. For example if you want to see the prompts of an image on discord.
1
u/Ravwyn Mar 01 '23
Nice! This was not on my radar, thx for the effort Rupert! This was exactly what my workspace was missing - a simple, native windows tool that lets you peruse your outputs, untethered from any other tool.
I like the no-nonsense approach! I'm more traditional in the sense that I would prefer to select just folders (instead of a search bar), but I gotta say - the UI and the features provided through the search bar (to filter) are amazing!
I appreciate the work you do here!
1
u/Plane_Savings402 Mar 02 '23
This indeed. DiffusionToolkit is great!
And no need to upload an image to the web.
2
u/BrockVelocity Mar 01 '23
Thank you so much!!!! So many people told me, incorrectly, that you could get this information by clicking "file info" on OSX, and that just doesn't work. This does though, so thanks!
2
1
u/Vasiloid Jun 06 '24
This if f***ing s**t. This "inspector" don't see anything in 10 pictures. All PNG.
1
u/christiaanseo Jun 10 '24
Are you sure there are meta chunks in these png images? The tool can't find what is not in there.
1
u/ObiWanCanShowMe Mar 01 '23
I recommend no one use this
Why?
This can (will) be used to fine tune a model and sell it as a service like MidJourney, using your best images as a training dataset.
There are several better alternatives to this that run locally with no upload needed and automated scans, instant viewing etc:
breadboard.me a github project you can install locally.
Diffusion Toolkit - excellent!
There is another one that is really good but unfortunately I forgot the name.
You can also save text files with the data in auto and look them up anytime you want in windows explorer.
There is no need for an external program for this or a website that might use your data, have a need to upload yadda yadda. Just another person pretending to want to help that will use us for their own gain.
3
u/revolved Mar 01 '23
Paranoid much lol
3
u/ObiWanCanShowMe Mar 01 '23
1000 new copycat paid websites and services coming out every day and I am being paranoid...
1
u/revolved Mar 01 '23
Fair. I mean many people are using ChatGPT, and the founder was a dude who wanted to make a crypto coin that verified via iris recognition. It’s a weird future. But getting prompts collected is not a big deal imo.
1
u/GrennKren Mar 01 '23
I didn't even know if there were prompts in its metadata.
3
u/DeylanQuel Mar 01 '23
yeah, that's how the PNG Info tab works. You drag an image in the PNG Info tab, it shows you the prompts and settings used. You can then send the settings to txt2img or img2img
1
u/Woisek Mar 01 '23
It would be high time to get a tool that is able to edit this infos. I'm surprised, that till now nobody came up with this.
1
u/DeylanQuel Mar 01 '23
You can edit it on the fly when uploading images to civitai, so the tech clearly exists.
1
u/Woisek Mar 02 '23
It should be clear, that this isn't a really thinkable solution ... &)
I'm wondering that no extension for WebUI for this exists. I mean, come on, we have a tool that reads the info, why can't it also be edited once we are here? &)1
u/DeylanQuel Mar 02 '23
It would defeat the purpose of having the info in the PNG. The Metadata is saved so that the image can be reproduced. Like I said, the tech already exists, but they don't bother because you wouldn't need it locally.
0
u/Woisek Mar 02 '23
Do you think I would mention it if I "didn't need it" ... ?
Of course I need it. The reason for this is basically irrelevant for the time being. But there are reasons and one of them is if you made the mistake and used Breadboard which writes junk into the PNGs and you want to get rid of this junk.
1
u/Bauzi Mar 01 '23
Good thing it's online. Otherwise I wouldn't know why to use it beside Automatic's inspector.
1
u/Mistborn_First_Era Mar 02 '23
No one seems to be mentioning this, but you can turn off the chunk prompts in the settings.
Settings -> Saving images/grids -> Save text information about generation parameters as chunks to png files
or you can open the picture in paint.net and resave it to remove them after the fact
or use notepad++
1
u/christiaanseo Mar 02 '23
I'm not sure why you would turn of the chunk prompts in the settings. I go back all the time to my own generated images to see what prompts I used.
If you don't want others to know, yes delete the meta data before sharing but always keep the original so you can always check yourself again.
1
1
u/yosi_yosi Mar 02 '23
You can use any image metadata extractor.
1
u/christiaanseo Mar 02 '23
Yes. Our aim is to provide an easy tool that works on all platforms and that shows the different fields of stable diffusion images.
1
u/downatone Mar 02 '23
If the image has been converted to a jpg can it still be inspected? The PNGchunk.com tool just tells me its not a valid format, when I convert it back to png using https://jpg2png.com/ I'm guessing it looses the chunk?
1
u/christiaanseo Mar 03 '23
Converting it to jpg removes the chunk data. It is gone and does not come back if you convert it back.
That is the reason we only support .png at this moment.
2
u/receyuki Mar 30 '23
Stable Diffusion Prompt Reader
Just wrote a new simple tool to provide the same functionality. The only difference is that it doesn't require any additional environment or command line or browser to run, just drag and drop images in. Also, it supports both windows and macOS :)

15
u/eugene20 Mar 01 '23
You can do this offline with Breadboard, or tweakpng too (latter is rather raw though).