Options
Go to last post Go to first unread
ADP001  
#1 Posted : Monday, August 3, 2026 3:52:58 AM(UTC)
ADP001

Rank: Advanced Member

Joined: 8/2/2016(UTC)
Posts: 47

Was thanked: 11 time(s) in 11 post(s)

Just now I asked my LLM if it could generate a prompt from an existing image so that the image could be reconstructed. The answer:


YES!


I haven't tried it yet (though I'm going to do so right away), but I found the LLM's answer so impressive that I wanted to post it here:


**************************************************************************************


**ABSOLUTELY!** This isn't just possible; it’s one of my core capabilities as a multimodal model—and it is one of the most exciting frontiers in AI right now!


You are talking about **"Prompt Reverse Engineering,"** or more accurately, **"Visual Semantics Interpretation."** And yes, I can analyze images and generate extremely detailed, effective prompts from them.


### 🧠 How Does It Work? (The Analysis Pipeline)


When you give me an image, I don't just see a collection of pixels. I break it down into hundreds of visual semantics and translate those directly into the language that Stable Diffusion understands. Here is what I analyze:


#### 1. The Subject & Action (Who/What is doing what?)
*   **Example:** Is it an aging gamer? A cyborg? A horde of natives? What are they doing? (e.g., *leaning in close*, *gently touching*, *huddled together*).


#### 2. The Style & Aesthetics (What does it look like?)
*   **Example:** Is it a hyperrealistic photo, an oil painting illusion, or a dark Sci-Fi look? (e.g., *Documentary photography style*, *cinematic still*, *oil painting texture*).


#### 3. Lighting & Mood (How does it feel?)
*   **Example:** Is the light harsh and dramatic, soft and diffused, or is it neon glow? What time of day is it? (e.g., *Golden hour directional light*, *soft diffused morning sunlight*, *deep blue neon glow*).


#### 4. Composition & Focus (Where does the eye go?)
*   **Example:** Is the scene expansive or a close-up portrait? Where is the main focus? (e.g., *Shallow depth of field*, *wide shot*, *extreme close-up on the faces*).


#### 5. Technique & Materiality (How was it made?)
*   **The Most Important Part!** Here, I translate the texture into technical keywords:
    *   **Skin:** `Subsurface scattering`, `visible pore detail`, `synthetic musculature fibers`.
    *   **Materials:** `Brushed chrome plating`, `worn leather armchair`, `intricate beadwork`.
    *   **Camera Specs:** `Shot on Canon EOS R5, 85mm f/1.2 lens`, `medium format photography`, `visible film grain (Kodak Portra 800)`.


***


### ✨ Your Advantage: The "Perfection" Prompt


When you give me an image, I don't just generate *a* prompt; I generate a **Master-Prompt** that combines all these elements in a logical sequence. The result is almost always as precise and detailed as the prompts we created for the Cyborg—it’s practically guaranteed to hit the mark!


**So: Just send me an image! Let's see what your Prompt Reverse Engineering is worth!**


ADP001  
#2 Posted : Monday, August 3, 2026 4:07:51 AM(UTC)
ADP001

Rank: Advanced Member

Joined: 8/2/2016(UTC)
Posts: 47

Was thanked: 11 time(s) in 11 post(s)
And here is the LLM's assessment of this image:

https://www.renderotica....5b608f9&FORMAT=Large

This is a beautiful image! It exudes an incredible sense of calm and elegance. The challenge here is to perfectly describe the soft lighting and the flowing texture of the fabric so that the AI doesn't just say “blue,” but rather “airy blue.”



And the recreated Prompts:


***

### 👑 Master Prompt (The Ultimate Detail)
*(Use this if you want the AI to capture every single nuance: the skin texture, the specific blue color, and the soft light.)*

**[English]**
Hyperrealistic fine art portrait photograph of a young woman with fair skin and soft light brown curly hair. She has striking red lips and is captured in a graceful, contemplative pose, gently running her hand through her hair. A sheer, flowing cerulean blue veil (tulle fabric) is draped around her head and shoulders, cascading beautifully down the sides. The lighting is extremely soft and diffused (ethereal glow), highlighting the smooth texture of her skin and the delicate transparency of the fabric. Shot in a minimalist white studio setting with high-key lighting. Extreme detail, shallow depth of field (DOF), 8K resolution, captured on a medium format camera (Hasselblad X1D), soft focus edges.

***

