Alt Text Generator Contao Extension

Generate SEO-optimized alt text for the images in your Contao file manager, in bulk, on upload and in 131 languages

Alt Text Generator AI writes SEO-friendly alt text for your images with AI. The Contao extension adds a module next to the file manager that shows your images with a preview, finds the ones with no alt text and writes it for one image, a selection or all of them. It can also write the text as soon as an image is uploaded. You review the text, change anything you like and save it into the file's metadata, where Contao reads it as the alt text of the image. This step-by-step guide shows how to install and use it.

Better alt text helps your site's accessibility and image SEO, and saves hours of writing descriptions by hand. It works on Contao 5.3 LTS and newer, with no other extension needed.

1

Install the Extension

  1. Install it with the command shown here, or search for Alt Text Generator AI in the Contao Manager. You can also find it in the Contao Extension Repository
  2. Update the database and clear the cache when the Manager asks you to
  3. Sign in to the Contao back end. Alt Text Generator AI now sits in the Content group, next to Files

💡Works with Contao 5.3 LTS, 5.7 and 6. Your API key stays on your server and never reaches the browser.

composer require balt1794/contao-alt-text-generator-ai
2

Add Your API Key

  1. Get your API key from the dashboard
  2. Open System > Settings and find Alt Text Generator AI. Paste the key into API key and save. You can also paste it into the module page the first time you open it
  3. Pick the language of the alt text, and tick Write alt text on upload if you want new images described automatically
  4. Your credits show at the top of the module page

💡Only administrators can change the key. The saved key is never shown again, so leave the field empty to keep it.

Alt Text Generator AI settings in the Contao back end with the API key field
3

Find Your Images

  1. Open Alt Text Generator AI. It lists the images of your file manager with a preview and shows your credits
  2. Missing lists the images that have no alt text. All shows everything
  3. Pick the language of the alt text from the list, from English to Zulu. The text is saved for the website language that matches it
  4. Click Scan images to find files you added outside the file manager, for example over FTP
Alt Text Generator AI module in the Contao back end listing images that are missing alt text
4

Generate Alt Text

  1. Tick the images you want, tick Select all to pick every image in the list, or leave them all unticked
  2. Click Generate selected or Generate all missing. Each image uses 1 credit. You can also click Generate on a single image
  3. Read the results and edit any text you want to change
  4. Click Save changes to save them all at once

💡Generate all missing skips images that already have alt text. Tick an image to generate it anyway, or tick Overwrite.

Generated alt text for each image in the Contao module, ready to save
5

Use It in Your Templates

  1. The text is saved in the Alternate text field of the file's metadata, for the matching website language. Contao uses it as the alt of the image wherever you show it
  2. Open any file in the file manager and click Generate alt text beside its Alternate text to write one description on the spot
  3. With Write alt text on upload on, new images get their text as soon as they are uploaded

💡An alt text you typed in a content element still wins over the one from the file's metadata.

The Alternate text field of a Contao file filled in by Alt Text Generator AI
✓

Bulk Module

A module in the Content group shows the images of your file manager with a preview and lists the ones missing alt text. Tick the ones you want and save them all at once.

✓

Saved in the File's Metadata

The text goes into the Alternate text of the file, for each website language, so Contao uses it wherever the image is shown.

✓

Works on Contao 5.3 and Newer

No other extension needed. It works on Contao 5.3 LTS, 5.7 and 6, with an English and a German back end.

✓

131 Languages

Choose the language of the alt text, and write it for your international audience.

✓

Your Key Stays on Your Server

The API key is only used by Contao's server code. The browser never sees it.

✓

Free Credits

Sign up to get free credits and test alt text generation on your own images.

✓

Alt Text on Upload

Turn on one setting and every new image gets its alt text as soon as it is uploaded, in the language of your site.

✓

Button on Every File

Open any file and click Generate alt text beside its Alternate text to write one description on the spot, in any of your website languages.

🔑

Activate Your Extension

Install the extension, then add your API key in the Contao settings.