svelte-responsive-images icon indicating copy to clipboard operation
svelte-responsive-images copied to clipboard

External Images?

Open alteredorange opened this issue 4 years ago • 2 comments
trafficstars

Heyo! Great plugin! It looks like the external url functions don't work. As far as I can tell, it can only process local images (unless you pass in an array of external images). I guess the only way to process external images would be some sort of through the vite plugin? Any idea on how that could work? Thanks again!

alteredorange avatar Jun 26 '21 02:06 alteredorange

Hello, thanks. I've started to tinker with external URLs, if you take a look in https://github.com/ohbob/svelte-responsive-images/blob/master/lib/imageOptimizer.js you will see the code for that.

enable got and ExternalImage(url) use ConvertExternal(url), hope that helps.

ohbob avatar Jun 30 '21 03:06 ohbob

Does loading external images work?

algoflows avatar Oct 02 '22 14:10 algoflows