zerodevx / svelte-img

High-performance responsive/progressive images for SvelteKit
https://zerodevx.github.io/svelte-img/
ISC License
321 stars 11 forks source link

Setting `lqip=0` still generates variant #1

Closed zerodevx closed 1 year ago

zerodevx commented 1 year ago

Take a cat.png file:

import src from '$lib/a/cat.png?run&width=640&format=avif&lqip=0'

Expected:

[ //src
    {
        "format": "avif",
        "width": 640,
        "height": 360,
        "src": "/@imagetools/9bb8530d12788704663be1021a779aaff48c48f0"
    }
]

Actual:

[
    {
        "format": "avif",
        "width": 640,
        "height": 360,
        "src": "/@imagetools/9bb8530d12788704663be1021a779aaff48c48f0"
    },
    {
        "format": "png",
        "width": 768,
        "height": 432,
        "src": "/@imagetools/f44bedb29709d69a0e03e4eb592b0be0841d9836"
    }
]