A
Alokai17mo 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
NikitaOP17mo ago
No description
skirianov
skirianov17mo 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
NikitaOP17mo ago
Ye, i'am already try to find smth in this docs
skirianov
skirianov17mo ago
not sure honestly, it's some config in nuxt image for sure
Nikita
NikitaOP17mo ago
Inside nuxt config -> baseConfig -> image -> add your domain (smth like that : image: { provider: process.env.NUXT_IMAGE_PROVIDER, domains: ['domain.com'], })
skirianov
skirianov17mo ago
yeah, that should work, but I guess it doesn't right?
Nikita
NikitaOP16mo ago
i think it's okay, just follow docs
Want results from more Discord servers?
Add your server