image icon indicating copy to clipboard operation
image copied to clipboard

How to display different pictures with different device

Open CallBoson opened this issue 2 years ago • 1 comments

So no matter I use <nuxt-img> or <nuxt-picture>, I can only resize one picture according to different device sizes, but cannot display different pictures?

CallBoson avatar Dec 01 '23 06:12 CallBoson

Yes.

You'd have to roll your own picture or img tag. You could still use the composable useImage() though to generate processed images and provide src and srcSet to your custom component.

bernhardberger avatar Dec 17 '23 23:12 bernhardberger