Summarize the following text in less than 50 words. Let's think step by step: image to prompt - how to reverse engineer a prompt from just an image let's learn to use a few tricks, and a few tools for creating your images from inspiration you find hello from sunny utah where some of the anticipated flooding is unfortunately happening. hasn't been too bad yet, hopefully that continues. let's dive into today's topic. thanks for reading mythical ai! subscribe for free to receive new posts and support my work. i recently saw this sunflower explorer image online and thought "i love the feeling of this image, i want to make something similar." with ai image generators, it happens to me constantly. especially because i know there is some magic combination of model, prompt, and settings that would let me actually create something similar. today let's examine the tools, tricks, and techniques we can use, to go from image to prompt. we will examine how to: directly look the prompt up in metadata learn to recognize art styles, which let us describe the image to create use tools to generate a prompt from an image but first, let's talk about the morality of creating similar images. is it wrong to create similar images? steve jobs once proclaimed, "good artists copy, great artists steal." although steve attributed the quote to picasso, its true origin remains uncertain. nevertheless, this idea sheds light on the ongoing debate between inspiration and theft. however, the idea does illuminate the vigorous debate of inspiration vs theft. artists, like all humans, continuously learn from one another. in fact, artists copy each other so frequently that there's a specific term for this practice: master study. a master study involves examining the process and creative choices of an accomplished painter to gain insight into how they arrived at their finished piece. artists select another artwork, typically a famous or well-regarded one, and replicate it. they do this to learn. and importantly, they don't try to pass their output as an original. they do it to learn. all of human culture is people observing the world, including things made by others, and creating their own versions. stealing is bad. getting inspired by others is good and impossible to avoid. but the line between stealing art and getting inspired by is a blurry one, and often comes down to intent and execution. here's a famous example. in macbeth, a ghost prophecies that "macbeth shall never vanquished be" until the very forest marches on his castle. but then the english army marches on the castle holding branches from the forest, and macbeth is vanquished. j.r.r. tolkien has such "bitter disappointment and disgust" at this "shabby use" that, as he told the poet w.h. auden, he invented a moving, talking forest, which actually uproots and goes to war in the lord of the rings. and for now, the public knows tolkien's trees better than shakespeare's. he stole like an artist. going back to painters, counterfeiters copy, and conceal they are doing so. students copy, as artistic training. assistants copy, as labor and extra hands for more famous artists. but where is the line? sturtevant is a famous artist who blatantly copied others, and she serves as an intriguing example. her rendition of johns' target with four faces recently sold for $314,000. the buyer wasn't deceived by a counterfeiter; rather, they saw value in sturtevant's art and considered it to be genuine. as sturtevant shows, the border between original and copy, invention and plagiarism, is constantly up for negotiation. you can read more about sturtevant here. so is it wrong to create a similar image as someone else? no. it is part of the process of learning and creating. is it wrong to create similar images in an attempt to take that artist's rewards, whether that be fame, money, or prestige? yes. but i can't tell you where good copying ends and bad copying begins you have to determine that for yourself. from this point on in this article, let us assume together, that we are creating similar images for good reasons, to learn, remix, and create art. now let's learn how to do it. directly look up the prompt for ai art it may surprise you that a lot of images made with stable diffusion include all the prompts and related info in the metadata of the image itself. just like in zoolander, 'the prompt is inside the image' this website explains how a png stores metadata and lets you upload images and read the data out. luckily it is even easier than that. most of the stable diffusion guis can also read this information. for example in the popular auto1111, you just go to the png info tab, and drag the image in and it will access the metadata and you can create your own image with just a click. so if you see an image you like online that was created by ai art, try reading the metadata to see if the creation parameters are included. if the image has been shared a lot, you might be seeing a copy of a copy, often with metadata missing. you can use tools like tineye, google images, or saucenao to try and find the earliest and hopefully original image. but if the image was human-created, or the prompt info was not included, you can use knowledge of art styles to describe the image. being able to describe an image better, lets you create other images like it i would highly recommend you read this short essay 'magic for english majors' about prompting and ai art: https://oneusefulthing.substack.com/p/magic-for-english-majors in it the author argues that the more you know about the history of art, and are aware of art styles in general, the more powerful image generation systems become. he gives this image as an example. if you don't know how to describe these styles of art, you can't replicate them. but if you do, you can use them as inspiration to make your own. from top right to bottom left, we have spider-man in the style of ukiyoe spider-man in the style muncha spider-man in the style of a halftone offset lithograph spider-man in the style man ray spider-man in the style with a batik costume spider-man in the style in a german expressionist style if know the 5th image is spider-man in a batik costume, you can create something similar. but you can also gain so much more than just being able to create your own image you gain a more rich understanding of the world. for example, batik is an indonesian technique of wax-resist dyeing applied to the whole cloth. this technique originated from the island of java, indonesia. now you have a seed of inspiration. what else can you create in the batik style? this is why there has been an explosion of interest in art styles, and artist styles. for example this notion doc lists various artists and their styles for stable diffusion. this google doc does the same for midjourney. note - there is another moral debate going on in addition to the 'steal vs inspire' and that is the use of artists' images in training data. we will save discussing that topic for another episode. learning art styles, art movements, and even technical details like the blurry backgrounds produced by high-end cameras is called bokeh and can help you create images. with ai, prompts are like spells. learning how to describe the world is like learning new spells. learning to describe the world or imaginary worlds better, give you more power. there are also tools that can help you describe the world by asking the computer to describe it. tools to generate a prompt from an image one of the breakthroughs that helped create ai image generators was openais clip. clip (contrastive language-image pre-training) is a neural network trained on a variety of (image, text) pairs. given an image, it predicts the most relevant text snippet. that means you can give it an image, and it will describe it. this article does a good job of describing the technical details of clip. clip is actually pretty wild. we can give the computer the task of describing an image, and it actually does it very well. the invention of clip is one of the things that allows ai image generators to work at all. the image generator takes a prompt, generates an image, then feeds that image to clip to see if it is getting close to the prompt. we can also just use it to describe an image. here are 5 tools that can help generate prompts from images: auto1111 clip built-in replicate image to prompt midjourney /describe feature unprompt image search + prompts other clip interrogators auto1111 clip built-in once again auto1111 has clip description built in. go to the interrogator tab and drag in your image, select the options, and click generate to describe the image. the first time you run clip interrogator it will download a few gigabytes of models. replicate image to prompt url: https://replicate.com/methexis-inc/img2prompt image in, description comes out. a nice online tool, methexis-inc hosts a public img2prompt tool on replicate. just drag your image into the drop zone, and hit submit. after some time, usually less than a few minutes, you get the output description. midjourney /describe feature midjourney just released a new tool, which is /describe. if you need a midjourney primer or refresher, you can read my article here. just type /describe which will give you a drop zone for your image. drag your image in and midjourney will make a midjourney prompt for it. luckily prompts are pretty interchangeable. just discard the midjourney parameters which are always preceded by a double dash -- in midjourney you can click the number of the prompt you think will work best and it will submit that to be generated by midjourney. i will note that you are probably training midjourney on what a good prompt is, but since any action taken on midjourney trains it, i don't think this is an issue. unprompt image search + prompts url: https://unprompt.ai/ basically, a reverse image search, where the results include prompts. upload your image and see images like it, with their prompts. this can help you figure out how to describe your image. mousing over an image, or clicking on the image will show you the prompt details. sometimes it is missing the model, which for stable diffusion is very important, but it can be useful to gain additional ways of describing the image. other clip interrogators there are many clip interrogators. a few of the ones i have used include: results of image to prompt experiment using all the methods above, let's try to recreate the original sunflower image. i'll give the prompt for each, with bold being what changed. i like the results. if i had more time to spend, i would continue to make the character more cartoonish, improve the background, and work on a warmer feeling. however, i do think my version captures the feeling and movement of the original. using these tools and techniques, you can create your own images from inspiration you find online. good luck! see you next week -josh ps - a number of you indicated you would like a free mini-course on how to create apps with chatgpt. i am going to make it, well two actually. how to make apps with chatgpt for non-coders and how to make apps with chatgpt for coders. thanks for reading mythical ai! subscribe for free to receive new posts and support my work.