We're getting closer, I can feel it!
img.php img_config.php
Ok, so I got the resizer to work but it's a little different. I kept the image and cache path and autoloader as in the original file. I didn't edit it. Code is below.
/**
* Where are the sources for the classfiles.
*
* Default values:
* autoloader: null // used from v0.6.2
* cimage_class: null // used until v0.6.1
*/
'autoloader' => __DIR__ . '/../autoload.php',
//'cimage_class' => __DIR__ . '/../CImage.php',
/**
* Paths, where are the images stored and where is the cache.
* End all paths with a slash.
*
* Default values:
* image_path: __DIR__ . '/img/'
* cache_path: __DIR__ . '/../cache/'
* alias_path: null
*/
'image_path' => __DIR__ . '/img/',
'cache_path' => __DIR__ . '/../cache/',
//'alias_path' => __DIR__ . '/img/alias/',
When I add the image URL into the browser it resizes exactly how I want it to. Below works.
http://mysite.com/cimage/webroot/img.php?src=car.jpg&w=200&h=200
When I add the full URL as src no picture is shown. Below does not work. I don't use this code below.
http://mysite.com/cimage/webroot/img.php?src=http://mysite.com/cimage/img/car.jpg&w=200&h=200
I added the URL to the script in the settings below. No picture in the slider is shown.
http://mysite.com/cimage/webroot/img.php
When I remove the URL to the script and leave it blank, the pictures in the slider is shown. The problem is that it resizes the pictures to the slider settings and does not use the resize script, which is an expected result.