Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Stable Diffusion Image Metadata Editor

This web app allows you to view, edit, and save Stable Diffusion prompts and metadata embedded in PNG images. It is designed for images generated by tools like AUTOMATIC1111 and similar Stable Diffusion UIs.

Features

  • Drag & Drop or File Upload: Easily upload PNG images containing Stable Diffusion metadata.
  • Prompt Extraction: Reads and displays the positive prompt, negative prompt, and generation parameters from the image metadata.
  • Edit Prompts & Parameters: Modify the extracted prompts and parameters directly in the browser.
  • Save Edits: Download a new PNG image with updated metadata embedded.
  • Copy Prompt: Quickly copy the positive prompt to your clipboard.

How It Works

  1. Upload Image:
    • Drag and drop a PNG image onto the drop area, or use the file picker.
  2. View Metadata:
    • The app extracts the prompt and parameters from the PNG's metadata and displays them in editable fields.
  3. Edit Metadata:
    • You can change the positive prompt, negative prompt, and any parameters.
  4. Save Changes:
    • Click "Save" to download a new PNG with your edits embedded in the metadata.

Supported Metadata

  • Positive prompt
  • Negative prompt
  • Generation parameters (Steps, Sampler, CFG scale, Seed, Size, Model, etc.)

Limitations

  • Only PNG images are supported for reading and writing metadata.
  • JPEG/WEBP support is not implemented yet.

Usage

  1. Open index.html in your browser.
  2. Upload a PNG image generated by Stable Diffusion.
  3. Edit the prompts and parameters as needed.
  4. Click "Save" to download the edited image.

File Overview

  • index.html — Main HTML file and UI
  • app.js — Core logic for image upload, metadata extraction, editing, and saving
  • style.css — Basic styles for the app

About

This web app allows you to view, edit, and save Stable Diffusion prompts and metadata embedded in PNG images.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages