A
Alokai11mo ago
Nikita

<SfImage /> convert image format.

Hi. How to convert image to webp and reduce quality by <Sfimage /> (<nuxt-image/>) from magento backend ? For example: I pass that url https://dev.prod.togas.tech/media/togas/image/banner/Ban1M_1.jpg and it not work. If i'am try do the same formatting, but use image from static folder - its works.
No description
7 Replies
Nikita
Nikita11mo ago
No description
skirianov
skirianov11mo ago
https://image.nuxtjs.org/providers/introduction#remote-images I guess this should be the answer, tho I'm not sure
Introduction to providers
Nuxt Image supports multiple providers for high performances.
Nikita
Nikita11mo ago
Ye, i'am already try to find smth in this docs
skirianov
skirianov11mo ago
not sure honestly, it's some config in nuxt image for sure
Nikita
Nikita11mo ago
Inside nuxt config -> baseConfig -> image -> add your domain (smth like that : image: { provider: process.env.NUXT_IMAGE_PROVIDER, domains: ['domain.com'], })
skirianov
skirianov11mo ago
yeah, that should work, but I guess it doesn't right?
Nikita
Nikita11mo ago
i think it's okay, just follow docs