zerodevx / svelte-img

High-performance responsive/progressive images for SvelteKit

Home Page:https://zerodevx.github.io/svelte-img/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setting `lqip=0` still generates variant

zerodevx opened this issue · comments

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"
    }
]