1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-31 19:31:47 +02:00

Added hook in img,php before CImage is called, #123.

This commit is contained in:
Mikael Roos
2015-10-21 00:51:48 +02:00
parent 8c89166967
commit 1bf57fe8ef
2 changed files with 77 additions and 9 deletions

View File

@@ -122,6 +122,24 @@ return array(
/**
* A function (hook) can be called after img.php has processed all
* configuration options and before processing the image using CImage.
* The function receives the $img variabel and an array with the
* majority of current settings.
*
* Default value:
* hook_before_CImage: null
*/
/*'hook_before_CImage' => function (CImage $img, Array $allConfig) {
if ($allConfig['newWidth'] > 10) {
$allConfig['newWidth'] *= 2;
}
return $allConfig;
},*/
/**
* The name representing a dummy image which is automatically created
* and stored at the defined path. The dummy image can then be used