Giter Site home page Giter Site logo

heysj / prompt-metadata-checker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prompthero/prompt-metadata-checker

0.0 0.0 0.0 2.65 MB

Read the EXIF metadata (tEXT, IDAT) and discover the prompt, seed and more of AI images generated using AUTOMATIC1111, InvokeAI or NMKD. Supports .png and .jpeg

Home Page: https://prompthero.github.io/prompt-metadata-checker/

License: MIT License

JavaScript 22.91% CSS 1.77% HTML 75.33%

prompt-metadata-checker's Introduction

Prompt Metadata Checker for Stable Diffusion Images

Reads the metadata of an AI generated image (using the Exif or tEXT enclosed in that image file). Populates the prompt, seed, sampler, and more. Known to work well with images generated using AUTOMATIC1111, InvokeAI or NMKD. Supports both .png and .jpeg images.

If you run into any issues: please open up an Issue here on Github or talk to us on Discord.

This is a port into PromptHero of a community extension originally made by @HE1CO and later revamped by @drhino

Motivation

This is what we use in our prompt upload page. When you drop a valid image generated with A1111 or a supported program, this is what auto-fills all the fields in the page.

Contribute

If you would like for PromptHero to support reading the metadata of other file formats or images generated by other programs, please feel free to open a pull request!

How to develop

The heavy-lifting work is done in the JS files found under src/vendor/postie. That's where most of the original browser extension's code has been imported.

The src/controllers folder holds the Stimulus controller that manages the user interface found in index.html

JavaScript code is imported/managed using Import Maps. The project importmap is found in index.html

To develop, just open index.html in a web browser and edit the relevant JS files. No JS tooling required.

Features

Limitations

  • NMKD: The model hash is not saved in the PNG metadata, so the model name and version can't be auto-filled
  • General: Inpainting overwrites the original prompt info, so the extension will autofill the inpaint prompt

prompt-metadata-checker's People

Contributors

rameerez avatar he1co avatar drhino avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.