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