BlurHash

Generates BlurHash placeholders for images in Payload CMS collections.

Community 9 6/wk MIT v1.0.7

Installation

pnpm add @zapal/payload-blurhash-plugin

About

This BlurHash plugin for Payload CMS creates lightweight image placeholders to enhance website performance. It integrates directly into the Payload configuration, allowing specification of which collections to enable the plugin for. Upon image upload, it generates a `blurhash` field, providing a visual placeholder while the actual image loads. The plugin allows for configuration options like enabling/disabling based on environment variables, as well as adjusting image dimensions before blurhash generation. Supported collections must be configured in the `payload.config.ts` file, and it ensures a smooth user experience during image loading. While the plugin currently does not support generating blurhashes for resized images, future updates plan to add this feature.

Package info

Package name
@zapal/payload-blurhash-plugin
Latest version
1.0.7
Unpacked size
43 kB
License
MIT
Weekly downloads
6
Last publish
Oct 22, 2023

More from zapal-tech

View profile

Similar plugins

More in Media