Find missing alt text and fill it in without opening every image. WriteAlt adds an image workspace to the Statamic Control Panel. Filter your assets, select the images you want to work on, and generate descriptions that save directly to your existing asset fields.
What you can do
- Find gaps in an asset library. Search by filename and filter the current page for images that are missing alt text or already have it.
- Work on one image or a batch. Choose a language, a writing style, and optional keywords. Generate for selected images, fill only missing descriptions on the current page, or explicitly regenerate an existing description.
- Keep your existing setup. Descriptions save to the editable text field defined in your asset blueprint. Generating alt text does not replace the image file or modify your templates.
- Compress images separately. Opt in to compression for compatible static JPEG, PNG, and WebP files. WriteAlt keeps the original format and path and skips files when it can't produce a smaller compatible result. Compression does not use WriteAlt credits.
Example: update a gallery
In Tools > WriteAlt, choose Missing alt, select the gallery images on the current page, and choose Generate for selected. Review the saved descriptions in the asset editor and adjust them for the context in which each image appears. Your frontend template still needs to render the configured field as the image's alt attribute.
Install and configure
Requires Statamic 6, PHP 8.3 or newer within Statamic's supported range, and Composer. The addon is free to install. Alt-text generation requires a WriteAlt API key and uses your account's credits. Optional compression requires PHP GD with support for the file's format.
From the root of your Statamic project:
composer require writealt/statamic-writealtphp artisan vendor:publish --tag=writealt-native
Add the following settings to your site's private environment. Use the actual handles from your project:
WRITEALT_API_KEY=your_writealt_api_keyWRITEALT_ASSET_CONTAINER=assetsWRITEALT_ASSET_ALT_FIELD=altWRITEALT_ENABLE_OPTIMIZATION=false
The asset container's blueprint must already have an editable text or textarea field with the configured handle. Clear the config cache with php artisan config:clear if your site caches configuration, then open Tools > WriteAlt with an editor account that has access to the container and permission to edit its assets. If WriteAlt opens but its interface is missing after an upgrade, republish its bundled assets with php artisan vendor:publish --tag=writealt-native --force.
Optional image compression
Set WRITEALT_ENABLE_OPTIMIZATION=true to make compression available on a host with PHP GD. Editors need Statamic's native reupload permission as well as edit access. WriteAlt skips 16-bit PNGs and images with embedded ICC profiles. Compatible PNGs use lossless encoding, but ancillary metadata may be removed. This release does not convert formats or create duplicate assets. Try compression on staging with the same asset storage you use in production before enabling it on a live site.
Data and support
Alt-text generation sends the selected image and writing preferences to the WriteAlt API from your server. Keep the API key out of templates, browser code, and version control. Image compression runs on your Statamic server.