Giter Site home page Giter Site logo

cleasbycode / imgprmt Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 4.96 MB

Store and share an AI image prompt/description as a basic web page, embedded within a tweetable JPG image file.

License: MIT License

C++ 100.00%
image jpg midjourney polyglot-files prompt twitter mastodon stable-diffusion metadata alt-text

imgprmt's Introduction

imgprmt

Store / embed an AI image prompt within a JPG image.

This creates a separate JPG + HTML polyglot image file.

Demo Videos: Command Line / Web / Twitter

Demo Image
Image credit: Orcton (@OrctonAI)

View the embedded prompt as a basic web page by renaming the .jpg file extension to .htm

Demo Image
Image/prompt credit: Orcton (@OrctonAI)

The embedded image can be shared on a number of social media sites, such as Twitter, Mastodon,
Flickr, etc.

These platforms retain the embedded prompt, so that it's available to anyone who downloads your image.
In many cases, the embedded prompt is also preserved when someone edits the image.

(You can try imgprmt from this site if you don't want to download & compile the source code.)

Usage (Windows Command Line - Insert Prompt in JPG Image)

PS G:\imgprmpt\demo> .\imgprmt.exe

Usage: imgprmt <jpg-image>  
       imgprmt --info

PS G:\imgprmpt\demo> .\imgprmt Woman.jpg

Enter a Web link (Image source, Social media page, etc.)

URL: https://twitter.com/OrctonAI/status/1767377042029338722

Type or paste in your prompt as one long sentence. Add <br> tags for new lines, if required.

Image Description: A portrait of an enchanting young woman with long, wavy red hair standing in front of a field of colorful flowers at sunset.
 She has piercing blue eyes and is wearing a floral blouse. The sky above her features dark storm clouds, adding to the dramatic effect.
 Her expression is serene yet captivating as she gazes directly into the camera lens.
 The portrait is painted in the style of an artist known for dramatic lighting and expressive subjects. --ar 16:9 --stylize 125

Created output file: "imgprmt_5326.jpg 187573 Bytes"

Usage (Web - Insert Prompt in JPG Image)

Demo Image

My other programs you may find useful:-

imgprmt's People

Contributors

cleasbycode avatar

Stargazers

 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.