patelutkarsh / better-file-name
A WordPress plugin to rename the image based on the image content using openai.
Package info
github.com/PatelUtkarsh/better-file-name-ai
Type:wordpress-plugin
pkg:composer/patelutkarsh/better-file-name
1.5.0
2026-02-20 16:26 UTC
Requires (Dev)
README
Description
This WordPress plugin renames files to be more readable using OpenAI (gpt-4.1-mini) upon upload and generates accessible alt text for images.
Additional features:
- Allows generating featured image using dall-e-2 or dall-e-3 API.
Note: This plugin relies on the OpenAI API. You must have an OpenAI account and API key.
Demo:
demo.mp4
Installation
Manual Installation
- 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
Composer Installation (if your setup supports composer autoloading)
- Run
composer require patelutkarsh/better-file-namecommand. - 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
Generate Missing Alt Text
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.