image
image copied to clipboard
How to turn off image optimization?
I don't want to start image optimization, how can I turn off the image address prefix /_ipx/s_1920x700/ automatically added to the image?
Based on the explanation from unjs/ipx, your issue can be resolved by simply using the _ modifier to obtain the original image. If you only need to use the image proxy functionality, ensure that the nuxt-image module is enabled. The default / _ipx/ path should work correctly. Therefore, you only need to use a regular HTML image tag with the src set to / _ipx/_/http://image.on.www/image.jpg. Alternatively, you can directly integrate unjs/ipx as a middleware in your nuxt project.
Is there a universal modifier for this? No matter the provider
Any one solved?
As per this PR https://github.com/nuxt/image/pull/860, this should work:
// nuxt.config.ts
image: {
provider: 'none'
}
or env:
NUXT_IMAGE_PROVIDER=none
Closing as the solutions was given.
Feel free to reopen if needed :)
As per this PR #860, this should work:
// nuxt.config.ts image: { provider: 'none' }or env:
NUXT_IMAGE_PROVIDER=none
this one really should be in the documentation