<p>I had the same problem. Maybe this helps for others as well. My mistake was, that the filesystem setting in craft where the transformed files where generated to, didn't had the setting for public URLs active. When I activated public URLs I got URLs back from graphql.</p>
<p><a href="https://i.sstatic.net/I62wz.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/I62wz.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2023-11-09T18:10:38.197Z
2023-11-09T18:12:57.547Z
2023-11-09T18:12:57.547Z
Martin Lüpold
<p>So i'm using Craft as a headless CMS with a React frontend.</p>
<p>When querying assets on a S3 bucket and applying a transform to them in my GraphQL query the URL response is NULL.</p>
<p>This isn't the case when I apply the transform to assets on a local storage, and also isn't the case when I query the same asset stored on AWS S3 without the transform.</p>
<p>I checked my bucket and the subfolder isn't being generated with the transformed bucket so I assume because I'm triggering the transform through GraphQL and not a traditional template render it isn't generating the new image and storing it in AWS?</p>
<p>This is my graphQL query for the image, which was working when I was storing the file locally but since moving to S3 storage no longer works when the transform is applied:</p>
<pre><code>blogImage @transform (handle:&quot;blogthumbnail&quot;) {
    width
    height
    url
}
</code></pre>
<p>Response:</p>
<pre><code>&quot;blogImage&quot;: [
    {
        &quot;width&quot;: 437,
        &quot;height&quot;: 200,
        &quot;url&quot;: null
    }
]
</code></pre>
<p>Any hints as to why this might be happening would be appreciated.</p>

CC BY-SA 4.0
2023-01-14T09:19:44.347Z
Getting the same issue. Did you find any solution?
bmilagre
<craft3><image-transforms><graphql>
CraftCMS Image Transform returning NULL on asset.url when stored on AWS S3 Bucket
# CraftCMS Image Transform returning NULL on asset.url when stored on AWS S3 Bucket

(Asked by: username_0 on 2022-03-03)

So i'm using Craft as a headless CMS with a React frontend.
When querying assets on a S3 bucket and applying a transform to them in my GraphQL query the URL response is NULL.
This isn't the case when I apply the transform to assets on a local storage, and also isn't the case when I query the same asset stored on AWS S3 without the transform.
I checked my bucket and the subfolder isn't being generated with the transformed bucket so I assume because I'm triggering the transform through GraphQL and not a traditional template render it isn't generating the new image and storing it in AWS?
This is my graphQL query for the image, which was working when I was storing the file locally but since moving to S3 storage no longer works when the transform is applied:
blogImage @transform (handle:"blogthumbnail") {
    width
    height
    url
}

Response:
"blogImage": [
    {
        "width": 437,
        "height": 200,
        "url": null
    }
]

Any hints as to why this might be happening would be appreciated.

**Tags:** craft3, image-transforms, graphql

> **Comments:**
> **username_1**: Getting the same issue. Did you find any solution?  

---

## 1 answers

### Answer by username_2 on 2023-11-09. Score: 1

I had the same problem. Maybe this helps for others as well. My mistake was, that the filesystem setting in craft where the transformed files where generated to, didn't had the setting for public URLs active. When I activated public URLs I got URLs back from graphql.

[![enter image description here](https://i.sstatic.net/I62wz.png)](https://i.sstatic.net/I62wz.png)


---

