This repository has been archived by the owner on May 31, 2023. It is now read-only.
[email protected]
: Final Release
Note
The
plaiceholder
project is feature complete and will now be kept in maintenance mode.Read the migration guide for further information.
If this project has been useful to you, please consider sponsoring my work 🖤
Features
- New
color
return for getting an image's "dominant" color - New
pixels
return for getting each raw pixel'srgba
values - Transparent images no longer have their
alpha
channel removed by default - Support for EXIF orientation (via
autoOrient
option) - New and improved docs
Breaking Changes
Read the migration guide for further information.
- ESM only
- File paths or external URLs are no longer supported –
getPlaiceholder
now expects aBuffer
(see the migration guide for examples) blurhash
no longer returnedimg
→metadata
Note
If no major issues are reported in the coming weeks, this repository will be archived and issues closed.