# Getting Srcset from Shopify Image using integration fields?

**URL:** <https://community.prismic.io/t/getting-srcset-from-shopify-image-using-integration-fields/7213>\
**Category:** Developing with Prismic\
**Tags:** gatsby\
**Created:** [September 24, 2021, 1:23pm UTC](https://community.prismic.io/t/getting-srcset-from-shopify-image-using-integration-fields/7213 "2021-09-24T13:23:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfmkraaijeveld](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/dfmkraaijeveld/32/2546_2.png) [@dfmkraaijeveld](https://community.prismic.io/u/dfmkraaijeveld)\
**Post date:** [September 24, 2021, 1:23pm UTC](https://community.prismic.io/t/getting-srcset-from-shopify-image-using-integration-fields/7213/1 "2021-09-24T13:23:39Z")

</div>

Hi! Is it possible to get a Srcset instead of just a src to the image when using Integration Fields? Maybe I missed something, but I haven't seen this yet. I am using Prismic V3 btw since V4 doesn't work yet in combination with the gatsby-source-shopify plugin.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [September 28, 2021, 9:22am UTC](https://community.prismic.io/t/getting-srcset-from-shopify-image-using-integration-fields/7213/6 "2021-09-28T09:22:18Z")

</div>

Hi Dennis,

This is the first time I've seen this question, to be honest. My initial thought though is whether this is possible with the Shopify API or not. Can you see the Srcset attributes returned in your Shopify API?

If you can send me that then I can look into this further with you.

Thanks.

---

<div class="post-metadata">

**Author:** ![dfmkraaijeveld](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/dfmkraaijeveld/32/2546_2.png) [@dfmkraaijeveld](https://community.prismic.io/u/dfmkraaijeveld)\
**Post date:** [September 28, 2021, 11:10am UTC](https://community.prismic.io/t/getting-srcset-from-shopify-image-using-integration-fields/7213/7 "2021-09-28T11:10:32Z")

</div>

Ah, I see the 'problem' now. The Srcset is only available when querying the GatsbyImageData through the Shopify API. With Integration Fields I do not have the option to use GatsbyImageData. Maybe this is because I am still on Prismic V3, instead of V4? Or is using GatsbyImage not possible in combination with Integration Fields?

Prismic V4 is still not compatible with the Gatsby Source Shopify plugin, so for this reason I am on v3

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [September 28, 2021, 2:50pm UTC](https://community.prismic.io/t/getting-srcset-from-shopify-image-using-integration-fields/7213/8 "2021-09-28T14:50:00Z")

</div>

When you say Primsic V4, do you mean [@prismic/client](https://prismic.io/docs/technologies/prismicio-client-technical-reference)?

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [October 5, 2021, 12:25pm UTC](https://community.prismic.io/t/getting-srcset-from-shopify-image-using-integration-fields/7213/9 "2021-10-05T12:25:46Z")

</div>

closed on October 5, 2021, 12:25pm UTC, flag & select 'Something Else' to reopen.

This thread has been closed due to inactivity. [Flag to reopen](https://community.prismic.io/t/re-open-a-thread/2175).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 3:24pm UTC](https://community.prismic.io/t/getting-srcset-from-shopify-image-using-integration-fields/7213/10 "2021-12-09T15:24:43Z")

</div>

Opened on December 9, 2021, 3:24pm UTC


