daun/statamic-placeholders
Statamic Placeholder Images
Generate image placeholders of Statamic assets for smoother lazyloading.

Low-Quality Image Placeholders (LQIP) improve the perceived performance of sites by showing a small blurry placeholder image while the high-quality version is loading and are often used in combination with progressive lazyloading.
Features
- Create blurry image placeholders for assets
- Choose between ThumbHash, BlurHash, and Average Color placeholders
- Generate placeholders on upload, or optionally on demand
- Console commands for batch generation
How It Works
The addon ships with a Placeholder Image fieldtype and will automatically generate a small blurry placeholder image for each asset with this fieldtype in its blueprint. In your frontend views, you can access the image placeholder as a data URI string to display while the high-quality image is loading.
Quick Start
- Install using
composer require daun/statamic-placeholders - Add a
placeholderfield to your asset blueprint →assets.yaml - Display placeholder data uris using the
{{ placeholder }}field inside an{{ asset }}tag
Documentation
Read the documentation for a detailed guide to setting up and configuring the addon.
License
Related Packages
A Statamic tag for building HTML-only responsive images.
Optimizes JPEG, PNG, GIF and WebP assets and Glide images with jpegoptim, pngqua...
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 4.2.0 | ^8.2 | MIT | ||
| 4.1.1 | ^8.2 | MIT | ||
| 4.1.0 | ^8.2 | MIT | ||
| 4.0.0 | ^8.2 | ^12.0 | MIT | |
| 3.1.1 | ^8.1 | ^9.21 | | MIT | |
| 3.1.0 | ^8.1 | ^9.21 | | MIT | |
| 3.0.1 | ^8.1 | ^9.21 | | MIT | |
| 3.0.0 | ^8.1 | ^9.21 | | MIT | |
| 2.1.1 | ^8.1 | ^9.21 | | MIT | |
| 2.1.0 | ^8.1 | ^9.21 | | MIT | |
| 2.0.5 | ^8.1 | ^9.21 | | MIT | |
| 2.0.4 | ^8.1 | ^9.21 | | MIT | |
| 2.0.3 | ^8.1 | ^9.21 | | MIT | |
| 2.0.2 | ^8.1 | ^9.21 | | MIT | |
| 2.0.1 | ^8.1 | ^9.21 | | MIT | |
| 2.0.0 | ^8.1 | ^9.21 | | MIT | |
| 1.0.1 | ^8.1 | ^9.21 | | MIT | |
| 1.0.0 | ^8.1 | ^9.21 | |