Sub topic 4
Prompting: describing what to add or change
This chapter assumes you can make selections with the Lasso, Marquee, and Object Selection tools. It also assumes you know the Layers panel and have a Photoshop version with generative features, signed in to your Adobe account. You do not need earlier chapters on layers or variations to follow it, but you will see generative layers appear in the examples.
What the prompt does
When you run Generative Fill, Photoshop sends Firefly three inputs: the pixels around your selection, the shape of the selection, and your prompt. The prompt is only one of the three. Firefly generates new pixels inside the selection that try to match the surrounding image and your text.
The prompt answers one question: what should be in the selected area? It does not tell Photoshop what to do with the rest of the image. It also does not read like a command, so "make this look better" gives the model nothing concrete to draw.
You type the prompt in the Contextual Task Bar, the floating bar that appears under an active selection. The bar shows a text field and a Generate button. If you cannot see the bar, turn it on under Window > Contextual Task Bar.
Describe the result, not the action
Write what should be visible after the edit. Compare these pairs:
| Weak prompt | Better prompt | Why it works |
|---|---|---|
| Add something here | a red ceramic teapot | Names a concrete object |
| Fix the sky | dramatic sunset sky with orange clouds | Describes the finished sky |
| Make her happier | smiling, relaxed expression | Describes an appearance, not a request |
| Change the color | navy blue wool coat | Names color, material, and object |
A noun phrase is usually enough. You do not need a full sentence, and you do not need to address the model.
Parts of an effective prompt
Most useful prompts combine a few of these elements. You rarely need all of them.
| Element | What it controls | Example |
|---|---|---|
| Subject | What appears | a golden retriever |
| Attributes | Color, material, size, age | wet fur, small, weathered |
| Setting or position | Where it sits in the scene | lying on the wooden porch |
| Lighting | Direction and quality of light | warm late-afternoon light from the left |
| Style or medium | Photo or illustration look | photograph, soft focus |
A prompt such as a golden retriever lying on the wooden porch, warm late-afternoon light from the left uses subject, position, and lighting. If your photo was shot in overcast light, adding "soft overcast light" helps the new content match.
Keep prompts short and specific. Long lists of adjectives often get partly ignored, and conflicting details ("a tiny giant dog") produce unpredictable results. Start with the shortest prompt that names the subject, then add one detail at a time.
Match the photo, not your imagination
Generated content looks fake most often because of a mismatch with the photo, not because the object is wrong. Before you write the prompt, look at the image and note these:
- Light direction. Where do the shadows fall?
- Light quality. Is it hard sunlight, soft overcast, or indoor tungsten?
- Perspective. Is the camera at eye level or high up?
- Sharpness and grain. Is the background blurred? Is there visible noise?
Then put the relevant facts into the prompt. "A wooden bench, in shade, slightly out of focus" will blend into a shallow-depth-of-field photo better than "a wooden bench".
How selection and prompt interact
The selection sets the size, shape, and position of the new content. The prompt sets its identity. The two have to agree.
- A tall, narrow selection and the prompt "a sofa" fight each other. Firefly may squeeze in an awkward sofa or add extra objects to fill the space.
- A selection much larger than the object invites extra content. If you select a whole table and prompt "a vase", you may get a vase plus other items.
- A selection that is too tight gives the model no room for shadows and edges. Select slightly beyond the object so the new content can blend in.
A good habit is to size the selection to the object plus a small margin, then check that the shape suggests the object. Selection techniques are covered in an earlier chapter. The point here is that prompt problems are often selection problems.
Add, replace, change, remove
The same field handles four kinds of edit. What changes is the selection and the wording.
| Goal | Selection | Prompt | Example |
|---|---|---|---|
| Add | An empty area where the object should go | The new object | `a bicycle leaning against the wall` |
| Replace | The existing object | The new object | `a brown leather armchair` |
| Change an attribute | The part to change | The object with the new attribute | `a bright yellow door` |
| Remove | The unwanted object, with a small margin | Empty | (no text) |
When you replace, name the new object instead of describing the old one. Prompting "not a lamp" does not remove a lamp. Firefly does not reliably understand negation, and mentioning the word can make the object more likely to appear. This is the most common prompting mistake in my experience of intermediate users, so remember it: say what you want, never what you don't want.
The empty prompt
If you leave the field blank and click Generate, Firefly fills the selection with whatever fits the surroundings. This works well for:
- removing a person, sign, power line, or blemish from a simple background
- extending a continuous texture such as sky, grass, sand, or water
- cleaning up a small area after another edit
It works poorly when the surrounding area has several competing elements. With no prompt, the model guesses, and the guess can introduce a new object. If an empty prompt gives you an unwanted object, try a prompt that describes the background you want, such as empty sandy beach or plain white wall.
Removal examples are covered more fully in the next chapters on removal and replacement. Here the key point is that an empty prompt is a valid prompt, not a missing step.
A prompting workflow
Treat prompting as a short loop. Each pass changes one thing so you can see what caused an improvement.
Each Generate click produces several variations, which you can browse in the Properties panel. Look through all of them before editing the prompt. Sometimes the third variation is right and the prompt needs no change. Choosing among variations has its own chapter, so here we only use it as feedback for the prompt.
Worked example: adding a subject to a street photo
Suppose you have a photo of an empty city sidewalk at dusk, with streetlights on and wet pavement.
- Use the Lasso tool to select a rectangle of pavement near the curb, a little wider than a parked bicycle.
- In the Contextual Task Bar, type
a parked bicycle. Click Generate. - Review the variations. The bicycles look flat and daylight-lit, which clashes with the dusk scene.
- Change the prompt to
a parked bicycle, lit by warm streetlight, wet reflections on the pavementand generate again. - Pick the variation where the shadow falls away from the nearest streetlight.
You changed one thing between runs, the lighting description, so you know that is what fixed the mismatch. If the bicycle had been too large, the fix would have been a smaller selection, not more words.
Prompt language and model choice
Photoshop accepts prompts in many languages, but results are usually most predictable in English, and short plain nouns work best in any language. Depending on your Photoshop version, the Contextual Task Bar may also offer a choice of generative model. Different models interpret detail, text, and style differently, and some use more credits than the default Firefly model. If a prompt keeps failing on one model, try the same short prompt on another, and check the options your version shows rather than assuming they exist.
Content guidelines also apply. Prompts that violate Adobe's rules, or that produce restricted content, are blocked or return nothing. That is expected behavior, not a bug in your prompt.
Common mistakes
- Negative wording. "No people" or "without a hat" tends to add the very thing you named. Describe the empty scene instead.
- Too many subjects. One selection with a prompt such as "a cat, a dog, and a bird" often yields mangled animals. Make one selection and one prompt per object.
- Prompting for text. Generated lettering is often garbled. Add real text later with the Type tool.
- Over-long prompts. Later words may be ignored. Move the important nouns to the front.
- Expecting exact likeness. Firefly generates a new object, not a copy of a specific real item, person, or brand.
- Ignoring the selection. If every variation has the wrong shape, rewriting the prompt will not help. Fix the selection.
Troubleshooting prompt results
| Symptom | Likely cause | Fix |
|---|---|---|
| Extra unwanted objects appear | Selection too large or prompt empty on a busy area | Shrink the selection or describe the background |
| New object has the wrong lighting | Lighting missing from prompt | Add light direction and quality |
| Object looks pasted in | Selection too tight, no room for shadows | Reselect with a margin |
| Prompt is ignored | Too long or conflicting details | Shorten to the subject plus one detail |
| Generate does nothing or warns | Guideline violation or network or credit issue | Reword the prompt; check connection and credit balance |
| Wrong style (cartoon vs photo) | Style not stated | Add "photograph" or the style you want |
Practice
Exercise
A photo of a lake has a boat you want to replace with a small wooden dock. Your prompt "a dock, not a boat" keeps producing boats. What should you change, and why?
Show answer
Remove the negation. Firefly does not reliably understand "not", and naming the boat can make it appear. Select the boat with a small margin and use a prompt that describes only the result, for example "a small wooden dock extending into calm water". If the shape is wrong, adjust the selection to resemble a dock's outline.
Exercise
You select a small patch of grass containing a stray soda can and leave the prompt empty. The result adds a flower in its place. Give two ways to get plain grass.
Show answer
First, generate again and review the other variations, since one may be plain grass. Second, type a prompt that describes the background you want, such as "short green lawn grass". You could also enlarge the selection slightly so more plain grass is visible as context.
Exercise
A generated lamp matches your prompt but looks lit by noon sun in a photo taken at dusk. Which part of the workflow do you adjust first?
Show answer
The prompt. Add the lighting facts from the photo, such as "warm low evening light from the right", and change nothing else, so you can tell whether the lighting description fixed the mismatch.