Sub topic 2
Setting Constraints and Excluding Unwanted Elements
Assume you know basic digital marketing channels, aspect ratios, and image-prompt anatomy. This chapter focuses on controlling results after you have defined the subject, style, and composition.
Set Constraints Before Generating
A constraint is a rule that limits an image. Write both required elements and exclusions. Exclusions reduce common defects, but they cannot guarantee perfection.
Useful constraints include:
- Subject boundaries: “one stainless steel bottle, no extra containers”
- Composition: “bottle on the right third, clear space on the left”
- Brand rules: “cool blue and warm gray palette”
- Safety and usage: “no identifiable people, no competitor logos”
- Output limits: “no readable text, no watermark”
Keep the constraints specific and testable. “Make it professional” is vague. “Clean product photography with soft natural light” gives the generator more useful direction.
brief = {
"subject": "one stainless steel water bottle beside a mountain lake",
"style": "clean product photography, soft natural light",
"composition": "bottle on the right third, empty space on the left",
"avoid": "extra bottles, people, logos, readable text, watermark",
}
prompt = (
f"{brief['subject']}. {brief['style']}. "
f"{brief['composition']}. Do not include: {brief['avoid']}."
)
print(prompt)Iterate One Variable at a Time
Save the prompt and generation settings for each version. Change one major variable, such as lighting or camera angle, while keeping the rest fixed. This makes the result easier to evaluate.
Use References and Edits
A reference image communicates details that words may miss, such as pose, layout, or lighting. Check that you have permission to use it. Image-to-image editing changes an existing image while preserving some structure. Inpainting replaces a selected region, such as an unwanted object or a damaged label.
Use a low edit strength when you want to preserve composition. Use a higher strength when the original structure is wrong. Test the edited area at full size because edges, reflections, and shadows often reveal the edit.
Keep the Brand Consistent
Create reusable brand fields for palette, lighting, camera style, spacing, and exclusions. Apply the same fields across prompts. Review a set of images together, not only one image at a time. Consistency includes mood and composition, not just color.
Add Text and Logos Afterwards
Generators often produce misspelled words, distorted letters, and inaccurate logos. Generate clean space for a headline instead. Add approved copy and logo files in a design tool after image generation. This also gives you control over accessibility, placement, and channel-specific sizing.
Exercise
An output has the right product and colors, but the headline is unreadable and a second bottle appears. What should you change?
Show answer
Keep the successful product and color instructions, add “one bottle only” and “no readable text,” then generate a clean version and add the headline afterwards.