Image Optimisation + BlurHash with Sharp in NodeJS

Kieron Mckenna
2 min readApr 1, 2024

--

This was originally posted on the company blog here

In this blog post, we’ll cover how to convert images into WebP format and create blur hash images to store in your database to show as placeholders. WebP is used to create images that only need to be used in web and mobile applications.

Resizing to Fit WebP

--

--

Kieron Mckenna

Twitter: @kieronjmckenna | Cyber Security Masters at Queens University Belfast | Working at Chakray Consulting UK