Adds automatic image placeholder encoding to Payload upload collections. Add it to the plugins array in the Payload config; it applies to all upload collections by default or to the collections you list. Supports the blurhash algorithm and the thumbhash algorithm, with versions available for Payload v2 and v3.
Payload CMS plugin for automatic Blurhash encoding of images
Installation
npm i payload-blurhash-plugin95
Stars
7
Forks
7
Open Issues
1 years ago
Last Updated
1.1k
Weekly Downloads
v3.1.0
npm Version
94.4 KB
Unpacked Size
3
Dependencies
95+2 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 95 |
| Dec 5, 2026 | 95 |
| Dec 4, 2026 | 95 |
| Dec 3, 2026 | 95 |
| Dec 2, 2026 | 95 |
| Dec 1, 2026 | 95 |
| Nov 30, 2026 | 95 |
| Nov 29, 2026 | 95 |
| Nov 28, 2026 | 95 |
| Nov 27, 2026 | 95 |
| Nov 26, 2026 | 95 |
| Nov 25, 2026 | 95 |
| Nov 24, 2026 | 95 |
| Nov 23, 2026 | 95 |
| Nov 22, 2026 | 95 |
| Nov 21, 2026 | 95 |
| Nov 20, 2026 | 95 |
| Nov 19, 2026 | 95 |
| Nov 18, 2026 | 95 |
| Nov 17, 2026 | 95 |
| Nov 16, 2026 | 96 |
| Nov 15, 2026 | 96 |
| Nov 14, 2026 | 96 |
| Nov 13, 2026 | 96 |
| Nov 12, 2026 | 96 |
| Nov 11, 2026 | 96 |
| Nov 10, 2026 | 95 |
| Nov 9, 2026 | 95 |
| Nov 8, 2026 | 95 |
| Nov 7, 2026 | 95 |
| Nov 6, 2026 | 95 |
| Nov 5, 2026 | 94 |
| Nov 4, 2026 | 94 |
| Nov 3, 2026 | 94 |
| Nov 2, 2026 | 94 |
| Nov 1, 2026 | 94 |
| Oct 31, 2026 | 94 |
| Oct 30, 2026 | 94 |
| Oct 29, 2026 | 94 |
| Oct 28, 2026 | 94 |
| Oct 27, 2026 | 94 |
| Oct 26, 2026 | 94 |
| Oct 25, 2026 | 94 |
| Oct 24, 2026 | 94 |
| Oct 23, 2026 | 94 |
| Oct 22, 2026 | 94 |
| Oct 21, 2026 | 93 |
| Oct 20, 2026 | 93 |
| Oct 19, 2026 | 93 |
| Oct 18, 2026 | 93 |
| Oct 17, 2026 | 93 |
| Oct 16, 2026 | 93 |
| Oct 15, 2026 | 93 |
| Oct 14, 2026 | 93 |
| Oct 13, 2026 | 93 |
| Oct 12, 2026 | 93 |
| Oct 11, 2026 | 93 |
| Oct 10, 2026 | 93 |
| Oct 9, 2026 | 93 |
| Oct 8, 2026 | 93 |
| Oct 7, 2026 | 93 |
| Oct 6, 2026 | 93 |
| Oct 5, 2026 | 93 |
| Oct 4, 2026 | 93 |
| Oct 3, 2026 | 93 |
| Oct 2, 2026 | 93 |
| Oct 1, 2026 | 93 |
| Sep 30, 2026 | 93 |
| Sep 29, 2026 | 93 |
| Sep 28, 2026 | 93 |
| Sep 27, 2026 | 93 |
| Sep 26, 2026 | 93 |
| Sep 25, 2026 | 93 |
| Sep 24, 2026 | 93 |
| Sep 23, 2026 | 93 |
| Sep 22, 2026 | 93 |
| Sep 21, 2026 | 93 |
| Sep 20, 2026 | 93 |
| Sep 19, 2026 | 93 |
| Sep 18, 2026 | 93 |
| Sep 17, 2026 | 93 |
| Sep 16, 2026 | 93 |
| Sep 15, 2026 | 93 |
| Sep 14, 2026 | 93 |
| Sep 13, 2026 | 93 |
| Sep 12, 2026 | 93 |
| Sep 11, 2026 | 93 |
| Sep 10, 2026 | 93 |
| Sep 9, 2026 | 93 |
| Sep 8, 2026 | 93 |
| Sep 7, 2026 | 93 |
1.1K−816 since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 1,082 |
| Dec 5, 2026 | 1,190 |
| Dec 4, 2026 | 1,231 |
| Dec 3, 2026 | 1,248 |
| Dec 2, 2026 | 1,257 |
| Dec 1, 2026 | 1,325 |
| Nov 30, 2026 | 1,303 |
| Nov 29, 2026 | 1,191 |
| Nov 28, 2026 | 1,132 |
| Nov 27, 2026 | 1,295 |
| Nov 26, 2026 | 1,420 |
| Nov 25, 2026 | 1,623 |
| Nov 24, 2026 | 1,648 |
| Nov 23, 2026 | 1,654 |
| Nov 22, 2026 | 1,709 |
| Nov 21, 2026 | 1,819 |
| Nov 20, 2026 | 1,884 |
| Nov 19, 2026 | 2,091 |
| Nov 18, 2026 | 2,029 |
| Nov 17, 2026 | 2,092 |
| Nov 16, 2026 | 2,124 |
| Nov 15, 2026 | 2,049 |
| Nov 14, 2026 | 1,953 |
| Nov 13, 2026 | 1,805 |
| Nov 12, 2026 | 1,670 |
| Nov 11, 2026 | 1,504 |
| Nov 10, 2026 | 1,369 |
| Nov 9, 2026 | 1,351 |
| Nov 8, 2026 | 1,425 |
| Nov 7, 2026 | 1,506 |
| Nov 6, 2026 | 1,455 |
| Nov 5, 2026 | 1,348 |
| Nov 4, 2026 | 1,337 |
| Nov 3, 2026 | 1,442 |
| Nov 2, 2026 | 1,431 |
| Nov 1, 2026 | 1,246 |
| Oct 31, 2026 | 1,213 |
| Oct 30, 2026 | 1,197 |
| Oct 29, 2026 | 985 |
| Oct 28, 2026 | 800 |
| Oct 27, 2026 | 705 |
| Oct 26, 2026 | 867 |
| Oct 25, 2026 | 1,018 |
| Oct 24, 2026 | 995 |
| Oct 23, 2026 | 827 |
| Oct 22, 2026 | 1,007 |
| Oct 21, 2026 | 1,242 |
| Oct 20, 2026 | 1,281 |
| Oct 19, 2026 | 1,100 |
| Oct 18, 2026 | 984 |
| Oct 17, 2026 | 940 |
| Oct 16, 2026 | 1,084 |
| Oct 15, 2026 | 1,170 |
| Oct 14, 2026 | 1,244 |
| Oct 13, 2026 | 1,370 |
| Oct 12, 2026 | 1,512 |
| Oct 11, 2026 | 1,592 |
| Oct 10, 2026 | 1,722 |
| Oct 9, 2026 | 2,136 |
| Oct 8, 2026 | 2,229 |
| Oct 7, 2026 | 2,317 |
| Oct 6, 2026 | 2,127 |
| Oct 5, 2026 | 1,921 |
| Oct 4, 2026 | 1,872 |
| Oct 3, 2026 | 1,853 |
| Oct 2, 2026 | 1,767 |
| Oct 1, 2026 | 1,612 |
| Sep 30, 2026 | 1,466 |
| Sep 29, 2026 | 1,564 |
| Sep 28, 2026 | 1,602 |
| Sep 27, 2026 | 1,573 |
| Sep 26, 2026 | 1,583 |
| Sep 25, 2026 | 1,464 |
| Sep 24, 2026 | 1,451 |
| Sep 23, 2026 | 1,414 |
| Sep 22, 2026 | 1,345 |
| Sep 21, 2026 | 1,430 |
| Sep 20, 2026 | 1,465 |
| Sep 19, 2026 | 1,610 |
| Sep 18, 2026 | 1,515 |
| Sep 17, 2026 | 1,597 |
| Sep 16, 2026 | 1,635 |
| Sep 15, 2026 | 1,616 |
| Sep 14, 2026 | 1,573 |
| Sep 13, 2026 | 1,559 |
| Sep 12, 2026 | 1,334 |
| Sep 11, 2026 | 1,459 |
| Sep 10, 2026 | 1,662 |
| Sep 9, 2026 | 1,878 |
| Sep 8, 2026 | 1,930 |
| Sep 7, 2026 | 1,898 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/497083627-root)<a href="https://payloaddirectory.dev/plugins/497083627-root"><img src="https://payloaddirectory.dev/badge/497083627-root.svg" alt="Payload Directory"></a>README
Payload CMS plugin for automatic Blurhash encoding of images.
npm i payload-blurhash-plugin@2npm i payload-blurhash-plugin@3payload.config.ts:import computeBlurhash from 'payload-blurhash-plugin';
export default buildConfig({
/* ... */
plugins: [computeBlurhash()],
});
Optionally, you can pass the following options to tweak the behavior of the plugin:
export type BlurhashPluginOptions = {
/*
* Array of collection slugs that the plugin should apply to.
* By default, the plugin will apply to all collections with `upload` properties.
*/
collections?: CollectionConfig['slug'][];
/*
* Pattern to determine which MIME types to target
* Default: image/*
*/
mimeTypePattern?: string;
/*
* Whether to show the Blurhash field when viewing media items in the admin interface.
* Default: false
*/
showBlurhashField?: boolean;
} & AlgorithmOptions;
The AlgorithmOptions depend on which algorithm you are using. Currently, there
are two algorithms available: "blurhash" (the default) and "thumbhash". You can
select an algorithm by specifying the algorithm name under the algorithm key.
These are the options for the "blurhash" algorithm:
type BlurhashOptions = {
// Default: 32
width?: number | undefined;
// Default: 32
height?: number | undefined;
// Default: 3
componentX?: number | undefined;
// Default: 3
componentY?: number | undefined;
};
There are currently no options for the "thumbhash" algorithm.
The defaults are chosen somewhat arbitrarily, they are just values that I've found to work nicely for me.
image search
Search and import stock images from Unsplash, Pexels and Pixabay inside the Payload admin
861.1k/wk115v4
payloadcms plugin image optimizer
Client-side resize, ThumbHash blur placeholders, filename strategies and bulk regeneration on top of Payload's sharp…
79666/wk27v3
payload plugin aspect preview
Live multi-aspect-ratio previews with crop and focal point editing for Payload upload collections
78174/wk6v3
blur data urls
Generate blur placeholder data URLs automatically for images uploaded to Payload media collections
66139/wk84v3
image framing
Non-destructive crop and focus areas for Payload uploads, with per-usage overrides and responsive framing
6080/wk2v3
images
On-demand Sharp image transforms with focal-point cropping, built-in LQIP placeholders and a favicons collection
6032/wk37v3