I'm using NuxtPicture with format="avif,webp" and ipx. When I test the page in npm run dev, the image type in Network tab is correct: image/avif. However, when I run npm run generate and serve the build, the images in Network tab have the content type image/webp which is the original content type of my source image.
I see the image is served from a correct avif folder:
GET /_ipx/w_400&f_avif/images/blog/1-front-panels-tips/01-front-matter.webp
I tried putting this in my nuxt config:
image: {
provider : "ipx", // the default
format : ['avif', 'webp'],
ipx : {
modifiers : {
format : 'avif'
}
}
},
but the content type after generate is still image/webp.
I'm using @nuxt/image@1.8.0
Originally posted by @arxwtf in #1345 (comment)
I'm using
NuxtPicturewithformat="avif,webp"andipx. When I test the page innpm run dev, the image type in Network tab is correct:image/avif. However, when I runnpm run generateand serve the build, the images in Network tab have the content typeimage/webpwhich is the original content type of my source image.I see the image is served from a correct
aviffolder:GET /_ipx/w_400&f_avif/images/blog/1-front-panels-tips/01-front-matter.webpI tried putting this in my nuxt config:
but the content type after
generateis stillimage/webp.I'm using
@nuxt/image@1.8.0Originally posted by @arxwtf in #1345 (comment)