JonasKruckenberg / imagetools

Load and transform images using a toolbox :toolbox: of custom import directives!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use the <Image> component

BeautyLips opened this issue · comments

frameworks have become smaller, bundlers have become more efficient...

frameworks have become smaller, bundlers have become more efficient. Is this exactly true, and is it more effective? 2024, I can't do something like this
UIIImage :image-name="example.png"

and on the output get an image with srcset or picture?
can I use images dynamically?
no one does it like in your example - import in advance into the addresses component..

please provide example for

Image :name="example.png"

..in Image

optionsDefault = {
src: ?
srcset ?

return Image :src="?" :srcset="?"

This is a low-level package meant to be used to help build such components. E.g. Svelte's enhanced:img is built on vite-imagetools: https://kit.svelte.dev/docs/images#sveltejs-enhanced-img

thanks for the answer