
內容簡介
### 摘要:
- 這個外掛可在上傳圖片至媒體庫時自動創建圖片的 alt 文字。
- 可選擇使用 OpenAI 或 Azure 的人工智慧,或選擇複製圖片上傳的文章標題或圖片名稱來生成 alt 文字。
- 使用人工智慧將會生成更精確和實用的 alt 文字。
### 問題與答案:
1. 如何啟用外掛並開始使用?
- 安裝外掛後,點選'Auto Alt Text'選單項目來開始使用。
2. 可以如何選擇生成 alt 文字的方法?
- 選擇你喜歡的生成方法。
3. 在何種情況下可以使用 OpenAI 的 API 來生成 alt 文字?
- 在你的 OpenAI 帳戶中檢索以下數據並輸入到選項頁上:
- API 金鑰
- 根據您的需求輸入生成 alt 文文字的提示。
- 選擇一個回退的 OpenAI 模型,以防 alt 文字的自動生成不正確。
4. 在何種情況下可以使用 Azure 的 API 來生成 alt 文字?
- 在您的 Azure 帳戶中創建一個計算機視覺實例,並檢索以下數據以輸入到選項頁上:
- 計算機視覺 API 金鑰
- 計算機視覺端點
- 如果要生成英文 alt 文字,請保存而不填寫其他字段。
- 如果要生成其他語言的 alt 文字,請在您的 Azure 帳戶中創建 Translator 實例並檢索以下數據以輸入到選項頁上。
5. 如何確保 alt 文字是根據圖片上傳的文章標題生成?
- 使用 'Title of the article' 生成方法,將根據上傳圖片的文章標題生成 alt 文字。
6. 如果使用外部 API 的方法,可能會導致什麼問題?
- 使用外部 API 的方法可能會增加圖片上傳的時間,因為這需要發送請求給 API,等待外部伺服器處理,並等待回應。
7. 如何查看 alt 文字生成的錯誤日誌?
- 如果通過人工智慧生成 alt 文字時發生錯誤,圖片仍然會載入,但 alt 文字不會被編制。
- 當對 Azure 或 OpenAI API 的調用失敗時,保存包含錯誤消息的記錄。
以上是該外掛提供的功能和使用方法的總結及問答內容。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
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.
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.
Clearly, using artificial intelligence will allow for a more accurate and useful alt texts.
Features
This plugin allows you to generate alt texts in the following ways:
– using Openai APIs (GPT-4o, GPT-4o Mini, o1 Mini)
– using Anthropic Claude API
– using Azure APIs for computational vision;
– recovering the title of the image
– recovering the title of the article in which the image is uploaded
Getting Started
After installing the plugin, click on the ‘Auto Alt Text’ menu item.
Choice of Generation Method
Select the Generation Method you prefer
OpenAI’s APIs
In your OpenAI account, retrieve the following data to enter on the options page:
– API Key
Choose the model you want to use for generating the alt text.
Enter a prompt for generating the alt text according to your needs.
Claude Anthropic’s APIs
In your Anthropic account, retrieve the following data to enter on the options page:
– API Key
Choose the model you want to use for generating the alt text.
Enter a prompt for generating the alt text according to your needs.
Azure’s APIs
On your Azure account, create a Computer Vision instance and retrieve the following data to enter on the options page:
– Computer Vision API Key
– Computer Vision Endpoint
If you want to generate an alt text in English, save the options without filling in any other fields.
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:
– Translator Instance API Key
– Translator Instance Endpoint
– Translator Instance Region
After entering this data, save the options.
Select the desired language and save the options again.
Title of the article
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.
In case the article is not uploaded as an attachment of an article, the “Title of the attachment” method will be used as a fallback.
Title of the attachment
For this generation method, there are no options to set as the alt text will be generated by copying the title of the image.
Functioning
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.
For images already in the media library, you can create bulk alt texts. Open the Media Library in the “list” view, select the images for which to generate the alt text, and choose the “Generate alt text” bulk action. (Depending on the number of images chosen and their weight, this may take some time.)
You can also generate the alt text of a single image directly from the media library. Open the Media Library in “grid” mode, choose the image for which to generate the alt text, and click the “Generate alt text” button. In no time the alt text field will be overwritten by the generated description.
Notice: 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.
Logging
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.
When a call to the Azure or OpenAI API fails, a record containing the error message is saved in a custom database table.
In this case, the cause of the error can be seen on the Auto Alt Text -> Error log page.
External Services
This plugin uses the following external services alternatively:
OpenAI
Selecting the generation method “OpenAI’s APIs” will use the API services of OpenAI.
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.
For accurate information on privacy and conditions of use, please consult the privacy policy and terms and conditions directly on the official website. It is also advisable to check the costs and usage statistics of the API service on the OpenAI website.
Anthropic Claude
Selecting the generation method “Anthropic’s APIs” will use the API services of Anthropic.
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.
For accurate information on privacy and conditions of use, please consult the privacy policy, terms and conditions for consumers and terms and conditions for commercial directly on the official website. It is also advisable to check the costs and usage statistics of the API service on the Anthropic website.
Azure
Selecting the “Azure’s APIs” generation method will use the API services of Microsoft Azure.
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.
For accurate information on privacy and conditions of use, please directly consult the privacy policy and terms and conditions on the official website. It is also advisable to check the costs and usage statistics of the API service on the Microsoft Azure’s website.
Encryption Constants
We strongly recommend defining the new plugin-specific constants in your wp-config.php:
define( 'AAT_ENCRYPTION_KEY', 'a_random_string_of_at_least_64_characters' );
define( 'AAT_ENCRYPTION_SALT', 'another_random_string_of_at_least_64_characters' );
You will find these two define(…) lines already generated for you on the Auto Alt Text » Options page – simply copy & paste them before the /* That's all, stop editing! Happy publishing. */ line in your wp-config.php.
If you choose not to add them, the plugin will continue to work normally, but it will fall back to using your WordPress LOGGED_IN_KEY / LOGGED_IN_SALT, which may break if those salts are ever changed.
Disclaimer
Auto Alt Text is a plugin that helps users automatically generate Alt Texts of their images using AI services such as OpenAI’s ChatGPT or Microsoft Azure.
Users need their own API key and must follow the rules set by the AI service they choose.
By using Auto Alt Text, users agree to watch and manage AI-made content and address any issues or misuse.
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.
