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