npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

strapi-plugin-auto-alt-caption-title-on-images-ai-enhanced

v1.0.45

Published

A Strapi plugin that automatically generates alternative text, caption, and name for images using AI-powered image analysis.

Downloads

2,436

Readme

Strapi Plugin: Auto Alt Caption Title on Images with AI Enhancement

This Strapi plugin automatically generates alternative text (alt), caption, and name for images using AI-powered image analysis. It is designed to enhance the accessibility, SEO, and user experience of your Strapi application by providing meaningful and descriptive information for images. It use the OpenAI API to generate the alt text, caption and name of the images.

Why Use This Plugin?

Manually adding alternative text, captions, and names to images can be a time-consuming and tedious task, especially when dealing with a large number of images. This plugin automates the process by leveraging AI image analysis to generate relevant and accurate descriptions for your images.

By using this plugin, you can:

  • Improve accessibility: Alternative text helps users with visual impairments understand the content of images through screen readers or other assistive technologies.
  • Boost SEO: Search engines rely on alternative text and captions to understand the content of images, which can positively impact your website's search rankings.
  • Enhance user experience: Captions and names provide additional context and information about images, enhancing the overall user experience.

Features

  • Automatically generates alternative text, caption, and name for images using AI-powered image analysis.
  • Supports processing individual images or bulk processing all images at once.
  • Provides a user-friendly interface within the Strapi admin panel to initiate image processing.
  • Displays progress and status updates during the image processing.
  • Allows cancellation of the image processing if needed.
  • Integrates seamlessly with the Strapi Media Library.

Prerequisites

Before using this plugin, ensure that you have the following:

  • Strapi v4.x installed in your project.
  • An OpenAI API key. You can sign up for an API key at OpenAI.

Installation

  1. Install the plugin in your Strapi project using npm or yarn:
npm install strapi-plugin-auto-alt-caption-title-on-images-ai-enhanced

or

yarn add strapi-plugin-auto-alt-caption-title-on-images-ai-enhanced
  1. Enable the plugin in your Strapi configuration file (config/plugins.js):
module.exports = {
	// ...
	'auto-alt-caption-title-on-images-ai-enhanced': {
		enabled: true,
	},
	// ...
}
  1. Add your OpenAI API key to the Strapi environment variables file (.env):
OPENAI_API_KEY=your-api-key
  1. Rebuild your Strapi admin panel:
npm run build
  1. Restart your Strapi server:
npm run develop

Usage

  1. Access the plugin within the Strapi admin panel by navigating to the "Auto Alt Caption Title on Images" section.
  2. The plugin will display a list of images from your Strapi Media Library that do not have alternative text, caption, or name.
  3. To process a single image, click on the desired image. The plugin will initiate the AI-powered image analysis and generate the alternative text, caption, and name for that specific image.
  4. To process all images at once, click the "Process All Images" button. The plugin will start analyzing and generating descriptions for all the images in the list.
  5. During the image processing, you can monitor the progress through the progress bar and status messages.
  6. If needed, you can cancel the image processing by clicking the "Cancel" button. This will stop the processing of the remaining images, but will not revert the changes made to the already processed images.
  7. Once the image processing is complete, the generated alternative text, caption, and name will be automatically saved for each image in the Strapi Media Library.

Troubleshooting

  • If you encounter any issues or errors during the installation or usage of the plugin, please ensure that you have followed the installation steps correctly and have provided a valid OpenAI API key.
  • If the image processing fails or takes an unusually long time, check your OpenAI API usage and limits. Ensure that you have sufficient credits and that your API key is valid.
  • If you experience any other problems or have questions, please feel free to open an issue on the plugin's GitHub repository.

Contributing

Contributions to this plugin are welcome! If you find any bugs, have feature requests, or want to contribute improvements, please submit an issue or a pull request on the plugin's GitHub repository.

When contributing, please ensure that you follow the existing code style and conventions, and provide clear and concise descriptions of your changes.

License

This plugin is released under the MIT License. Feel free to use, modify, and distribute it according to the terms of the license.

Acknowledgements

This plugin was developed using the powerful capabilities of the OpenAI API and the Strapi framework. We would like to express our gratitude to the OpenAI team for their innovative AI technology and to the Strapi community for their excellent headless CMS solution.

Contact

If you have any questions, suggestions, or feedback regarding this plugin, please feel free to contact us at [email protected] or visit our website at andy-cinquin.com

We hope you find this plugin useful and that it enhances your Strapi application's image handling capabilities!