PHPackages                             fourthcoastweb/image-alt-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. fourthcoastweb/image-alt-generator

ActiveWordpress-plugin[Image &amp; Media](/categories/media)

fourthcoastweb/image-alt-generator
==================================

Immediately generates accessibility-compliant alt text, titles, and descriptions for media library images, using the latest Google Gemini Flash models.

00PHP

Since Jan 22Pushed 5mo agoCompare

[ Source](https://github.com/FourthCoastWeb/Image-Alt-Generator)[ Packagist](https://packagist.org/packages/fourthcoastweb/image-alt-generator)[ RSS](/packages/fourthcoastweb-image-alt-generator/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

WordPress Image Metadata Generator
==================================

[](#wordpress-image-metadata-generator)

**Automate WordPress accessibility with the power of AI. Instantly generate "answer engine" and SEO-friendly alt text, titles, and image descriptions directly in the Media Library using Google's latest Gemini Flash model. A free API key is available [here](https://aistudio.google.com/app/apikey).**

### **Project Architect &amp; Engineer:** [Andrew Hickman](https://andrewhickman.me/)

[](#project-architect--engineer-andrew-hickman)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)[![WordPress](https://camo.githubusercontent.com/f1989d6cd7139e0ba03c225b1eb47980a7ec6ba2a2b489beb9c01881be322852/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d362e302532422d626c75652e737667)](https://camo.githubusercontent.com/f1989d6cd7139e0ba03c225b1eb47980a7ec6ba2a2b489beb9c01881be322852/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726450726573732d362e302532422d626c75652e737667)[![PHP](https://camo.githubusercontent.com/b43c9d6cd8939c4868f963284928566c4c35dd2da0725c027f95a3d62f2f0329/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e342532422d626c75652e737667)](https://camo.githubusercontent.com/b43c9d6cd8939c4868f963284928566c4c35dd2da0725c027f95a3d62f2f0329/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d372e342532422d626c75652e737667)

🚀 Overview
----------

[](#-overview)

[**Fourth Coast Web**](https://fourthcoastweb.com) brings the power of Google's [Gemini](https://deepmind.google/models/gemini/flash/) AI directly into your WordPress dashboard. Stop wasting precious time writing descriptive alternative text, titles, and descriptions for every image. With a single click, the plugin analyzes your uploaded image and automatically populates the **Alt Text**, **Title**, and **Description** fields, ensuring your site is accessible (WCAG compliant) and optimized for search as well as answer engines.

[![A preview of the user interface for the Crest AI Image Alt Text Generator by Fourth Coast Web](https://camo.githubusercontent.com/1621b96791c74a5333961c9bc6fee7f8de80b8de4daa94e79edbd669b9b11db0/68747470733a2f2f666f75727468636f6173747765622e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032362f30312f6d657461646174612d67656e657261746f722d666f757274682d636f6173742d7765622d707265766965772e77656270)](https://camo.githubusercontent.com/1621b96791c74a5333961c9bc6fee7f8de80b8de4daa94e79edbd669b9b11db0/68747470733a2f2f666f75727468636f6173747765622e636f6d2f77702d636f6e74656e742f75706c6f6164732f323032362f30312f6d657461646174612d67656e657261746f722d666f757274682d636f6173742d7765622d707265766965772e77656270)

    image-meta-generator-plugin-demo.mp4    ✨ Features
----------

[](#-features)

- **⚡ Instant Generation:** Uses the `gemini-flash-latest` model for fast, accurate image analysis.
- **🖼️ Native Integration:** Seamlessly extends the default WordPress Media Library modal. No navigating away to separate settings pages for daily use.
- **🧠 Context-Aware:** Includes a "Keywords" field, allowing you to guide the AI (e.g., "sunset", "product shot", "marketing") for more relevant descriptions.
- **🔒 Secure:** Your API key is stored securely using WordPress best practices and never exposed to the frontend.
- **♿ Accessibility First:** Generates concise alt text for screen readers and detailed visual descriptions for better context.

🛠️ Installation &amp; Configuration
-----------------------------------

[](#️-installation--configuration)

### Prerequisites

[](#prerequisites)

- WordPress 6.0 or higher.
- PHP 7.4 or higher.
- A **Google Gemini API Key** (Google provides a generous free tier, no credit card needed. Get an API key [here](https://aistudio.google.com/app/apikey)).

### Setup Steps

[](#setup-steps)

#### Option A: Traditional Installation

[](#option-a-traditional-installation)

1. **Download &amp; Install:**
    - Upload the `Image-Alt-Generator` folder to your `/wp-content/plugins/` directory.
    - Activate the plugin through the 'Plugins' menu in the WordPress admin.

#### Option B: Composer Installation (Bedrock/Roots)

[](#option-b-composer-installation-bedrockroots)

1. Add the repository to your `composer.json`: ```
    "repositories": [
      {
        "type": "vcs",
        "url": "https://github.com/FourthCoastWeb/Image-Alt-Generator"
      }
    ]
    ```
2. Require the plugin: ```
    composer require fourthcoastweb/image-alt-generator
    ```

### Configuration

[](#configuration)

1. **Configure API Key:**
    - Navigate to **Tools &gt; Media Metadata Generator** in your WordPress admin dashboard.
    - Paste your Google Gemini API Key into the field.
    - Click **Test Connection** to verify your key works.
    - Click **Save Changes**.

📖 How to Use
------------

[](#-how-to-use)

1. Open the **Media Library** (or click "Add Media" while editing a post).
2. Select an image to view its details.
3. Locate the new **Image Metadata Generator** section in the sidebar.
4. *(Optional)* Enter any **Keywords** to help the AI understand specific details (e.g., brand names, specific locations), and select which output fields those keywords should appear in.
5. Click **Generate Alt, Title, and Description**.
6. Wait a moment for the AI to analyze the image. The **Alternative Text**, **Title**, and **Description** fields will automatically populate.

🏗️ Architecture
---------------

[](#️-architecture)

Fourth Coast Web's **Media Metadata Generator** is built with modern WordPress development standards:

- **Backend:** PHP 7.4+ with strict typing and Namespacing (`Media_Meta_Generator`).
- **Frontend:** Extends the `wp.media.view` (Backbone.js) to inject UI elements natively into the media modal.
- **Security:** Implements robust nonce verification for AJAX requests and sanitizes all inputs.

🤝 Contributing
--------------

[](#-contributing)

We welcome contributions! Please read our [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests.

1. Fork the repository.
2. Create your feature branch (`git checkout -b feature/AwesomeFeature`).
3. Commit your changes (`git commit -m 'Add some AwesomeFeature'`).
4. Push to the branch (`git push origin feature/AwesomeFeature`).
5. Open a Pull Request.

🛡️ Security
-----------

[](#️-security)

If you discover a security vulnerability within this project, please consult [SECURITY.md](SECURITY.md) for our disclosure policy.

📄 License
---------

[](#-license)

Distributed under the MIT License. See `LICENSE` for more information.

---

**Principal Engineer:** [Andrew Hickman](https://andrewhickman.me/)
**Author:** [Fourth Coast Web](https://fourthcoastweb.com)

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance49

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/324156?v=4)[ahickman](/maintainers/ahickman)[@ahickman](https://github.com/ahickman)

---

Top Contributors

[![jsbard](https://avatars.githubusercontent.com/u/32659190?v=4)](https://github.com/jsbard "jsbard (10 commits)")

### Embed Badge

![Health badge](/badges/fourthcoastweb-image-alt-generator/health.svg)

```
[![Health](https://phpackages.com/badges/fourthcoastweb-image-alt-generator/health.svg)](https://phpackages.com/packages/fourthcoastweb-image-alt-generator)
```

###  Alternatives

[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
