Overview
The Strapi plugin image-api is a plugin for the Strapi headless CMS. It is designed to help users search for images on Unsplash and Giphy, import them to their media library, and insert them into their Rich Text content with appropriate attribution.
Features
- Search for images on Unsplash and Giphy
- Import images to the media library
- Insert images with proper attribution into Rich Text content
Installation
To install the Strapi plugin image-api, follow these steps:
- Install the package using yarn:
yarn add strapi-plugin-zeasy-image-api
or using npm:
npm install strapi-plugin-zeasy-image-api
Configure Unsplash:
- Register an Unsplash account here.
- Create an app on Unsplash and take note of your app name and Access Key.
Configure Giphy:
- Register a Giphy account here.
- Create an API app on Giphy and take note of your API Key.
Generate a config file at
config/plugins.jsand make sure to include the following variables in your.envfile:
UNSPLASH_APP_NAME=your_app_name
UNSPLASH_ACCESS_KEY=your_access_key
GIPHY_API_KEY=your_api_key
Summary
The Strapi plugin image-api is a useful tool for users of the Strapi headless CMS who need to search for images on Unsplash and Giphy and easily import them into their media library and Rich Text content. The installation process is straightforward, and the plugin offers convenient features such as attribution handling for the inserted images.