GitHunt
ME

mengqing/strapi-plugin-placeholder

Serve placeholders with your Strapi images

Strapi Placeholder Generator

Generate placeholders for Strapi images.

๐Ÿ–Œ๏ธ Supported Content

The Placeholder plugin currently supports the following formats:

  • JPEG
  • PNG
  • GIF
  • TIFF
  • SVG

โœจ Supported Strapi Versions

The Placeholder plugin is only compatible with Strapi v4.

โš™๏ธ Installation

# if you use NPM
npm install strapi-plugin-placeholder

# if you use Yarn
yarn add strapi-plugin-placeholder

๐Ÿ”ง Configuration

Open or create the file config/plugins.js and enable the plugin by adding the following snippet:

module.exports = {
  // ...
  placeholder: {
    enabled: true,
    config: {
      returnType: 'base64',
      plaiceholder: {
        size: 10,
      },
    },
  },
};

For more information regarding the size param, refer to the Plaiceholder docs.

Languages

JavaScript100.0%

Contributors

MIT License
Created December 29, 2022
Updated December 29, 2022