Open MikeAltinget opened 1 year ago
Did you set sizes
too?
In case nothing is configured inside your picture tag, nuxt-image uses it's defaults:
https://image.nuxtjs.org/configuration#screens
Did you set
sizes
too? In case nothing is configured inside your picture tag, nuxt-image uses it's defaults: https://image.nuxtjs.org/configuration#screens
No. I can't see anything in the docs about needing to set sizes
for NuxtPicture
. Maybe this is a docs issue?
However I do think it would be more intuitive just to set the width
and height
. I don't need the image to be responsive, but I would like to serve a webp
format in supported browsers
Exactly the same problem here.
I am facing the same issue. Is that expected behavior?
We want to use
NuxtPicture
for servingwebp
images and falling back tojpg
. However when setting thewidth
andheight
attributes, the image is not resized properly.Reproduction
The
picture.vue
file in this repo is a reproduction. Width and height is set to500
, however the requested image is 3072x3072.