
內容簡介
Image Generator 是一款全方位的 AI 圖片生成器及自動特色圖片外掛,能在 Gutenberg 區塊編輯器內快速創建引人注目的特色圖片、文章縮圖及社交媒體圖片,提升網站視覺效果。
【主要功能】
• 在視覺模板工作室設計自訂圖片模板
• 使用 OpenAI GPT Image 生成 AI 圖片
• 從 Unsplash、Pexels 和 Pixabay 搜尋免費庫存照片
• 自動生成缺少的特色圖片
• 在撰寫文章時直接插入圖片
• 一鍵設置特色圖片於側邊面板
外掛標籤
開發者團隊
② 後台搜尋「Image Generator – AI Auto Featured Images, Thumbnails & Post Images」→ 直接安裝(推薦)
📦 歷史版本下載
原文外掛簡介
Image Generator is the all-in-one AI image generator and automatic featured image plugin for WordPress. Create eye-catching featured images, post thumbnails, hero banners, and social media images in two clicks — directly inside the Gutenberg block editor, or automatically every time you publish a post or page.
Stop switching between design tools, AI apps and stock photo sites. Stop publishing posts with broken thumbnail spots. With Image Generator you can:
Design your own image templates in a visual Template Studio and turn every post title into an on-brand image — free, rendered on your own server.
Generate AI images from a custom prompt using OpenAI GPT Image (your own API key) — right inside the block editor.
Search free stock photos from Unsplash, Pexels and Pixabay without leaving WordPress, imported with the photographer’s credit.
Combine them: put a stock photo or an AI image under your own template design, so each post gets a different picture with your logo, colors and title.
Auto-generate featured images whenever a post or page is saved without one — from a template, AI or a stock photo.
Insert images straight into Image and Media & Text blocks while you write, or set the featured image with one click from the AI Featured Image sidebar panel.
Where Your Images Come From
Your own image templates — designs you build in the Template Studio (or start from 10 ready-made ones). The post title and other details are filled in and the image is drawn on your server with PHP’s GD library. No API key, no cost, nothing leaves your site (unless a layer uses a stock photo or AI image).
AI images — unique images from OpenAI GPT Image, written from your prompt or from the post’s title and excerpt. Needs your own OpenAI API key.
Free stock photos — Unsplash, Pexels and Pixabay. Needs a free API key from the library you use.
Templates over photos — any template’s background or image layer can show a stock photo or an AI image picked for each post.
Images inside your templates can come from your Media Library, the post’s featured image, the first image in the post, your site logo or site icon, the author’s avatar (uploaded to the Media Library), a stock photo for the post or an AI image for the post.
Whether you run a blog, news site, magazine, portfolio, affiliate site, online store, or membership platform, this plugin gives every post a polished, SEO-friendly featured image — without the manual work.
🚀 Upgrade to Pro | 📄 Plugin Documentation | 💻 Support
Two Powerful Ways to Create Images
Inside the block editor or the Media Library (on demand): make an image from a template, an AI prompt or a stock photo while you’re writing, and drop it straight into an Image block, a Media & Text block, or set it as the post’s Featured Image.
Automatic on publish (hands-off): when a post or page has no featured image, the plugin creates one for you — from your own image template (free, instant, on-brand), with AI (a unique image written from the post’s title and excerpt) or from a stock photo that matches the post title. You choose the method in Settings, and each one can fall back to a template.
Every image — template-rendered, AI-created or a stock photo — is saved to the WordPress Media Library with proper alt text, so it works with any theme, page builder, CDN, image-optimization plugin, lazy loader, or SEO plugin.
Watch video tutorial on how to use the Image Generator plugin
Why Featured Images Matter for SEO and Engagement
Higher search rankings: Google rewards visually rich content with better placement in search results and Google Discover.
Better click-through rates: posts with attractive thumbnails get noticeably more clicks from search results, archive pages, and category listings.
More social shares: Facebook, Twitter/X, LinkedIn, and Pinterest all use the featured image when someone shares your URL. No featured image = no preview = fewer clicks.
Pinterest traffic: pin-worthy custom images can drive long-tail referral traffic for years.
Brand consistency: reusable templates keep every post on-brand without hiring a designer.
Improved Core Web Vitals: properly attached, optimized featured images load predictably and avoid layout shift.
Perfect For
Bloggers who publish daily and never want to think about featured images again.
News sites and magazines that need every article to have a thumbnail.
WooCommerce stores that need product placeholder images.
Affiliate marketers who want unique hero images for every roundup post.
Agencies and freelancers managing multiple client sites.
Membership and learning platforms that publish lots of lessons.
Anyone who has ever shipped a post with a missing or generic thumbnail.
Key Features
✅ AI Image Generation with OpenAI
Plug in your OpenAI API key (or define the AIMG_API_KEY constant in wp-config.php) and generate unique images from natural-language prompts “a sunlit forest path in autumn, photorealistic, soft lighting”, without leaving WordPress.
✅ Block Editor (Gutenberg) Integration
Adds an “AI Generate” sparkle button to the toolbar of core Image and Media & Text blocks, plus a dedicated AI Featured Image panel in the document sidebar. No setup, no shortcodes, it just shows up.
✅ Templates, AI and Stock Photos in One Modal
A single modal lets editors switch between Templates (fast, on-brand, free), Custom Prompt (AI-generated, unique) and one tab each for Unsplash, Pexels and Pixabay. It opens from the block editor and from the Media Library, and remembers the tab you used last.
✅ Free Stock Photos from Unsplash, Pexels & Pixabay
Search millions of free photos in the editor and the Media Library, filter by orientation and color, and insert one with a click. Each photo is downloaded into your Media Library with alt text and the photographer’s credit in the caption. Stock photos can also be the automatic featured image, picked with keywords from the post title. Each library needs its own free API key.
✅ On-Brand Photos: Templates over Stock or AI Images
Use a stock photo or an AI image as a template’s background or image layer, and every post gets a different picture with your logo, colors and title on top. The picture is fetched once per post in the background and reused when you regenerate.
✅ Visual Template Studio
Design image templates on a canvas: drag, resize and rotate layers, with snapping guides, undo/redo and keyboard shortcuts. Combine backgrounds (colors, random palettes, gradients or an image), images with rounded or circle masks, brightness, contrast, blur, black and white and duotone, see-through overlays and fades, shapes, patterns, frames and text. Background and image layers can use a Media Library image, the post’s featured image, the first image in the post, the site logo or icon, the author’s avatar, or a stock photo or AI image picked for each post. Text fits itself to its box, with 11 bundled fonts (or upload your own .ttf/.otf), outlines, shadows, highlight boxes and tags like {title}, {category}, {author}, {date} and {custom_field:key}. Preview with long titles or a real post, check the exact image your server will make, start from 10 ready-made designs, and import or export designs as JSON.
✅ Unlimited Reusable Image Templates
Build as many image templates as you want. Each template is rendered server-side using PHP’s GD library, no external dependency — the canvas you design on draws the same way, so what you see is what your posts get.
✅ Automatic Featured Image on Save — Template, AI or Stock Photo
When a post or page is saved without a featured image, the plugin creates one. Choose from: Image template (a random one, or the one you pick), AI image, Stock photo (Unsplash, Pexels or Pixabay, found with keywords from the post title), or a combination — template with AI as a fallback, AI with a template as a fallback, or a stock photo with a template as a fallback. AI images, stock photos and templates with a stock or AI layer are made in the background, so saving never waits on an outside service, and the editor shows the progress.
✅ Smart AI Prompts
Write your prompt template once with tags like {title}, {excerpt}, {category}, {tags} and {custom_field:key}, choose a style (Photorealistic, Flat illustration, 3D render, Watercolor, Cinematic and more), and every post gets a fitting prompt. A built-in instruction keeps garbled text and watermarks out of the image.
✅ Image Shape, Quality and Variations
Choose square, landscape or portrait images and the quality level (and so the cost). In the editor, generate up to 4 variations and keep the one you like — the others are removed from the Media Library.
✅ Cost Control
Decide which roles can use AI and set an hourly limit per user. Automatic AI images wait until a post is published, so drafts don’t spend credit.
✅ Works Anywhere You Edit
Automatic generation currently covers posts and pages. On-demand generation is not limited that way: the block editor panel and the Media Library modal let you generate an image and set it as the featured image on any post type that supports featured images, including WooCommerce products and custom post types.
✅ Native WordPress Media Library
Every image — template, AI or stock photo — is saved into the Media Library with alt text. So image optimization plugins (Smush, ShortPixel, Imagify, EWWW), CDNs (Cloudflare, BunnyCDN, KeyCDN), and SEO plugins (Yoast, Rank Math, AIOSEO) all see it as a regular attachment.
✅ REST API for Headless & Custom Workflows
Endpoints (/wp-json/aimg/v1/generate, /templates, /featured/{post}, /status/{post}, /prompt, /stock/{library}/search, /stock/{library}/import) with capability checks and nonce protection, perfect for headless WordPress, decoupled frontends, and automation scripts.
✅ Developer-Friendly Filters
Add your own AI provider (aimg_providers), stock photo library (aimg_stock_providers), template layer type (aimg_template_layers), merge tag (aimg_merge_tags), modal tab (aimgModal.tabs), generation method (aimg_generation_methods, aimg_pre_generate_for_post) or style preset (aimg_style_presets), adjust prompts (aimg_post_prompt), and keep using aimg_generate_endpoint and aimg_generate_request_body to customize the OpenAI request.
✅ Translation Ready (i18n)
Fully translatable via the bundled .pot file, both PHP and editor JavaScript strings are registered with wp_set_script_translations. Compatible with WPML, Polylang, Loco Translate, and TranslatePress.
✅ Lightweight, Fast, and Secure
No bloated dependencies. Uses native WordPress components, the GD library (already part of PHP), and the REST API. API keys can be stored outside the database with the AIMG_API_KEY, AIMG_UNSPLASH_KEY, AIMG_PEXELS_KEY and AIMG_PIXABAY_KEY constants, and stock photos are only downloaded from each library’s own image servers.
✅ No Coding Required
Simple admin UI under Image Generator in the WordPress dashboard. Build a template, save your settings, you’re done.
How It Works
Generate from the Block Editor (On Demand)
Open any post or page in the Gutenberg editor.
Click the ✨ sparkle icon in the toolbar of an Image or Media & Text block or open the AI Featured Image panel in the document sidebar.
Choose a tab in the modal:
Templates: pick a saved image template and see a preview with your post title. The title text defaults to the current post title.
Custom Prompt: describe the image you want — or click Write a prompt from this post — pick the shape, style, quality and number of variations, and press Generate (or Ctrl + Enter / ⌘ + Enter).
Unsplash, Pexels or Pixabay: search is filled in with keywords from the post title; filter by orientation and color, scroll for more, pick a photo and press Insert Photo.
The image is added to the Media Library and inserted into the block or assigned as the featured image automatically. With several AI variations, you pick one first.
The AI Featured Image panel can also (re)generate the featured image in one click using your automatic method. The same modal is available from Media → Library → Generate Image, so you can create images with any editor.
Auto-Generate Featured Images on Publish
Under Image Generator → Settings → Automatic Featured Images, choose Image template, AI image or Stock photo (or one with a fallback).
Write your post or page as normal and hit Publish or Update.
If you already set a featured image, nothing happens.
If you didn’t, a template image is rendered right away from the post title — or an AI image or stock photo is fetched in the background — saved to the Media Library and attached as the post thumbnail.
Use Cases
Daily Bloggers
Publish a post, hit Update, and walk away. Your readers and Google get a polished featured image every time, without you ever opening Canva.
News and Magazine Sites
Generate consistent on-brand thumbnails for breaking news pieces and category archives, no designer in the loop.
WooCommerce Stores
Auto-generate placeholder product images for new SKUs while real photos are still being shot. Then replace at your own pace.
Affiliate Roundups and Listicles
Use Custom Prompt mode to generate unique hero images for “Best Standing Desks 2026” style posts that don’t look like every other affiliate site.
Agencies and Multi-Site Networks
Configure templates once, set them as defaults across all client sites, and stop fielding “why doesn’t this post have an image?” tickets.
Headless and Decoupled Sites
Use the REST API endpoints to trigger image generation from a Next.js, Astro, or Gatsby frontend, a CLI script, or a CI pipeline.
Image Generator vs. Manual Workflows
Without Image Generator | With Image Generator
Add a featured image to a new post — Without: find a stock photo, download, upload, set as featured. With Image Generator: publish — done.
Generate a unique hero image — Without: open Midjourney/ChatGPT, save, upload, insert. With Image Generator: click ✨ in the toolbar, type a prompt, done.
Use a free stock photo — Without: search a stock site, download, upload, add the credit. With Image Generator: search in the editor, click Insert Photo — credit included.
Keep thumbnails on-brand across the site — Without: manual design work, every post. With Image Generator: build a template once, reused forever.
Generate placeholders for 50 imported posts — Without: tedious manual upload. With Image Generator: bulk-saving triggers auto-generation.
Troubleshooting
“No API key configured” notice in the editor: add a key under Image Generator → Settings, or define AIMG_API_KEY in wp-config.php.
Thumbnails not displaying on the frontend: make sure your theme calls add_theme_support( 'post-thumbnails' ) in functions.php.
AI generation fails or times out: check that your server can make outbound HTTPS requests, that PHP’s max_execution_time is at least 60 seconds, and that your OpenAI API key has billing enabled.
“The model … does not exist” (or similar) error: your OpenAI account doesn’t have access to the selected model. Pick another Image Model under Image Generator → Settings; GPT Image 2.5 Flare is the default.
**”No templates available” …
