Returns a base64 encoded Low Quality Image Placeholder (lqip) of any given image.

await imoen.lqip(target)


const localPlaceholder = await imoen.lqip('./picture.png');; // data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4k...

const remotePlaceholder = await imoen.lqip(
);; // data:image/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4k...


The best results are achieved when the placeholder is displayed with dimensions equal to the original picture dimensions, and with a blur effect applied (something like filter: blur(5px); in CSS works well).