{"id":394627,"date":"2024-03-10T08:00:00","date_gmt":"2024-03-10T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/auto-alt-text\/"},"modified":"2025-10-05T17:11:00","modified_gmt":"2025-10-05T17:11:00","slug":"auto-alt-text","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/auto-alt-text\/","title":{"rendered":"Auto Alt Text"},"content":{"rendered":"<p>This plugin implements the automatic creation of alt text for images uploaded to the media library. The alt text is generated at the time of uploading the image and it is also possible to generate the alt text for images already present in the media library.<\/p>\n<p>To generate the alt text, you can choose to use the artificial intelligence of OpenAI or Azure, or decide if you simply want to copy the title of the article where the image is uploaded or the name of the image.<\/p>\n<p>Clearly, using artificial intelligence will allow for a more accurate and useful alt texts.<\/p>\n<h3>Features<\/h3>\n<p>This plugin allows you to generate alt texts in the following ways:<br \/>\n\u2013 using Openai APIs (GPT-4o, GPT-4o Mini, o1 Mini)<br \/>\n\u2013 using Anthropic Claude API<br \/>\n\u2013 using Azure APIs for computational vision;<br \/>\n\u2013 recovering the title of the image<br \/>\n\u2013 recovering the title of the article in which the image is uploaded<\/p>\n<h4>Getting Started<\/h4>\n<p>After installing the plugin, click on the \u2018Auto Alt Text\u2019 menu item.<\/p>\n<h3>Choice of Generation Method<\/h3>\n<p>Select the Generation Method you prefer<\/p>\n<h3>OpenAI\u2019s APIs<\/h3>\n<p>In your OpenAI account, retrieve the following data to enter on the options page:<br \/>\n\u2013 API Key<\/p>\n<p>Choose the model you want to use for generating the alt text.<br \/>\nEnter a prompt for generating the alt text according to your needs.<\/p>\n<h3>Claude Anthropic\u2019s APIs<\/h3>\n<p>In your Anthropic account, retrieve the following data to enter on the options page:<br \/>\n\u2013 API Key<\/p>\n<p>Choose the model you want to use for generating the alt text.<br \/>\nEnter a prompt for generating the alt text according to your needs.<\/p>\n<h3>Azure\u2019s APIs<\/h3>\n<p>On your Azure account, create a Computer Vision instance and retrieve the following data to enter on the options page:<br \/>\n\u2013 Computer Vision API Key<br \/>\n\u2013 Computer Vision Endpoint<\/p>\n<p>If you want to generate an alt text in English, save the options without filling in any other fields.<\/p>\n<p>If you want to generate an alt text in a different language, on your Azure account, create a Translator instance and retrieve the following data to enter on the options page:<br \/>\n\u2013 Translator Instance API Key<br \/>\n\u2013 Translator Instance Endpoint<br \/>\n\u2013 Translator Instance Region<\/p>\n<p>After entering this data, save the options.<\/p>\n<p>Select the desired language and save the options again.<\/p>\n<h3>Title of the article<\/h3>\n<p>For this generation method, there are no options to set as the alt text will be generated by copying the title of the article in which the image is uploaded.<\/p>\n<p>In case the article is not uploaded as an attachment of an article, the \u201cTitle of the attachment\u201d method will be used as a fallback.<\/p>\n<h3>Title of the attachment<\/h3>\n<p>For this generation method, there are no options to set as the alt text will be generated by copying the title of the image.<\/p>\n<h3>Functioning<\/h3>\n<p>Once the plugin is configured, each time an image is uploaded to the media library, an alt text will be automatically set based on the selected generation method.<\/p>\n<p>For images already in the media library, you can create bulk alt texts. Open the Media Library in the \u201clist\u201d view, select the images for which to generate the alt text, and choose the \u201cGenerate alt text\u201d bulk action. (Depending on the number of images chosen and their weight, this may take some time.)<\/p>\n<p>You can also generate the alt text of a single image directly from the media library. Open the Media Library in \u201cgrid\u201d mode, choose the image for which to generate the alt text, and click the \u201cGenerate alt text\u201d button. In no time the alt text field will be overwritten by the generated description.<\/p>\n<p><strong>Notice<\/strong>: If you choose one of the methods that involves the use of external APIs, the upload times for images in the media library might increase because it requires sending a request to the APIs, waiting for the external server to process, and waiting for a response.<\/p>\n<h3>Logging<\/h3>\n<p>If the generation of the alt text via AI is set, in case of errors, to avoid blocking the editorial work, the image is loaded anyway but without the alt text being compiled.<\/p>\n<p>When a call to the Azure or OpenAI API fails, a record containing the error message is saved in a custom database table.<br \/>\nIn this case, the cause of the error can be seen on the Auto Alt Text -> Error log page.<\/p>\n<h3>External Services<\/h3>\n<p>This plugin uses the following external services alternatively:<\/p>\n<h3>OpenAI<\/h3>\n<p>Selecting the generation method \u201cOpenAI\u2019s APIs\u201d will use the API services of <a href=\"https:\/\/openai.com\/\" rel=\"nofollow ugc\">OpenAI<\/a>.<\/p>\n<p>This plugin does not collect any information from your OpenAI account. The data transmitted to OpenAI mainly consists of the image files uploaded to your website and the specified prompt.<\/p>\n<p>For accurate information on privacy and conditions of use, please consult the <a href=\"https:\/\/openai.com\/policies\/privacy-policy\" rel=\"nofollow ugc\">privacy policy<\/a> and <a href=\"https:\/\/openai.com\/\" rel=\"nofollow ugc\">terms and conditions<\/a> directly on the official website. It is also advisable to check the costs and usage statistics of the API service on the OpenAI website.<\/p>\n<h3>Anthropic Claude<\/h3>\n<p>Selecting the generation method \u201cAnthropic\u2019s APIs\u201d will use the API services of <a href=\"https:\/\/console.anthropic.com\/\" rel=\"nofollow ugc\">Anthropic<\/a>.<\/p>\n<p>This plugin does not collect any information from your Anthropic Claude account. The data transmitted to Anthropic Claude mainly consists of the image files uploaded to your website and the specified prompt.<\/p>\n<p>For accurate information on privacy and conditions of use, please consult the <a href=\"https:\/\/www.anthropic.com\/legal\/privacy\" rel=\"nofollow ugc\">privacy policy<\/a>, <a href=\"https:\/\/www.anthropic.com\/legal\/consumer-terms\" rel=\"nofollow ugc\">terms and conditions for consumers<\/a> and <a href=\"https:\/\/www.anthropic.com\/legal\/commercial-terms\" rel=\"nofollow ugc\">terms and conditions for commercial<\/a> directly on the official website. It is also advisable to check the costs and usage statistics of the API service on the Anthropic website.<\/p>\n<h3>Azure<\/h3>\n<p>Selecting the \u201cAzure\u2019s APIs\u201d generation method will use the API services of <a href=\"https:\/\/azure.microsoft.com\/en-us\/\" rel=\"nofollow ugc\">Microsoft Azure<\/a>.<\/p>\n<p>This plugin does not collect any information from your Azure account. The data transmitted to Azure consists mainly of image files uploaded to your website.<\/p>\n<p>For accurate information on privacy and conditions of use, please directly consult the <a href=\"https:\/\/privacy.microsoft.com\/en-us\/privacystatement\" rel=\"nofollow ugc\">privacy policy<\/a> and <a href=\"https:\/\/azure.microsoft.com\/en-us\/support\/legal\/\" rel=\"nofollow ugc\">terms and conditions<\/a> on the official website. It is also advisable to check the costs and usage statistics of the API service on the Microsoft Azure\u2019s website.<\/p>\n<h3>Encryption Constants<\/h3>\n<p>We <strong>strongly recommend<\/strong> defining the new plugin-specific constants in your <code>wp-config.php<\/code>:<\/p>\n<pre><code>define( 'AAT_ENCRYPTION_KEY',  'a_random_string_of_at_least_64_characters' );\ndefine( 'AAT_ENCRYPTION_SALT', 'another_random_string_of_at_least_64_characters' );\n<\/code><\/pre>\n<p>You will find these two define(\u2026) lines already generated for you on the Auto Alt Text \u00bb Options page \u2013 simply copy & paste them before the <code>\/* That's all, stop editing! Happy publishing. *\/<\/code> line in your <code>wp-config.php<\/code>.<\/p>\n<p>If you choose not to add them, the plugin will continue to work normally, but it will fall back to using your WordPress <code>LOGGED_IN_KEY<\/code> \/ <code>LOGGED_IN_SALT<\/code>, which may break if those salts are ever changed.<\/p>\n<h3>Disclaimer<\/h3>\n<p>Auto Alt Text is a plugin that helps users automatically generate Alt Texts of their images using AI services such as OpenAI\u2019s ChatGPT or Microsoft Azure.<br \/>\nUsers need their own API key and must follow the rules set by the AI service they choose.<\/p>\n<p>By using Auto Alt Text, users agree to watch and manage AI-made content and address any issues or misuse.<\/p>\n<p>AI Engine developer and related parties are not responsible for any problems or losses caused by the use of the plugin or AI-generated content.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This plugin allows you to automatically generate an Alt Text for images uploaded into the media library via AI.<\/p>\n","protected":false},"author":65,"featured_media":395253,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Auto Alt Text - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"This plugin allows you to automatically generate an Alt Text for images uploaded into the media library via AI."},"footnotes":""},"categories":[1],"tags":[647,4659,3851,3852,433],"class_list":["post-394627","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-accessibility","tag-alt-tag","tag-alt-text","tag-openai","tag-seo"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/394627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=394627"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/394627\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/395253"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=394627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=394627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=394627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}