This WordPress plugin renames files to be more readable using an open API (gpt-4-vision) upon upload and generates accessible alt text for images.
Rename file idea for WordPress was originally purposed by Pascal Birchler in following tweet.
- Allows generating featured image using dall-e-2 or dall-e-3 API.
Note: GPT-4 Vision is in preview, It is not recommended to use this plugin on a production site.
demo.mp4
- Download the zip file from the GitHub release
- Upload the plugin folder to /wp-content/plugins/.
- Activate the plugin through the 'Plugins' menu in WordPress.
- Set up the open API key from the settings page under the 'Tools' menu: /wp-admin/tools.php?page=better-file-name-settings
- Run
composer require patelutkarsh/better-file-name
command. - Activate the plugin through the 'Plugins' menu in WordPress.
- Set up the open API key from the settings page under the 'Tools' menu:
/wp-admin/tools.php?page=better-file-name-settings
Run following command to generate alt text for all images that do not have any.
wp better-file-name generate-alt-text --dry-run
This can take a while depending on the number of images on your site.