<p><strong>Solution:</strong> </p>

<p>I have this line inside my config.
<code>define('BASEPATH', realpath(dirname(__FILE__) . '/../') . '/');</code></p>

<p>And inside the imager config file <code>imager.php</code> I have: 
<code>'.dev' =&gt; array('imagerSystemPath' =&gt; str_replace('craft/','images/', BASEPATH),</code></p>

<p>So, make sure the paths are all set according to your environment / directory structure.</p>

CC BY-SA 3.0
2017-04-17T13:54:12.573Z
2017-04-17T13:54:12.573Z
Wieger Jelsma
<p>I'm just trying out the <a href="https://github.com/aelvan/Imager-Craft#usage" rel="nofollow noreferrer">imager plugin</a>. It looks promising!
I've set up the first usage example but I don't see any image on my site in the browser. The image is uploaded properly to the asset source but it seems that Imager is placing its transforms in a subfolder (in this case: '7' ->  <a href="http://craft-imager.dev/imager/images/7/nature-13_d4e4e04a52bfbdbeab5ba4d2cf1d1390.jpg" rel="nofollow noreferrer">http://craft-imager.dev/imager/images/7/nature-13_d4e4e04a52bfbdbeab5ba4d2cf1d1390.jpg</a>)</p>

<p>The subfolder '7' doesn't exists on my machine.. </p>

<p>I did some digging around, but I can't figure out what's wrong. The directory 'imager/images' exists and is writable by PHP.</p>

<p>Any idea?
Thanks in advance!</p>

CC BY-SA 3.0
2017-03-20T13:51:23.520Z
So, Imager outputs the url above in the template, but the file doesn't exist on the server? Have you customized your `imagerSystemPath` config setting? What platform are you on?
André Elvan
CC BY-SA 3.0
2017-03-20T15:57:21.443Z
Hi André, Yes, that's what Imager outputs. The file doesn't exists on the server. I didn't customize the imagerSystemPath. It's set to: `$_SERVER['DOCUMENT_ROOT'] . '/imager/'`. I created the `imager` directory, but that didn't help. I also created the `images` directory inside the `imager` directory, but that didn't help either. Any idea? The following code (good old Craft code) shows the image ok by the way; `{% set image = craft.assets().limit(1).first() %} <img src="{{ image.getUrl({ width: 1000 }) }}">` Thanks for your help!
Wieger Jelsma
CC BY-SA 3.0
2017-03-20T15:59:22.513Z
I'm on a Mac. OS X El Capitan running Apache and PHP7 locally.
Wieger Jelsma
CC BY-SA 3.0
2017-03-20T16:07:45.670Z
I took another look at the imagerSystemPath ;) Thanks! That worked!
Wieger Jelsma
CC BY-SA 3.0
2017-03-20T19:47:57.153Z
Ok, had you actually overridden it with an incorrect path?
André Elvan
CC BY-SA 3.0
2017-03-21T08:47:45.850Z
I had left it untouched. So the default value was active I guess.
Wieger Jelsma
CC BY-SA 3.0
2017-04-11T23:02:09.563Z
Would you mind adding what worked for you as an official answer @WiegerJelsma in case someone else runs into this?
Brad Bell
<image-transforms><plugin-imager>
Imager resized image not shown (404)
# Imager resized image not shown (404)

(Asked by: username_0 on 2017-03-18)

I'm just trying out the [imager plugin](https://github.com/aelvan/Imager-Craft#usage). It looks promising!
I've set up the first usage example but I don't see any image on my site in the browser. The image is uploaded properly to the asset source but it seems that Imager is placing its transforms in a subfolder (in this case: '7' -> <http://craft-imager.dev/imager/images/7/nature-13_d4e4e04a52bfbdbeab5ba4d2cf1d1390.jpg>)

The subfolder '7' doesn't exists on my machine..

I did some digging around, but I can't figure out what's wrong. The directory 'imager/images' exists and is writable by PHP.

Any idea?
Thanks in advance!

**Tags:** image-transforms, plugin-imager

> **Comments:**
> **username_1**: So, Imager outputs the url above in the template, but the file doesn't exist on the server? Have you customized your `imagerSystemPath` config setting? What platform are you on?  
> **username_0**: Hi André, Yes, that's what Imager outputs. The file doesn't exists on the server. I didn't customize the imagerSystemPath. It's set to: `$_SERVER['DOCUMENT_ROOT'] . '/imager/'`. I created the `imager` directory, but that didn't help. I also created the `images` directory inside the `imager` directory, but that didn't help either. Any idea? The following code (good old Craft code) shows the image ok by the way; `{% set image = craft.assets().limit(1).first() %} <img src="{{ image.getUrl({ width: 1000 }) }}">` Thanks for your help!  
> **username_0**: I'm on a Mac. OS X El Capitan running Apache and PHP7 locally.  
> **username_0**: I took another look at the imagerSystemPath ;) Thanks! That worked!  
> **username_1**: Ok, had you actually overridden it with an incorrect path?  
> **username_0**: I had left it untouched. So the default value was active I guess.  
> **username_2**: Would you mind adding what worked for you as an official answer @WiegerJelsma in case someone else runs into this?  

---

## 1 answers

### Answer by username_0 on 2017-04-17. Score: 1

**Solution:**

I have this line inside my config.
`define('BASEPATH', realpath(dirname(__FILE__) . '/../') . '/');`

And inside the imager config file `imager.php` I have:
`'.dev' => array('imagerSystemPath' => str_replace('craft/','images/', BASEPATH),`

So, make sure the paths are all set according to your environment / directory structure.


---

