We built an automated image pipeline that generates featured images with full AEO metadata using Vertex AI Imagen, and it’s saved us weeks of manual work. Here’s how it works.
The problem was simple: every article needs a featured image, and every image needs metadata—IPTC tags, XMP data, alt text, captions. We were generating 15-20 images per week across 19 WordPress sites, and the metadata was always an afterthought or completely missing.
Google Images, Perplexity, and other AI crawlers now read IPTC metadata to understand image context. If your image doesn’t have proper XMP injection, you’re invisible to answer engines. We needed this automated.
Here’s the stack:
Step 1: Image Generation
We call Vertex AI Imagen with a detailed prompt derived from the article title, SEO keywords, and target intent. Instead of generic stock imagery, we generate custom visuals that actually match the content. The prompt includes style guidance (professional, modern, not cheesy) and we batch 3-5 variations per article.
Step 2: IPTC/XMP Injection
Once we have the image file, we inject IPTC metadata using exiftool. This includes:
– Title (pulled from article headline)
– Description (2-3 sentence summary)
– Keywords (article SEO keywords + category tags)
– Copyright (company name)
– Creator (AI image source attribution)
– Caption (human-friendly description)
XMP data gets the same fields plus structured data about image intent—whether it’s a featured image, thumbnail, or social asset.
Step 3: WebP Conversion & Optimization
We convert to WebP format (typically 40-50% smaller than JPG) and run optimization to hit target file sizes: featured images under 200KB, thumbnails under 80KB. This happens in a Cloud Run function that scales automatically.
Step 4: WordPress Upload & Association
The pipeline hits the WordPress REST API to upload the image as a media object, assigns the metadata in post meta fields, and attaches it as the featured image. The post ID is passed through the entire pipeline.
The Results
We now publish 15-20 articles per week with custom, properly-tagged featured images in zero manual time. Featured image attachment is guaranteed. IPTC metadata is consistent. Google Images started picking up our images within weeks—we’re ranking for image keywords we never optimized for.
The infrastructure cost is negligible: Vertex AI Imagen is about $0.10 per image, Cloud Run is free tier for our volume, and storage is minimal. The labor savings alone justify the setup time.
This isn’t a nice-to-have anymore. If you’re publishing at scale and your images don’t have proper metadata, you’re losing visibility to every AI crawler and image search engine that’s emerged in the last 18 months.

Leave a Reply