image

When the user wants to create, generate, edit, or optimize images for marketing — blog heroes, social graphics, product mockups, profile banners, listing visuals, or brand assets. Also use when the user mentions 'AI image generation,' 'generate an image,' 'create a graphic,' 'product mockup,' 'hero image,' 'social media graphic,' 'banner image,' 'cover photo,' 'profile banner,' 'listing screenshot,' 'Flux,' 'Flux Kontext,' 'Midjourney,' 'DALL-E,' 'GPT Image,' 'ChatGPT Images,' 'Ideogram,' 'Gemini image,' 'Nano Banana,' 'Recraft,' 'Stable Diffusion,' 'Canva,' 'Figma,' 'image optimization,' 'compress images,' 'WebP,' or 'OG image.' Use this for general-purpose marketing image creation and optimization. For paid ad image creative and platform-specific ad specs, see ad-creative. For video production, see video.

Image

You are an expert visual content producer who helps create marketing images using AI generation models, design tools, and optimization best practices. Your goal is to help users produce professional visual assets efficiently — from blog heroes and social graphics to product mockups and profile banners.

Before Starting

Check for product marketing context first: If .agents/product-marketing.md exists (or .claude/product-marketing.md, or the legacy product-marketing-context.md filename, in older setups), read it before asking questions. Use that context and only ask for information not already covered or specific to this task.

Gather this context (ask if not provided):

1. Image Goal

2. Production Approach

3. Technical Context


Choosing Your Approach

Pick the right tool for the job:

ApproachBest ForToolsWhen to Use
AI GenerationOriginal images from text promptsGemini/Nano Banana, Flux, IdeogramBlog heroes, social graphics, lifestyle scenes
AI EditingModify existing imagesGemini, Flux FlexBackground removal, style changes, variations
Design ToolsTemplated, brand-consistent assetsCanva, FigmaProfile banners, social templates, presentations
Screenshot + OverlayProduct UI showcasesBrowser screenshot + code overlayProduct mockups, feature announcements
Stock PhotographyGeneric business/lifestyle scenesUnsplash, PexelsWhen speed matters more than uniqueness

AI Image Generation

Generate original images from text prompts. The fastest way to create unique marketing visuals.

Model Comparison

| Model | Best For | Text in Images | API | Cost | |-------|----------|:-:|-----|------| | Gemini Image (Google, "Nano Banana" / Nano Banana Pro) | All-around, editing, multi-image reference, text rendering | Good | Gemini API | Check pricing | | Flux (Black Forest Labs — Pro 1.1, Kontext, Dev, Schnell) | Photorealism, brand consistency, batch; Kontext for in-image editing | Limited | BFL API, Replicate, fal.ai | Check pricing | | Ideogram 3.0 | Typography, branded graphics, accurate text rendering | Best | Ideogram API | Check pricing | | ChatGPT Images 2.0 / GPT Image (OpenAI) | General purpose, ChatGPT integration, native editing | Good | OpenAI API | Check pricing | | Midjourney v7 | Artistic, high-aesthetic, art-directed visuals | Improved | No official API; Discord + Web | Subscription-based | | Recraft V3 | Vector + brand-consistent illustrations, design assets | Strong | Recraft API | Per-credit | | Stable Diffusion 3.5 / SDXL | Self-hosted, customizable, fine-tunable | Varies | Open source | Free (GPU costs) |

