Adds a blurDataUrl field to the media collections you specify and fills it with a generated blur placeholder whenever an image is uploaded. It is configured through the plugin options in the Payload config and uses sharp for image processing. The blur width, height and strength are adjustable, and the value can be passed to next/image as a blur placeholder.
Automatically assign URLs for blur data to media collections in Payload.
Installation
npm i @oversightstudio/blur-data-urls84
Stars
9
Forks
2
Open Issues
1 months ago
Last Updated
132
Weekly Downloads
v1.0.4
npm Version
11.3 KB
Unpacked Size
0
Dependencies
84+3 since Sep 7
| Date | Stars |
|---|---|
| Dec 6, 2026 | 84 |
| Dec 5, 2026 | 84 |
| Dec 4, 2026 | 84 |
| Dec 3, 2026 | 84 |
| Dec 2, 2026 | 84 |
| Dec 1, 2026 | 84 |
| Nov 30, 2026 | 84 |
| Nov 29, 2026 | 84 |
| Nov 28, 2026 | 84 |
| Nov 27, 2026 | 84 |
| Nov 26, 2026 | 84 |
| Nov 25, 2026 | 84 |
| Nov 24, 2026 | 84 |
| Nov 23, 2026 | 84 |
| Nov 22, 2026 | 84 |
| Nov 21, 2026 | 84 |
| Nov 20, 2026 | 84 |
| Nov 19, 2026 | 84 |
| Nov 18, 2026 | 84 |
| Nov 17, 2026 | 84 |
| Nov 16, 2026 | 84 |
| Nov 15, 2026 | 84 |
| Nov 14, 2026 | 84 |
| Nov 13, 2026 | 84 |
| Nov 12, 2026 | 84 |
| Nov 11, 2026 | 84 |
| Nov 10, 2026 | 84 |
| Nov 9, 2026 | 84 |
| Nov 8, 2026 | 84 |
| Nov 7, 2026 | 84 |
| Nov 6, 2026 | 84 |
| Nov 5, 2026 | 84 |
| Nov 4, 2026 | 84 |
| Nov 3, 2026 | 83 |
| Nov 2, 2026 | 83 |
| Nov 1, 2026 | 83 |
| Oct 31, 2026 | 83 |
| Oct 30, 2026 | 83 |
| Oct 29, 2026 | 83 |
| Oct 28, 2026 | 83 |
| Oct 27, 2026 | 83 |
| Oct 26, 2026 | 83 |
| Oct 25, 2026 | 83 |
| Oct 24, 2026 | 83 |
| Oct 23, 2026 | 83 |
| Oct 22, 2026 | 83 |
| Oct 21, 2026 | 83 |
| Oct 20, 2026 | 83 |
| Oct 19, 2026 | 83 |
| Oct 18, 2026 | 83 |
| Oct 17, 2026 | 83 |
| Oct 16, 2026 | 83 |
| Oct 15, 2026 | 83 |
| Oct 14, 2026 | 83 |
| Oct 13, 2026 | 83 |
| Oct 12, 2026 | 83 |
| Oct 11, 2026 | 83 |
| Oct 10, 2026 | 83 |
| Oct 9, 2026 | 82 |
| Oct 8, 2026 | 82 |
| Oct 7, 2026 | 82 |
| Oct 6, 2026 | 82 |
| Oct 5, 2026 | 82 |
| Oct 4, 2026 | 82 |
| Oct 3, 2026 | 82 |
| Oct 2, 2026 | 82 |
| Oct 1, 2026 | 82 |
| Sep 30, 2026 | 81 |
| Sep 29, 2026 | 81 |
| Sep 28, 2026 | 81 |
| Sep 27, 2026 | 81 |
| Sep 26, 2026 | 81 |
| Sep 25, 2026 | 81 |
| Sep 24, 2026 | 81 |
| Sep 23, 2026 | 81 |
| Sep 22, 2026 | 81 |
| Sep 21, 2026 | 81 |
| Sep 20, 2026 | 81 |
| Sep 19, 2026 | 81 |
| Sep 18, 2026 | 81 |
| Sep 17, 2026 | 81 |
| Sep 16, 2026 | 81 |
| Sep 15, 2026 | 81 |
| Sep 14, 2026 | 81 |
| Sep 13, 2026 | 81 |
| Sep 12, 2026 | 81 |
| Sep 11, 2026 | 81 |
| Sep 10, 2026 | 81 |
| Sep 9, 2026 | 81 |
| Sep 8, 2026 | 81 |
| Sep 7, 2026 | 81 |
Shared by 3 plugins in oversightstudio/payload-plugins.
132−49 since Sep 7
| Date | Weekly downloads |
|---|---|
| Dec 6, 2026 | 132 |
| Dec 5, 2026 | 150 |
| Dec 4, 2026 | 126 |
| Dec 3, 2026 | 129 |
| Dec 2, 2026 | 138 |
| Dec 1, 2026 | 196 |
| Nov 30, 2026 | 212 |
| Nov 29, 2026 | 203 |
| Nov 28, 2026 | 209 |
| Nov 27, 2026 | 211 |
| Nov 26, 2026 | 192 |
| Nov 25, 2026 | 169 |
| Nov 24, 2026 | 120 |
| Nov 23, 2026 | 119 |
| Nov 22, 2026 | 150 |
| Nov 21, 2026 | 151 |
| Nov 20, 2026 | 175 |
| Nov 19, 2026 | 258 |
| Nov 18, 2026 | 259 |
| Nov 17, 2026 | 254 |
| Nov 16, 2026 | 243 |
| Nov 15, 2026 | 214 |
| Nov 14, 2026 | 210 |
| Nov 13, 2026 | 201 |
| Nov 12, 2026 | 137 |
| Nov 11, 2026 | 167 |
| Nov 10, 2026 | 338 |
| Nov 9, 2026 | 343 |
| Nov 8, 2026 | 361 |
| Nov 7, 2026 | 336 |
| Nov 6, 2026 | 346 |
| Nov 5, 2026 | 336 |
| Nov 4, 2026 | 298 |
| Nov 3, 2026 | 148 |
| Nov 2, 2026 | 144 |
| Nov 1, 2026 | 147 |
| Oct 31, 2026 | 149 |
| Oct 30, 2026 | 139 |
| Oct 29, 2026 | 121 |
| Oct 28, 2026 | 109 |
| Oct 27, 2026 | 86 |
| Oct 26, 2026 | 93 |
| Oct 25, 2026 | 87 |
| Oct 24, 2026 | 107 |
| Oct 23, 2026 | 77 |
| Oct 22, 2026 | 107 |
| Oct 21, 2026 | 124 |
| Oct 20, 2026 | 140 |
| Oct 19, 2026 | 136 |
| Oct 18, 2026 | 121 |
| Oct 17, 2026 | 121 |
| Oct 16, 2026 | 126 |
| Oct 15, 2026 | 104 |
| Oct 14, 2026 | 115 |
| Oct 13, 2026 | 95 |
| Oct 12, 2026 | 91 |
| Oct 11, 2026 | 79 |
| Oct 10, 2026 | 59 |
| Oct 9, 2026 | 71 |
| Oct 8, 2026 | 70 |
| Oct 7, 2026 | 55 |
| Oct 6, 2026 | 58 |
| Oct 5, 2026 | 53 |
| Oct 4, 2026 | 54 |
| Oct 3, 2026 | 58 |
| Oct 2, 2026 | 60 |
| Oct 1, 2026 | 61 |
| Sep 30, 2026 | 66 |
| Sep 29, 2026 | 66 |
| Sep 28, 2026 | 73 |
| Sep 27, 2026 | 90 |
| Sep 26, 2026 | 95 |
| Sep 25, 2026 | 91 |
| Sep 24, 2026 | 88 |
| Sep 23, 2026 | 108 |
| Sep 22, 2026 | 108 |
| Sep 21, 2026 | 127 |
| Sep 20, 2026 | 193 |
| Sep 19, 2026 | 213 |
| Sep 18, 2026 | 290 |
| Sep 17, 2026 | 330 |
| Sep 16, 2026 | 372 |
| Sep 15, 2026 | 401 |
| Sep 14, 2026 | 409 |
| Sep 13, 2026 | 361 |
| Sep 12, 2026 | 347 |
| Sep 11, 2026 | 293 |
| Sep 10, 2026 | 277 |
| Sep 9, 2026 | 225 |
| Sep 8, 2026 | 210 |
| Sep 7, 2026 | 181 |
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/932147916-blur-data-urls)<a href="https://payloaddirectory.dev/plugins/932147916-blur-data-urls"><img src="https://payloaddirectory.dev/badge/932147916-blur-data-urls.svg" alt="Payload Directory"></a>README
pnpm add @oversightstudio/blur-data-urls sharp
This plugin automatically assigns URLs for blur data to media collections in Payload. It will automatically add the blurDataUrl field to the collections you provide and automatically generate and assign a blurDataUrl to the field whenever a media item is uploaded.
import { buildConfig } from 'payload'
import { blurDataUrlsPlugin } from '@oversightstudio/blur-data-urls'
import { Media } from './collections/Media'
export default buildConfig({
plugins: [
blurDataUrlsPlugin({
enabled: true,
collections: [Media],
// Blur data URLs Settings (Optional)
blurOptions: {
blur: 18,
width: 32,
height: "auto",
}
}),
],
})
| Option | Type | Default | Description |
|---|---|---|---|
enabled | boolean | true | Whether the plugin is enabled. |
collections | PluginCollectionConfig[] | Required | A list of collections where blurDataUrl should be implemented. Should typically be the main media collection. |
blurOptions | object | Optional | Additional settings for generating blurDataUrls. |
blurOptions Settings| Option | Type | Default | Description |
|---|---|---|---|
width | number | 32 | Width of the blurDataUrl. |
height | number | 'auto' | 'auto' | Height of the blurDataUrl. If 'auto', it maintains the image’s aspect ratio. |
blur | number | 18 | The amount of blur applied to the generated blurDataUrl. |
import Image from 'next/image'
<Image
// Your other image settings
placeholder="blur"
blurDataURL={image.blurDataUrl ?? undefined}
/>
If you already have images in your media collection, you might want to generate blurDataUrls for them.
To do so:
./src/scripts/ directory.tsx installed either globally or on your project. You can uninstall it after running the script.tsx ./src/scripts/blurDataUrlsMigrationScript.tsTopics
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
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
payload blurhash
Generates a tiny base64 WebP blur placeholder automatically for image uploads in Payload collections
568/wk3v3
payload images
On-demand Sharp image transforms with focal-point cropping, placeholders and a responsive image component
5449/wk18v3