Providers are integrations between Nuxt Image and third-party image transformation services. Each provider is responsible for generating correct URLs for that image transformation service.
Nuxt Image can be configured to work with any external image transformation service. Checkout sidebar for list of preconfigured providers.
If you are looking for a specific provider that is not already supported, you can create your own provider.
Nuxt Image will automatically optimize
<nuxt-picture> sources and accepts all options for specified target, except for modifiers that are specific to other providers.
The default optimizer and provider for Nuxt Image is ipx. Either option can be used without any configuration.
Images should be stored in the
public/ directory of your project.
For example, when using
<nuxt-img src="/nuxt-icon.png" />, it should be placed in
public/ folder under the path
For more information, you can learn more about the public directory.
assets/directory are not proccessed with Nuxt Image because those images are managed by webpack.
Using default provider, you can also optimize external URLs. For this, you need to add them to
You can set default provider using
NUXT_IMAGE_PROVIDER environment variable.
Providers detected automatically:
It is possible to define your own provider, learn more how to create a custom provider.