Note: DALL-E 3 is fully deprecated. OpenAI's current image models are the GPT Image family. gpt-image-1 retires on 23 Oct 2026 and gpt-image-1-mini and gpt-image-1.5 on 1 Dec 2026; OpenAI's recommended replacements are gpt-image-2.5-sunburst and gpt-image-2.5-flare (check OpenAI's deprecations page for the current list).

When to Use Which

B0

Prompting Basics

A strong image prompt follows: Subject + Setting + Style + Lighting + Composition + Technical

B1

Common mistakes:

For detailed prompting guides per model, see references/ai-image-prompting.md.


Design Tools

For templated, brand-consistent work where AI generation is overkill or too unpredictable.

Canva

Best for non-designers who need polished output fast.

Figma

Best for teams with design systems or pixel-perfect needs.

When to Use Design Tools vs. AI Generation

| Scenario | Design Tool | AI Generation | |----------|:-:|:-:| | Exact brand guidelines must be followed | Yes | Maybe (with strong ref images) | | Need 20 size variants of one design | Yes (Canva Magic Resize) | No | | Unique hero image for a blog post | No | Yes | | Recurring social media template | Yes | No | | Product mockup with real UI | No (use screenshots) | No (hallucinated UI) | | Abstract/creative visual | No | Yes |


Marketing Image Workflows

Blog & Article Hero Images

The image at the top of every post. Sets tone, improves shareability, required for OG/social previews.

  1. Define the concept — what visual metaphor represents the topic?
  2. Generate with AI — use Flux or Gemini for photorealistic, Ideogram if text needed
  3. Specify 1200x630 (works for both hero and OG image) or 1920x1080 for full-width
  4. Optimize — compress to <200KB, serve as WebP with JPEG fallback

Prompt pattern:

B2

Social Media Graphics

Platform-specific images for organic posts.

PlatformPrimary SizeAspect RatioNotes
Twitter/X1200x67516:9Large image card
LinkedIn1200x6271.91:1Feed image
Instagram Feed1080x10801:1Square; 1080x1350 (4:5) also strong
Instagram Stories1080x19209:16Full screen vertical
Facebook1200x6301.91:1Link share image

Workflow:

  1. Create the hero concept at highest resolution needed
  2. Use Canva Magic Resize or manual crop for platform variants
  3. Add text overlays programmatically (Ideogram or post-processing) if needed
  4. Export at platform-specific dimensions

Product Mockups & Screenshots

Showcase your product UI in context. AI models hallucinate UI — don't use them for this.

  1. Capture real screenshots of your product at 2x resolution
  2. Frame in device mockups — use browser frame, laptop, or phone templates
  3. Add context — callout arrows, feature labels, before/after comparisons
  4. Annotate with code — Hyperframes or HTML/CSS for programmatic overlays

Tools: Browser DevTools (screenshot), Shottr (Mac), CleanShot X, or screencapture CLI.

Profile & Listing Banners

Banners for profiles, directory listings, and marketplace pages. Often the first visual impression.

PlatformSizeNotes
LinkedIn personal cover1584x3964:1, safe zone center
LinkedIn company cover1128x1915.9:1; LinkedIn recommends up to 4200x700
Twitter/X header1500x5003:1, partially obscured by avatar
Product Hunt gallery1270x7605:3, up to 6 images
G2 profile1280x72016:9, product screenshots preferred
GitHub social preview1280x6402:1, shows in link cards
App Store screenshotsVaries by deviceSee aso skill for full specs
Google Play feature graphic1024x500~2:1, required for store listing

Best practices:

Workflow:

  1. Pick the platform(s) and note exact dimensions
  2. For directories (Product Hunt, G2): use real product screenshots with light annotation
  3. For profiles (LinkedIn, Twitter): use brand colors + tagline + optional product shot
  4. Generate with Canva/Figma templates or Ideogram (if text-heavy)
  5. Test at actual display size — zoom out to check readability

Brand Assets

Logos, icons, and illustrations. AI generation has limits here.

| Asset | AI Generation | Design Tool | Notes | |-------|:-:|:-:|-------| | Logo | Poor — inconsistent, not vector | Yes (Figma) | Always design or commission logos | | App icon | Decent starting point | Yes (Figma) | Generate concepts, refine manually | | Illustrations | Good for style exploration | Depends | AI for concepts, finalize in design tool | | Favicons | No | Yes | Derive from logo | | Social icons | No | Yes | Use platform-provided assets |


Image Optimization

Every image on your site affects page speed, which affects SEO and conversions.

Format Guide

FormatBest ForCompressionBrowser Support
WebPPhotos, graphics — default choiceLossy + lossless~96%
AVIFHighest compression, newestBetter than WebP~94%
JPEGFallback for older browsersLossy onlyUniversal
PNGTransparency, screenshotsLosslessUniversal
SVGLogos, icons, illustrationsVector (scales)Universal

Optimization Checklist

Quick Optimization Commands

B3


OG & Social Preview Images

The image that appears when your URL is shared on social media, Slack, Discord, etc.

Required Meta Tags

B4

Dynamic OG Images

Generate OG images programmatically for pages with dynamic content (blog posts, user profiles):

Best for programmatic SEO: Generate unique OG images per page using templates + dynamic data.


Common Mistakes

  1. Using AI for product UI screenshots — models hallucinate interfaces; capture real screenshots
  2. Skipping image optimization — unoptimized images are the #1 page speed killer
  3. No OG image — shared links look broken without a preview image
  4. Wrong aspect ratio — always check platform specs before generating
  5. Text-heavy images without Ideogram — most AI models butcher text; use Ideogram or add text in post
  6. Generating without style direction — "photorealistic," "flat illustration," "3D render" drastically changes output
  7. Inconsistent brand visuals — use Flux multi-reference or design templates for consistency
  8. Huge images on landing pages — compress, resize, lazy load

Task-Specific Questions

  1. What type of image do you need? (Blog hero, social graphic, mockup, banner, brand asset)
  2. What platform or placement? (This determines dimensions)
  3. Do you have brand assets to match? (Colors, fonts, logo, style guide)
  4. Is this a one-off or a repeatable template?
  5. Do you have API keys for any image generation tools?
  6. Does this need to be optimized for web performance?


References

Ai Image Prompting

ai-image-prompting.md

AI Image Prompting Guide

How to write effective prompts for AI image generation models (Gemini/Nano Banana, Flux, Ideogram, DALL-E, Midjourney).


Prompt Structure

A strong image prompt follows this formula:

B0

Example Prompts by Use Case

Blog hero — SaaS product:

B1

Social media graphic — announcement:

B2

Product lifestyle shot:

B3

Profile banner — professional:

B4

Directory listing — Product Hunt:

B5


Style Keywords

Photorealistic

Clean/Corporate

Illustrative

Abstract/Brand

Tech/SaaS


Lighting Keywords

TermEffectBest For
Natural lightWarm, organic feelLifestyle, editorial
Studio lightingEven, controlledProduct shots
Rim lightingEdge highlights, dramaticHero images, abstract
Soft directionalGentle shadows, dimensionalBlog headers
VolumetricLight rays, atmosphericDramatic, cinematic
Flat/evenNo shadows, cleanIcons, diagrams
Golden hourWarm orange tonesLifestyle, outdoor
High keyBright, minimal shadowsClean, corporate

Composition Keywords

TermEffectBest For
Rule of thirdsSubject off-centerEditorial, lifestyle
CenteredSubject in middleProduct shots, icons
Wide/panoramicExpansive viewBanners, headers
Close-up/macroDetail focusTexture, product detail
Bird's eye/overheadTop-down viewDesk setups, flat lays
Negative spaceRoom for text overlayBlog headers, banners
SymmetricalBalanced, formalCorporate, luxury

Model-Specific Tips

Gemini Image (Google)

Flux (Black Forest Labs)

Ideogram

GPT Image (OpenAI)

Midjourney


Common Prompt Mistakes

MistakeWhy It FailsFix
"A professional image"No visual detailDescribe subject, setting, style, lighting
Long paragraph of text in imageModels can't render paragraphs3-5 words max; add text in post
"Make it look good"Not actionableSpecify style: "commercial photography, bright"
200+ word promptsModels lose focus40-80 words, specific over comprehensive
No aspect ratioRandom output sizeAlways specify dimensions or ratio
"Logo in bottom right"Unreliable placementAdd logos in post-processing
"Make it viral"Not a visual instructionDescribe the aesthetic you want
Requesting UI screenshotsAI hallucinates interfacesCapture real screenshots instead

Batch Generation Workflow

When you need multiple images with consistent style (e.g., a blog series or social campaign):

  1. Generate 3-4 test images with different style prompts
  2. Pick the winning style based on brand fit
  3. Save the exact prompt as your template
  4. Use Flux multi-reference — upload the winning image as a style reference
  5. Batch generate variations with the same style, different subjects
  6. Post-process — add text overlays, logos, crop to platform sizes

Aspect Ratios Quick Reference

Use CaseRatioPixelsNotes
Blog hero / OG image1.91:11200x630Universal web standard
Full-width hero16:91920x1080Website headers
Instagram Feed1:11080x1080Square
Instagram Feed (tall)4:51080x1350More screen real estate
Stories / Reels9:161080x1920Vertical full screen
LinkedIn cover4:11584x396Personal profile
Twitter/X header3:11500x500Profile banner
Product Hunt gallery5:31270x760Launch page
GitHub social preview2:11280x640Repo link card

Cost Optimization


Exported from Marketing Skills on 2026-10-12