# \[BUG\] Broken images link after file import

**URL:** <https://community.prismic.io/t/bug-broken-images-link-after-file-import/12571>\
**Category:** Developing with Prismic\
**Created:** [March 1, 2023, 10:42am UTC](https://community.prismic.io/t/bug-broken-images-link-after-file-import/12571 "2023-03-01T10:42:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![alessandro.scandone](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@alessandro.scandone](https://community.prismic.io/u/alessandro.scandone)\
**Post date:** [March 1, 2023, 10:42am UTC](https://community.prismic.io/t/bug-broken-images-link-after-file-import/12571/1 "2023-03-01T10:42:02Z")

</div>

Hello! I’m writing here because of a problem that we have.  
Here’s the step to reproduce it:

- download the prismic documents via the “Export your documents” functionality
- upload one of them (containing at least one image) using the “Import your documents” functionality
- query the document

**Expected output:**  
The image should have the same url as before: `https://organization.prismic.io/...path`

**Actual output:**  
The image has a different url: `https://prismic-io.s3.amazonaws.com/...path`

More specifically: We can reproduce this issue using an image field inside a slice.

Here’s the json of the downloaded doc:

 ![image1](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/a/a2ad8b91421ea3b476f11fc3033d732ecc1eeb4c.png)

Here’s the json of uploaded and downloaded again doc:

 ![image2](https://europe1.discourse-cdn.com/flex013/uploads/prismic/original/2X/0/0f1b1c298d009ec63c762654ee6781166c26ee9b.png)

* * *

That problem is causing us missing images in production. We are trying to understand why doesn’t this new url work on our website, but we also would benefit in knowing how to restore the old urls (except manually replace every image in the cms UI)

Thank you in advance for your support

---

<div class="post-metadata">

**Author:** ![racheal.orukele](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@racheal.orukele](https://community.prismic.io/u/racheal.orukele)\
**Post date:** [March 2, 2023, 3:50pm UTC](https://community.prismic.io/t/bug-broken-images-link-after-file-import/12571/4 "2023-03-02T15:50:26Z")

</div>

Hello @alessandro.scandone 🙂,

My apologies for just responding to this.

Welcome to Prismic community, and thanks for reaching out to us.

I am trying to reproduce this issue on my end, and I will get back to you when I have news on this.

Kind regards,  
Racheal.

---

<div class="post-metadata">

**Author:** ![racheal.orukele](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@racheal.orukele](https://community.prismic.io/u/racheal.orukele)\
**Post date:** [March 3, 2023, 4:37pm UTC](https://community.prismic.io/t/bug-broken-images-link-after-file-import/12571/6 "2023-03-03T16:37:48Z")

</div>

Hello again, @alessandro.scandone

I was able to reproduce the issue on my end, and I have informed our team about it; if/when the team finds time to look into this, they’ll contact you here.

Kind regards,  
Racheal.

---

<div class="post-metadata">

**Author:** ![racheal.orukele](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@racheal.orukele](https://community.prismic.io/u/racheal.orukele)\
**Post date:** [March 27, 2023, 1:55pm UTC](https://community.prismic.io/t/bug-broken-images-link-after-file-import/12571/8 "2023-03-27T13:55:52Z")

</div>

A post was split to a new topic: [Prismic Image Link](https://community.prismic.io/t/prismic-image-link/12786)

---

<div class="post-metadata">

**Author:** ![francesco.mastellone](https://avatars.discourse-cdn.com/v4/letter/f/d2c977/32.png) [@francesco.mastellone](https://community.prismic.io/u/francesco.mastellone)\
**Post date:** [March 17, 2023, 3:58pm UTC](https://community.prismic.io/t/bug-broken-images-link-after-file-import/12571/12 "2023-03-17T15:58:38Z")

</div>

Hello Racheal, any news on this?

Is it possible that fetching the images from `https://prismic-io.s3.amazonaws.com/...` rather than fetching them from `*.cdn.prismic.io` results in worse performance? Where can we get info about the capabilities of Prismic's CDN?

---

<div class="post-metadata">

**Author:** ![racheal.orukele](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@racheal.orukele](https://community.prismic.io/u/racheal.orukele)\
**Post date:** [March 27, 2023, 2:44pm UTC](https://community.prismic.io/t/bug-broken-images-link-after-file-import/12571/14 "2023-03-27T14:44:48Z")

</div>

Hello @francesco.mastellone 🙂,

My apologies for just responding to this.

Welcome to Prismic community, and thanks for reaching out to us.

Can you tell me more about what you mean when you say worse performance and your use case?

We use imgix for image transformation, not CDN; I attached a link below to tell you more about the best practices for image upload.

> [@Image Optimization Service FAQ](https://community.prismic.io/t/image-optimization-service-faq/5426):
>
> Here are some of the most frequently asked questions about the [Imgix integration](https://prismic.io/docs/core-concepts/image#image-optimization).\* [[Image optimization with imgix: Fast and optimized images | Prismic tutorial] ](https://www.youtube.com/watch?v=48PNQZvs3SM)I use my own CDN, and it doesn't provide dynamic optimization Image Optimization will not work. Since you're putting a CDN in front of our image API we aren't able get the necessary information to recognize the browser requesting the image and won't provide the right image for your browser. On top of that, you will have t…

Thanks,  
Racheal.

---

<div class="post-metadata">

**Author:** ![francesco.mastellone](https://avatars.discourse-cdn.com/v4/letter/f/d2c977/32.png) [@francesco.mastellone](https://community.prismic.io/u/francesco.mastellone)\
**Post date:** [March 28, 2023, 7:57am UTC](https://community.prismic.io/t/bug-broken-images-link-after-file-import/12571/15 "2023-03-28T07:57:53Z")

</div>

Hello Racheal,

My comment is deeply related to the original topic - I work in the same company as Alessandro 🙂

I'll recap the issue again.

**When using Prismic's import feature** , stored image URLs change from:  
`https://<organization>.cdn.prismic.io/<image path>`  
to:  
`https://prismic-io.s3.amazonaws.com/<image path>`

I read `cdn` in the original image URL, which makes me think that you're using a Content Delivery Network (CDN) to serve the original image, whereas you're not using a CDN to serve the imported image. Is this correct?

To be clear, my question is not related to image transformation, it's related to how the image is served.

---

<div class="post-metadata">

**Author:** ![racheal.orukele](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@racheal.orukele](https://community.prismic.io/u/racheal.orukele)\
**Post date:** [April 3, 2023, 10:41am UTC](https://community.prismic.io/t/bug-broken-images-link-after-file-import/12571/20 "2023-04-03T10:41:30Z")

</div>

Hello @alessandro.scandone @francesco.mastellone, I checked that the image format is SVG, and it's an expected behavior for SVGs images not coming through imgix CDN and not a bug.

We removed SVGs from the imgix CDN due to security vulnerabilities, and they were moved to the amazon server and were treated as files, not images. They are the only image format served like this. Originally on the Amazon server, they weren't run through the CDN.

Please go through the following blog to learn how Prismic handles SVGs: [Changes to how we handle SVG's - Prismic](https://prismic.io/blog/changes-to-how-we-handle-svgs)

**So there are some domains:**  
All images, _except for SVG's_ , should be coming from `images.prismic.io`  
SVG's should be coming from `<repo-name>.` `cdn.prismic.io/` `<repo-name>`  
(if they are coming from `prismic-io.s3.amazonaws.com/`, then try to remove and re-add them to deliver them from`<repo-name>.` `cdn.prismic.io/` and see if it works.)

Give this a try, and let me know.

Thanks,  
Racheal.
