<p>Imager will always create and store the transformed images locally in your <code>imagerSystemPath</code>, even if you choose to upload and serve them from an external storage. The files in that folder acts as the cache, so that Imager knows if a transform has been created or not. </p>

<p>Alternatively, Imager either would have to; 1) make a request for each transformed image to see if it existed in the external storage, or 2) have some other method of keeping track of what transforms has been made (DB, DB-like file, or something). Option 1) adds an insane amount of overhead, whereas 2) adds quite a bit of complexity and possibly some overhead (like Craft's built-in transforms, which requires DB queries). So I opted for speed and simplicity, and sacrificed disk space. :)</p>

CC BY-SA 4.0
2023-12-11T14:51:10.120Z
is this still the case with imager-x and craft 4?
Mark
CC BY-SA 4.0
2018-11-23T17:11:26.753Z
2018-11-23T17:11:26.753Z
André Elvan
<p>Got Imager running great on my S3 hosted images. However it's cacheing transforms locally on my server. I'd like to save some disc space and have the transforms on S3 too, but struggling to get my config right. I've created a couple of folders on S3 (imagertransforms) and added the following to my imager config:</p>

<pre><code>'imagerSystemPath' =&gt; 'imager/',
'imagerUrl' =&gt; 'https://myaddress.s3.amazonaws.com/_imagertransforms/',
</code></pre>

<p>Doesn't seem to be working though and not sure how best to debug. Am I missing something?</p>

<plugin-imager>
Imager Transforms, Cacheing and S3
# Imager Transforms, Cacheing and S3

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

Got Imager running great on my S3 hosted images. However it's cacheing transforms locally on my server. I'd like to save some disc space and have the transforms on S3 too, but struggling to get my config right. I've created a couple of folders on S3 (imagertransforms) and added the following to my imager config:
'imagerSystemPath' => 'imager/',
'imagerUrl' => 'https://myaddress.s3.amazonaws.com/_imagertransforms/',

Doesn't seem to be working though and not sure how best to debug. Am I missing something?

**Tags:** plugin-imager

---

## 1 answers

### Answer by username_1 on 2018-11-23. Score: 1 | Accepted answer

Imager will always create and store the transformed images locally in your `imagerSystemPath`, even if you choose to upload and serve them from an external storage. The files in that folder acts as the cache, so that Imager knows if a transform has been created or not.

Alternatively, Imager either would have to; 1) make a request for each transformed image to see if it existed in the external storage, or 2) have some other method of keeping track of what transforms has been made (DB, DB-like file, or something). Option 1) adds an insane amount of overhead, whereas 2) adds quite a bit of complexity and possibly some overhead (like Craft's built-in transforms, which requires DB queries). So I opted for speed and simplicity, and sacrificed disk space. :)

> **Comments:**
> **username_2**: is this still the case with imager-x and craft 4?  

---