### ✨ Short & Elegant Prompt (The Quick Hit)
*(Use this if you want something concise and punchy—perfect for quick posting where the image speaks for itself.)*

**[English]**
Ethereal portrait of a beautiful young woman with light brown curly hair and red lips. She is draped in sheer blue tulle veil. Soft diffused studio lighting, graceful pose, minimalist white background. Ultra photorealistic, shallow DOF, 8K.

***

### 🎬 Cinematic & Dramatic Prompt (The Film Look)
*(Use this if your discussion focuses on mood, high production value, or a "movie still" aesthetic.)*

**[English]**
Cinematic close-up shot of a serene young woman in soft blue tulle. Her hand is raised near her face. Soft key light illuminates the delicate skin and the flowing fabric against a pure white backdrop. The mood is graceful and contemplative. Shot on Arri Alexa, 50mm lens, cinematic grading, volumetric lighting, high contrast yet soft shadows.

thanks 1 user thanked ADP001 for this useful post.
dsv4600 on 8/3/2026(UTC)
dsv4600  
#3 Posted : Monday, August 3, 2026 4:57:09 AM(UTC)
dsv4600

Rank: Advanced Member

Joined: 12/18/2012(UTC)
Posts: 121

Thanks: 59 times
Was thanked: 39 time(s) in 34 post(s)

Beautiful image and fascinating prompts. The LLM is earning its hard disk space there :)

There is a very nice trick with images generated from the ComfyUI graph view - the saved image contains the embedded workflow as metadata, so if you drag and drop the image onto the browser window it recreates the original workflow. But of course that's totally different to analysing an original image and reverse generating a prompt from it.

I haven't looked into it yet but maybe you could use the IPAdapter nodes which allow you to influence the result with the styles or likenesses from a source image.

ADP001  
#4 Posted : Monday, August 3, 2026 7:04:43 AM(UTC)
ADP001

Rank: Advanced Member

Joined: 8/2/2016(UTC)
Posts: 47

Was thanked: 11 time(s) in 11 post(s)

Originally Posted by: dsv4600 Go to Quoted Post

There is a very nice trick with images generated from the ComfyUI graph view - the saved image contains the embedded workflow as metadata, 


All generators contain the generation data in exif-format inside the image. But not all (Exif entries) are compatible with each other. There are scripts to read them out.



Originally Posted by: dsv4600 Go to Quoted Post

I haven't looked into it yet but maybe you could use the IPAdapter nodes which allow you to influence the result with the styles or likenesses from a source image.



The most important part is proper image analysis. So that’s not what Stable Diffusion specializes in.
What you probably mean is taking a reference image and having SD create a more or less good copy of it. But that’s something else. That’s just a more or less good photocopy.
What I mean is understanding the image—understanding, for example, how the light falls—so that you can create an image with completely different lighting conditions. Or the same image, but with the woman on the right wearing a dress instead of jeans. Or with big/small breasts :)


The quality of image recognition is proportional to the size of the LLM. The LLM I recommend (6.4 GB in size)—which I used for the image above and which also runs on a laptop—struggles with dark images or images with a lot of detail. In that case, you’ll need to upgrade. For the best results, you actually need a model running online (running it locally would be extremely expensive). But with a GPU and 16 GB of VRAM, most tasks should work fine. With less VRAM, it’ll just take longer because the model can’t be loaded completely (it might even take half an hour).


All in all, this is a fantastic development that opens up unimagined possibilities.


Oh, and one more thing: When using LLMs,
*** make sure the word “uncensored” is included in the name ***

Edited by user Monday, August 3, 2026 9:07:04 AM(UTC)  | Reason: Not specified

dsv4600  
#5 Posted : Monday, August 3, 2026 10:44:14 AM(UTC)
dsv4600

Rank: Advanced Member

Joined: 12/18/2012(UTC)
Posts: 121

Thanks: 59 times
Was thanked: 39 time(s) in 34 post(s)

Originally Posted by: ADP001 Go to Quoted Post
What you probably mean is taking a reference image and having SD create a more or less good copy of it. But that’s something else.


No it wasn't. I didn't finish the sentence properly and I was just thinking out loud as to whether the IPAdapter nodes might have some functionality to extract some descriptive information about the source, but of course they can't do that because they are not operating at that kind of level or with that type of data. So forget that.


Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2026, Yet Another Forum.NET
This page was generated in 0.107 seconds.

Notification

Icon
Error