# Remove auto=compress from all image urls

**URL:** <https://community.prismic.io/t/remove-auto-compress-from-all-image-urls/12692>\
**Category:** Developing with Prismic\
**Created:** [March 15, 2023, 10:15am UTC](https://community.prismic.io/t/remove-auto-compress-from-all-image-urls/12692 "2023-03-15T10:15:51Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent07](https://avatars.discourse-cdn.com/v4/letter/v/e47c2d/32.png) [@Vincent07](https://community.prismic.io/u/Vincent07)\
**Post date:** [March 15, 2023, 10:15am UTC](https://community.prismic.io/t/remove-auto-compress-from-all-image-urls/12692/1 "2023-03-15T10:15:51Z")

</div>

Hi here!

For images from Prismic, i'm using

`<PrismicImage :field="image" />`

I need to remove the `auto=compress` parameter from all the images from prismic.

Is there a way to disable this option somewhere, and keep the `<PrismicImage />` ?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [March 15, 2023, 12:04pm UTC](https://community.prismic.io/t/remove-auto-compress-from-all-image-urls/12692/3 "2023-03-15T12:04:40Z")

</div>

Hello @Vincent07

Thanks for reaching out to us.

My colleague in the following thread has answered this question:  
[colleague](https://community.prismic.io/t/image-format-issue/9504)

Let us know if you have any further questions.

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![d.teissier](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/d.teissier/32/5505_2.png) [@d.teissier](https://community.prismic.io/u/d.teissier)\
**Post date:** [March 15, 2023, 1:18pm UTC](https://community.prismic.io/t/remove-auto-compress-from-all-image-urls/12692/4 "2023-03-15T13:18:57Z")

</div>

Hi Priyanka!

I'm not sure to understand...

He says:

> You need to modify the URL of the image.

In my slice model.json, i can modify url:

```auto
{
  "id": "image_plein_ecran",
  "type": "SharedSlice",
  "name": "ImagePleinEcran",
  "description": "ImagePleinEcran",
  "variations": [
    {
      "id": "default",
      "name": "Default",
      "docURL": "...",
      "version": "sktwi1xtmkfgx8626",
      "description": "ImagePleinEcran",
      "primary": {
        "image": {
          "type": "Image",
          "config": {
            "label": "Image",
            "constraint": {
              "width": 1660
            },
            "thumbnails": []
          }
        }
      },
      "items": {},
      "imageUrl": "https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"
    }
  ]
}

```

But even if you remove this parameter in the imageUrl value, the url called is still with this parameter

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/4/4cd47153a1e55b2dd9313a5aa36e15a716475ad4.png)

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [March 15, 2023, 2:14pm UTC](https://community.prismic.io/t/remove-auto-compress-from-all-image-urls/12692/5 "2023-03-15T14:14:25Z")

</div>

Hello @Vincent07

You need to change the code where you are templating the image field.  
\<PrismicImage :field="image" auto: "undefined" /\>

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![Vincent07](https://avatars.discourse-cdn.com/v4/letter/v/e47c2d/32.png) [@Vincent07](https://community.prismic.io/u/Vincent07)\
**Post date:** [March 15, 2023, 4:10pm UTC](https://community.prismic.io/t/remove-auto-compress-from-all-image-urls/12692/6 "2023-03-15T16:10:31Z")

</div>

Oh it's perfect !  
Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [March 15, 2023, 5:06pm UTC](https://community.prismic.io/t/remove-auto-compress-from-all-image-urls/12692/7 "2023-03-15T17:06:41Z")

</div>

You are welcome, @Vincent07. I am happy to help. Feel free to reach out to us if you have any questions. Thanks.

---

<div class="post-metadata">

**Author:** ![Vincent07](https://avatars.discourse-cdn.com/v4/letter/v/e47c2d/32.png) [@Vincent07](https://community.prismic.io/u/Vincent07)\
**Post date:** [March 16, 2023, 3:29pm UTC](https://community.prismic.io/t/remove-auto-compress-from-all-image-urls/12692/9 "2023-03-16T15:29:27Z")

</div>

Hum... i don't understand... 😅

```auto
<PrismicImage
   :field="page.data.logo"
   auto="undefined"
 />

```

The render:

```auto
<img 
   auto="undefined" 
   src="https://images.prismic.io/publicom/ac90e187-de34-4279-9ce9-4624e18a4354_sky-explorer-logotype.webp?auto=compress,format&amp;rect=2,0,544,314&amp;w=260&amp;h=150"
>

```

Am I crazy? 😅

---

<div class="post-metadata">

**Author:** ![Vincent07](https://avatars.discourse-cdn.com/v4/letter/v/e47c2d/32.png) [@Vincent07](https://community.prismic.io/u/Vincent07)\
**Post date:** [March 20, 2023, 5:07pm UTC](https://community.prismic.io/t/remove-auto-compress-from-all-image-urls/12692/11 "2023-03-20T17:07:36Z")

</div>

Hi @priyanka, i need your help, thanks for your time 😃

Adding parameter ` auto="undefined"` doesn't working ☹

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [March 20, 2023, 7:05pm UTC](https://community.prismic.io/t/remove-auto-compress-from-all-image-urls/12692/12 "2023-03-20T19:05:40Z")

</div>

Hello @Vincent07,

There is a mistake in the code that I shared with you.

By default, both `compress` and `format` are enabled for the `auto` parameter, and each one can be configured independently.

```auto
// To remove only `compress`:
<PrismicImage field={myField} imgixParams={{ auto: 'format' }} />

// To remove only `format`:
<PrismicImage field={myField} imgixParams={{ auto: 'compress' }} />

// To remove both:
<PrismicImage field={myField} imgixParams={{ auto: undefined }} />

```

I believe it solves the issue.

Thanks,  
Priyanka

---

<div class="post-metadata">

**Author:** ![Vincent07](https://avatars.discourse-cdn.com/v4/letter/v/e47c2d/32.png) [@Vincent07](https://community.prismic.io/u/Vincent07)\
**Post date:** [March 21, 2023, 9:30am UTC](https://community.prismic.io/t/remove-auto-compress-from-all-image-urls/12692/13 "2023-03-21T09:30:30Z")

</div>

> [@Priyanka](#):
>
> `imgixParams={{ auto: undefined }}`

Hi @Priyanka!

Thanks ;)

I have now this code, for Nuxt.js

```auto
<PrismicImage
          :field="slice.primary.image_right"
          :imgix-params="{ auto:undefined }"
        />

```

But i always have the compression :(

```auto
<img src="https://images.prismic.io/publicom/5ab9ab3f-778f-40d4-8dbe-79d3853049c3_agence-1.png?auto=compress,format&amp;rect=0,1,542,331&amp;w=540&amp;h=330" alt="" imgix-params="[object Object]">

```

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [March 28, 2023, 12:12pm UTC](https://community.prismic.io/t/remove-auto-compress-from-all-image-urls/12692/14 "2023-03-28T12:12:25Z")

</div>

What do you mean by this:

> [@Vincent07](#):
>
> But i always have the compression ☹
> 
> ```auto
> <img src="https://images.prismic.io/publicom/5ab9ab3f-778f-40d4-8dbe-79d3853049c3_agence-1.png?auto=compress,format&amp;rect=0,1,542,331&amp;w=540&amp;h=330" alt="" imgix-params="[object Object]">
> 
> ```

---

<div class="post-metadata">

**Author:** ![Vincent07](https://avatars.discourse-cdn.com/v4/letter/v/e47c2d/32.png) [@Vincent07](https://community.prismic.io/u/Vincent07)\
**Post date:** [March 28, 2023, 12:16pm UTC](https://community.prismic.io/t/remove-auto-compress-from-all-image-urls/12692/15 "2023-03-28T12:16:26Z")

</div>

On the html render, i still have the **?auto=compress,format** on the image url.

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [April 3, 2023, 1:05pm UTC](https://community.prismic.io/t/remove-auto-compress-from-all-image-urls/12692/16 "2023-04-03T13:05:31Z")

</div>

That's strange. It should work. Can you share your code?
