Skip to content

PNG image shows unexpected background #23

Closed Answered by zerodevx
haub94 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there, sorry for the late reply. It seems your original image has a transparent background - if that's the case, then yes, the artefacts are probably due to the LQIP.

So I thought it was the LQIP and wanted to disable it with the parameter lqip=0.

I just cut a v2 release - there are breaking changes, so your import statement should be changed to:

// disable lqip
import logo4 from "$lib/managedImages/logos/shopgate_medium.png?format=png&as=run:0";

Correspondingly, defaultDirectives in vite.config.js should be renamed to runDefaultDirectives.

Try this again with v2 and let me know how things go.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@haub94
Comment options

Answer selected by haub94
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants