Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.alttextlab.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

All settings are available under AltTextLab → Settings in your Craft CMS control panel.

Auto-generate alt text for new assets

When enabled, the plugin automatically generates alt text for every newly uploaded image. Generation takes a few seconds, so the alt text may not appear immediately after upload.

Multi-site

SettingDescription
Automatically use each site’s languageWhen enabled, alt text is generated in the language configured for each Craft site. When disabled, the Language dropdown applies to all sites.
When multi-site mode is active:
  1. The plugin reads the locale from each site’s configuration (e.g. en-US, de, fr).
  2. Sites that share the same language are grouped together — only one API call is made per unique language.
  3. Alt text is saved separately for every site so each localized version of an asset gets its own description.
For multi-site mode to work, the target alt text field must have its Translation Method set to Translate for each site or Translate for each language. Configure this in Settings → Assets (for the native alt field) or Settings → Fields (for custom fields).

Language

Choose a language for generated alt text from the Language dropdown (130+ languages available). This setting is ignored when Automatically use each site’s language is enabled. See Supported languages for the full list.

Model type

Controls the tone and length of generated descriptions.
OptionDescription
Use account defaultUses the writing style configured in your AltTextLab account.
DescriptiveRich, detailed descriptions.
NeutralBalanced tone without subjective language.
Matter-of-factConcise, objective descriptions.
MinimalShortest possible descriptions.
See Writing styles for examples.

Field for Alt Text

Choose which field the plugin writes alt text to. By default, the native Alt field is used. You can also select any Plain Text custom field attached to your asset volume’s field layout. If you change this setting after assets have already been processed, run Bulk Generation to re-generate alt text into the new field.

System

SettingDescription
This site is reachable over the public internetWhen enabled, the plugin fetches images by URL — faster and images are not transferred to AltTextLab servers. Disable for local or private sites; images will be uploaded directly instead.

Exclude assets by volume

Use the Disable volumes setting to select one or more Asset Volumes to exclude from alt text generation. Assets stored in excluded volumes are skipped during both automatic and bulk generation.

Exclude images by regex

For finer control, exclude files by matching their full file system path with a regular expression. Set the ALT_TEXT_LAB_EXCLUDE_REGEX environment variable in your .env file:
Example: exclude thumbnails and icons
ALT_TEXT_LAB_EXCLUDE_REGEX=~/(thumbnails|icons)/~i
Example: exclude uploads/tmp directory
ALT_TEXT_LAB_EXCLUDE_REGEX=~/uploads/tmp/~
Example: exclude SVGs in the branding folder
ALT_TEXT_LAB_EXCLUDE_REGEX=~branding/.+\.svg$~i
The pattern is applied against the asset’s full local path, including the volume file system path, optional subpath, and the asset filename. You may provide a PCRE pattern with delimiters (e.g. ~/pattern/~i); if you omit delimiters, the plugin will attempt to wrap your pattern automatically. Regex exclusions apply to both automatic generation and bulk operations.