matyunya / svelte-image

Image (pre)processing with Sharp for Svelte
719 stars 45 forks source link

Trace image but no change to actual image #29

Open physcopanda opened 5 years ago

physcopanda commented 5 years ago

Hi there - I've got an inline jpg and it only shows the placeholder - never gets replaced - any ideas where I might be going wrong?

`

its me!..
</div>`

and in my rollup.config.js

const preprocess = [ image({ sizes: [300, 600, 900, 1200], optimizeAll: true, placeholder: "trace", trace: { background: "transparent", color: "#D473D4", threshold: 120 } }) ];

matyunya commented 4 years ago

Sounds like something wrong with svelte-waypoint in this case. Can you try debugging to see if it's called correctly or possibly if it works if you change the value of threshold prop in Image.svelte?