Gaussholder
Fast and lightweight image previews, using Gaussian blur
★ 196stars
120kcomposer installs
15forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/humanmade/gaussholder/archive/refs/heads/master.zipAlso on Packagist as humanmade/gaussholder:
composer require humanmade/gaussholderFrom the readme
Gaussholder
Fast and lightweight image previews, using Gaussian blur.
--
A Human Made project. Maintained by @rmccue.
Gaussholder is an image placeholder utility, generating accurate preview images using an amazingly small amount of data.
That's a 800 byte preview image, for a 109 kilobyte image. 800 bytes still too big? Tune the size to your liking in your configuration.
Please note: This is still in development, and we're working on getting this production-ready, so things might not be settled yet. In particular, we're still working on tweaking the placeholder size and improving the lazyloading code. Avoid using this in production.
How does it work?
Gaussholder is inspired by [Facebook Engineering's fantastic post][fbeng] on generating tiny preview images. Gaussholder takes the concepts from this post and applies them to the wild world of WordPress.
In a nutshell, Gaussholder takes a Gaussian blur and applies it to an image to generate a preview image. Gaussian blurs work as a low-pass filter, allowing us to throw away a lot of the data. We then further reduce the amount of data per image by removing the JPE
Read the full README on GitHub →