mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-01 05:50:12 +02:00
Add option for skip_original to config file to always skip original, #118.
This commit is contained in:
@@ -5,6 +5,12 @@ Revision history
|
|||||||
[](https://scrutinizer-ci.com/g/mosbth/cimage/build-status/master)
|
[](https://scrutinizer-ci.com/g/mosbth/cimage/build-status/master)
|
||||||
|
|
||||||
|
|
||||||
|
v0.7.11 (2016-04-18)
|
||||||
|
-------------------------------------
|
||||||
|
|
||||||
|
* Add option for `skip_original` to config file to always skip original, #118.
|
||||||
|
|
||||||
|
|
||||||
v0.7.10 (2016-04-01)
|
v0.7.10 (2016-04-01)
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$version = "v0.7.10 (2016-04-01)";
|
$version = "v0.7.11 (2016-04-18)";
|
||||||
|
|
||||||
// For CRemoteImage
|
// For CRemoteImage
|
||||||
define("CIMAGE_USER_AGENT", "CImage/$version");
|
define("CIMAGE_USER_AGENT", "CImage/$version");
|
||||||
@@ -699,8 +699,8 @@ $useOriginal = getDefined(array('skip-original', 'so'), false, true);
|
|||||||
$useOriginalDefault = getConfig('skip_original', false);
|
$useOriginalDefault = getConfig('skip_original', false);
|
||||||
|
|
||||||
if ($useOriginalDefault === true) {
|
if ($useOriginalDefault === true) {
|
||||||
verbose("use original is default ON");
|
verbose("skip original is default ON");
|
||||||
$useOriginal = true;
|
$useOriginal = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
verbose("use original = $useOriginal");
|
verbose("use original = $useOriginal");
|
||||||
|
@@ -10,6 +10,15 @@ return array(
|
|||||||
/**
|
/**
|
||||||
* Set mode as 'strict', 'production' or 'development'.
|
* Set mode as 'strict', 'production' or 'development'.
|
||||||
*
|
*
|
||||||
|
* development: Development mode with verbose error reporting. Option
|
||||||
|
* &verbose and &status enabled.
|
||||||
|
* production: Production mode logs all errors to file, giving server
|
||||||
|
* error 500 for bad usage. Option &verbose and &status
|
||||||
|
* disabled.
|
||||||
|
* strict: Strict mode logs few errors to file, giving server error
|
||||||
|
* 500 for bad usage. Stripped from comments and spaces.
|
||||||
|
* Option &verbose and &status disabled.
|
||||||
|
*
|
||||||
* Default values:
|
* Default values:
|
||||||
* mode: 'production'
|
* mode: 'production'
|
||||||
*/
|
*/
|
||||||
@@ -20,7 +29,7 @@ return array(
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Where are the sources for the classfiles.
|
* Where are the sources for the class files.
|
||||||
*
|
*
|
||||||
* Default values:
|
* Default values:
|
||||||
* autoloader: null // used from v0.6.2
|
* autoloader: null // used from v0.6.2
|
||||||
@@ -153,6 +162,18 @@ return array(
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set skip-original to true to always process the image and use
|
||||||
|
* the cached version. Default is false and to use the original
|
||||||
|
* image when its no processing needed.
|
||||||
|
*
|
||||||
|
* Default value:
|
||||||
|
* skip_original: false
|
||||||
|
*/
|
||||||
|
//'skip_original' => true,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A function (hook) can be called after img.php has processed all
|
* A function (hook) can be called after img.php has processed all
|
||||||
* configuration options and before processing the image using CImage.
|
* configuration options and before processing the image using CImage.
|
||||||
@@ -394,7 +415,7 @@ return array(
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* default options for ascii image.
|
* Default options for ascii image.
|
||||||
*
|
*
|
||||||
* Default values as specified below in the array.
|
* Default values as specified below in the array.
|
||||||
* ascii-options:
|
* ascii-options:
|
||||||
|
Reference in New Issue
Block a user