Batch Image Metadata Generator - Extremely Useful For Automatic1111 SD Web UI
🕑 Added 2023-12-23 17:33:22 +0000 UTCJoin discord and tell me your discord username to get a special rank : SECourses Discord
Let's say you want to see META data of the generated images quickly.
Loading them into the PNG info is both slow and ineffective.
With attached write_image_meta_data.py file you can generate META data of every image in given folder.
To make it work first open a cmd and run below command
pip install Pillow
Then edit the write image metadata py file and change the folder_path you want META data of images to be generated
Then type python write_image_meta_data.py in the same folder

Then it will generate metadata such as below
parameters: Academia, portrait of ohwx man, preppy Ivy League style, stark, dramatic, chic boarding school, academia
Negative prompt: ugly, deformed, noisy, blurry, low contrast, grunge, sloppy, unkempt
Steps: 40, Sampler: DPM++ 2M SDE Karras, CFG scale: 7, Seed: 3936504685, Size: 1024x1024, Model hash: eef545047f, Model: me15img_150repeat, ADetailer model: face_yolov8n.pt, ADetailer confidence: 0.3, ADetailer mask only top k largest: 1, ADetailer dilate erode: 4, ADetailer mask blur: 4, ADetailer denoising strength: 0.5, ADetailer inpaint only masked: True, ADetailer inpaint padding: 32, ADetailer version: 23.11.1, Version: v1.7.0-133-gde03882d

Comments
Phillip Berry
im wondering if this only works on generated images?
Phillip Berry
Not sure if im doing something wrong. it creates the txt file but every single file has the following jfif: 257 jfif_version: (1, 1) jfif_unit: 0 jfif_density: (1, 1) comment: b'A man\t\x00'
Furkan Gözükara
you are welcome. thanks for comment
Furkan Gözükara
wow nice i didn't know. thanks for mention
Michael Harleman
Nice. Thanks!
XnViewMP is pretty sweet, can do the same, plus a ton more as well!