image icon indicating copy to clipboard operation
image copied to clipboard

How to turn off image optimization?

Open senher opened this issue 2 years ago • 4 comments

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?

senher avatar Jul 25 '23 01:07 senher

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.

ausir0726 avatar Jul 26 '23 07:07 ausir0726

Is there a universal modifier for this? No matter the provider

Matoseb avatar Sep 05 '23 15:09 Matoseb

Any one solved?

oxedom avatar Jul 19 '24 17:07 oxedom

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

TechAkayy avatar Jul 23 '24 11:07 TechAkayy

Closing as the solutions was given.

Feel free to reopen if needed :)

Baroshem avatar Nov 28 '24 15:11 Baroshem

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

bropuffshroom avatar Sep 10 '25 12:09 bropuffshroom