PHPackages                             fork/craft-altify - 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. fork/craft-altify

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

fork/craft-altify
=================

Generates alt texts for images using different services that can be chosen from.

v1.0.0(2y ago)1111mitPHPPHP &gt;=8.0.2

Since Feb 23Pushed 2y ago5 watchersCompare

[ Source](https://github.com/fork/craft-altify)[ Packagist](https://packagist.org/packages/fork/craft-altify)[ RSS](/packages/fork-craft-altify/feed)WikiDiscussions main Synced yesterday

READMEChangelog (6)Dependencies (4)Versions (8)Used By (0)

 [ ![Fork Logo](./assets/fork-logo.png) ](https://www.fork.de)

Alt text generator plugin for Craft CMS
=======================================

[](#alt-text-generator-plugin-for-craft-cms)

Generates alt texts for images using different services that can be chosen from.

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 4.5.0 or later, and PHP 8.0.2 or later.

In order to use an alt text generator service, you'll need an api key or other credentials depending on the authentication method used.

Installation
------------

[](#installation)

You can install this plugin from the Plugin Store or with Composer.

#### From the Plugin Store

[](#from-the-plugin-store)

Go to the Plugin Store in your project’s Control Panel and search for “alt”. Then press “Install”.

#### With Composer

[](#with-composer)

Open your terminal and run the following commands:

```
# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require fork/craft-altify

# tell Craft to install the plugin
./craft plugin/install altify
```

Usage
-----

[](#usage)

By default, this plugin uses the [BLIP Model via Hugging Face Inference API](https://huggingface.co/Salesforce/blip-image-captioning-large). You will need an API Key to be able to use it. It is receommended to set it via ENV variable, but it is also possible to set it directly in the plugin's settings.

In order to use another model, go to the plugin settings and choose one of those available. You can also set the model via ENV variable. This can be a class name, or one of the following names.

### Out-of-the-box Available models

[](#out-of-the-box-available-models)

  Model name Link   BLIP (large) https://huggingface.co/Salesforce/blip-image-captioning-large   BLIP (base) https://huggingface.co/Salesforce/blip-image-captioning-base   ... ... ### Out-of-the-box Available translation services

[](#out-of-the-box-available-translation-services)

  Model name Link   DeepL API https://developers.deepl.com/docs   OPUS MT (EN → DE) https://huggingface.co/Helsinki-NLP/opus-mt-en-de   Google T5 small (EN → DE) https://huggingface.co/google-t5/t5-small   ... ... ### Implementing own alt text generators and translators

[](#implementing-own-alt-text-generators-and-translators)

You can implement your own alt text generator service by implementing the interface `fork\alt\connectors\alttextgeneration\AltTextGeneratorInterface` and registering it via the `EVENT_REGISTER_GENERATORS`event like this:

```
use fork\altify\events\RegisterGeneratorsEvent;
use fork\altify\services\Generator;

Event::on(
    Generator::class,
    Generator::EVENT_REGISTER_GENERATORS,
    function (RegisterGeneratorsEvent $event) {
        $event->generators['myGenerator'] = MyGenerator::class;
    }
);

```

The same goes for translator services. Implement `fork\altify\connectors\translation\TranslatorInterface` and register your translator like this:

```
use fork\altify\events\RegisterTranslatorsEvent;
use fork\altify\services\Translator;

Event::on(
    Translator::class,
    Translator::EVENT_REGISTER_TRANSLATORS,
    function (RegisterTranslatorsEvent $event) {
        $event->translators['myTranslator'] = MyTranslator::class;
    }
);

```

---

TODO
----

[](#todo)

- Make translation services site based to respect languages
- Implement more alt text generation services
- Maybe implement a self-hosted alt text generation service
- Maybe implement an alt text generation service running in browser with TensorFlow JS or something similar
- Implement an alt text generator registering event
- Make public on GitHub, release on Packagist and the Craft Plugin Store

---

  [![Fork Logo](./assets/heart.png)](https://www.fork.de) Brought to you by [Fork Unstable Media GmbH](https://www.fork.de)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~22 days

Recently: every ~12 days

Total

6

Last Release

749d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b311a0b266c1d9a68680ed041668f32515ceb93cf2f2c258861e100caa67745e?d=identicon)[objfork](/maintainers/objfork)

---

Top Contributors

[![scholejo](https://avatars.githubusercontent.com/u/9337219?v=4)](https://github.com/scholejo "scholejo (3 commits)")

### Embed Badge

![Health badge](/badges/fork-craft-altify/health.svg)

```
[![Health](https://phpackages.com/badges/fork-craft-altify/health.svg)](https://phpackages.com/packages/fork-craft-altify)
```

###  Alternatives

[spicyweb/craft-neo

A Matrix-like field type with block hierarchy

393813.5k10](/packages/spicyweb-craft-neo)[verbb/image-resizer

Resize assets when they are uploaded.

127276.0k8](/packages/verbb-image-resizer)[verbb/formie

The most user-friendly forms plugin for Craft.

102393.6k69](/packages/verbb-formie)[spacecatninja/imager-x

Ninja powered image transforms.

29405.1k38](/packages/spacecatninja-imager-x)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k18](/packages/solspace-craft-freeform)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)

PHPackages © 2026

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