<p>What Mike Pierce said in the comments above is your answer; Craft doesn't create the image transforms until you ask for them.</p>

<p>So for instance, in a <code>index.twig</code> file you might do something like:</p>

<pre><code>&lt;img src="{{ entry.someAsset.getUrl() }}" /&gt;
</code></pre>

<p>...which would output the image. If instead you wanted to output the image transformed based on one of the transforms you made in the AdminCP, you'd do:</p>

<pre><code>&lt;img src="{{ entry.someAsset.getUrl("someTransform") }}" /&gt;
</code></pre>

<p>...where <code>someTransform</code> is the <em>handle</em> to the transform you created in the AdminCP backend. Craft will then perform the image transform, and it'll output the transformed image on the frontend.</p>

<p>The next time that the same transform on the same image is requested, rather than doing the transform all over again, it'll just use the already transformed image that it's saved to disk.</p>

CC BY-SA 4.0
2018-11-14T03:38:13.113Z
2018-11-14T03:38:13.113Z
andrew.welch
<p>Apologies if this has come up before. I did check but the previous post referred to version 2.x and was regarding a bug.</p>

<p>I have set up 2 image transforms for images but nothing works. The assets folder is writable. Files upload without issues and I can crop them, rotate them, etc. but Image Transforms don't work.</p>

<p>Anyone know what the issue could be?</p>

CC BY-SA 4.0
2018-11-12T08:07:49.407Z
Can you post your Twig code where you call upon the image? Do you set your imageTransform handle correctly? https://docs.craftcms.com/v3/image-transforms.html#app
Tom De Smet
CC BY-SA 4.0
2018-11-12T22:30:30.690Z
What's coming back in the HTML where the transform is supposed to be?
Brad Bell
CC BY-SA 4.0
2018-11-13T09:06:32.297Z
I am working entirely in the backend at the moment. I haven't developed a front-end. It's my understanding that CraftCMS creates a subfolder within the volume you specify for the original image upload, but when I FTP to that volume there is nothing other than the original image there.
Anthony
CC BY-SA 4.0
2018-11-13T23:03:56.887Z
Transforms set up in the CP don't automatically get applied to all of your assets. You need a front-end or some other method requesting the transforms for them to be created.
Mike Pierce
<image-transforms>
Image Transforms not happening
# Image Transforms not happening

(Asked by: username_0 on 2018-11-12)

Apologies if this has come up before. I did check but the previous post referred to version 2.x and was regarding a bug.

I have set up 2 image transforms for images but nothing works. The assets folder is writable. Files upload without issues and I can crop them, rotate them, etc. but Image Transforms don't work.

Anyone know what the issue could be?

**Tags:** image-transforms
> **Comments:**
> **username_1**: Can you post your Twig code where you call upon the image? Do you set your imageTransform handle correctly? https://docs.craftcms.com/v3/image-transforms.html#app  
> **username_2**: What's coming back in the HTML where the transform is supposed to be?  
> **username_0**: I am working entirely in the backend at the moment. I haven't developed a front-end. It's my understanding that CraftCMS creates a subfolder within the volume you specify for the original image upload, but when I FTP to that volume there is nothing other than the original image there.  
> **username_3**: Transforms set up in the CP don't automatically get applied to all of your assets. You need a front-end or some other method requesting the transforms for them to be created.  

---

## 1 answers

### Answer by username_4 on 2018-11-14. Score: 0 | Accepted answer

What Mike Pierce said in the comments above is your answer; Craft doesn't create the image transforms until you ask for them.
So for instance, in a index.twig file you might do something like:


...which would output the image. If instead you wanted to output the image transformed based on one of the transforms you made in the AdminCP, you'd do:


...where someTransform is the handle to the transform you created in the AdminCP backend. Craft will then perform the image transform, and it'll output the transformed image on the frontend.
The next time that the same transform on the same image is requested, rather than doing the transform all over again, it'll just use the already transformed image that it's saved to disk.


---

