We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
?lqip=0
1 parent 5e471a6 commit 8ea6416Copy full SHA for 8ea6416
src/lib/vite.js
@@ -2,7 +2,7 @@ import { imagetools } from 'vite-imagetools'
2
import { resize, format, setMetadata, metadataFormat, resolveConfigs } from 'imagetools-core'
3
4
function lqip(cfg, ctx) {
5
- if ('lqip' in cfg) {
+ if (cfg.lqip) {
6
const r = resize({ width: cfg.lqip }, ctx)
7
const f = format({ format: 'webp', quality: '20' }, ctx)
8
return async function (image) {
0 commit comments