Sub topic 7
Guiding results with reference images and edits
This chapter assumes you can write a structured prompt and iterate one change at a time, as covered in the earlier chapters. You should also know what a creative brief is. Here you will learn three ways to steer a generator with images instead of words alone: image-to-image, inpainting, and reference inputs.
Why words are not always enough
A prompt describes what you want. It cannot easily pin down an exact layout, a specific product shape, or a fix to one small area. Images carry that information directly. Three techniques cover most marketing needs:
- Image-to-image: you supply a starting image, and the tool generates a new one that follows its overall layout and colors.
- Inpainting: you mask (select) a region of an existing image, and the tool regenerates only that region.
- Reference images: you supply an example of a style, subject, or composition, and the tool uses it as guidance. Support and naming vary by tool.
Image-to-image and the strength setting
Most image-to-image tools expose a setting often called strength, denoising, or image influence. It controls how far the result may drift from your input.
| Setting | Effect | Typical use |
|---|---|---|
| Low change (input dominates) | Keeps layout and most details | Restyling lighting or color |
| Medium change | Keeps composition, redraws details | Turning a rough sketch into a scene |
| High change (prompt dominates) | Input becomes a loose hint | Exploring new ideas from a layout |
Change this one setting at a time, as you would any other variable. A rough sketch with a clear empty area for a headline is a good input. The generator tends to keep that empty area.
Inpainting for targeted fixes
Inpainting is the best tool when an image is mostly right but has one flaw, such as a distorted hand or a stray object. The steps are:
- Mask only the problem area, with a small margin around it.
- Write a prompt describing what should appear inside the mask, not the whole image.
- Generate several options and pick the one that blends best.
- Check the edges of the masked area for visible seams or lighting mismatches.
Using reference images responsibly
Reference images are useful for matching a brand's look, such as lighting and color mood, or for keeping a product recognizable. Keep these points in mind:
- Use references you own or have the right to use. Do not upload another brand's artwork or a photo of a real person without permission.
- A product photo as a reference helps shape and color, but small details such as labels and logos often come out wrong. Add those afterwards.
- Keep a small library of approved references for the campaign so every team member starts from the same inputs.
Common errors
- Masking too much: a large mask lets the tool change things you wanted to keep. Mask tightly.
- Prompting the whole scene for an inpaint: this can produce a second copy of the scene inside the mask. Describe only the patch.
- Strength set too high: the output ignores your layout, so the headline space disappears.
- Skipping the edge check: seams and mismatched lighting are easy to miss at thumbnail size. Zoom in.
Exercise
A generated trail-running image has the right composition and lighting, but the runner's hand has six fingers. Which technique should you use, and what should the prompt describe?
Show answer
Use inpainting. Mask only the hand with a small margin, and write a prompt that describes just the hand, for example "a relaxed human hand with five fingers, matching the lighting". Generate several options, choose the best, and check the mask edges for seams.
Exercise
You run image-to-image with a sketch that leaves empty space at the top for a headline. The result fills that space with clouds and trees. Which setting would you change first, and in which direction?
Show answer
Lower the strength (image influence toward the prompt) so the input sketch dominates and its empty area is kept. Change only that setting, then compare the new result with the previous one.