Automatically generate base64 placeholders for Media Library images
Generate base64 placeholders for Strapi images.
The Placeholder plugin currently supports the following formats:
The Placeholder plugin is only compatible with Strapi v4.
# if you use NPM
npm install strapi-plugin-placeholder
# if you use Yarn
yarn add strapi-plugin-placeholder
Open or create the file config/plugins.js
and enable the plugin by adding the following snippet:
1
2
3
4
5
6
7
8
9
module.exports = {
// ...
placeholder: {
enabled: true,
config: {
size: 10,
},
},
};
For more information regarding the size
param, refer to the Plaiceholder docs.
npm install strapi-plugin-placeholder
Check out the available plugin resources that will help you to develop your plugin or provider and get it listed on the marketplace.