mirror of
https://github.com/mosbth/cimage.git
synced 2025-08-26 17:14:27 +02:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
3b16b4b79d | ||
|
4e940164f9 | ||
|
1943d6606b | ||
|
5eebaa66ce | ||
|
c5cc0314c2 |
@@ -1,6 +1,6 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2012 - 2014 Mikael Roos, me@mikaelroos.se
|
||||
Copyright (c) 2012 - 2016 Mikael Roos, https://mikaelroos.se, mos@dbwebb.se
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
THE SOFTWARE.
|
||||
|
@@ -46,14 +46,14 @@ There are several ways of installing. You either install the whole project which
|
||||
|
||||
The [sourcode is available on GitHub](https://github.com/mosbth/cimage). Clone, fork or [download as zip](https://github.com/mosbth/cimage/archive/master.zip).
|
||||
|
||||
**Latest stable version is v0.7.9 released 2015-12-07.**
|
||||
**Latest stable version is v0.7.10 released 2016-04-01.**
|
||||
|
||||
I prefer cloning like this. Do switch to the latest stable version.
|
||||
|
||||
```bash
|
||||
git clone git://github.com/mosbth/cimage.git
|
||||
cd cimage
|
||||
git checkout v0.7.9
|
||||
git checkout v0.7.10
|
||||
```
|
||||
|
||||
Make the cache-directory writable by the webserver.
|
||||
@@ -76,7 +76,7 @@ There are some all-included bundles of `img.php` that can be downloaded and used
|
||||
Dowload the version of your choice like this.
|
||||
|
||||
```bash
|
||||
wget https://raw.githubusercontent.com/mosbth/cimage/v0.7.9/webroot/imgp.php
|
||||
wget https://raw.githubusercontent.com/mosbth/cimage/v0.7.10/webroot/imgp.php
|
||||
```
|
||||
|
||||
Open up the file in your editor and edit the array `$config`. Ensure that the paths to the image directory and the cache directory matches your environment, or create an own config-file for the script.
|
||||
|
@@ -5,6 +5,12 @@ Revision history
|
||||
[](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)
|
||||
-------------------------------------
|
||||
|
||||
|
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
$version = "v0.7.9* (2015-12-07)";
|
||||
$version = "v0.7.11 (2016-04-18)";
|
||||
|
||||
// For CRemoteImage
|
||||
define("CIMAGE_USER_AGENT", "CImage/$version");
|
||||
@@ -699,8 +699,8 @@ $useOriginal = getDefined(array('skip-original', 'so'), false, true);
|
||||
$useOriginalDefault = getConfig('skip_original', false);
|
||||
|
||||
if ($useOriginalDefault === true) {
|
||||
verbose("use original is default ON");
|
||||
$useOriginal = true;
|
||||
verbose("skip original is default ON");
|
||||
$useOriginal = false;
|
||||
}
|
||||
|
||||
verbose("use original = $useOriginal");
|
||||
|
@@ -10,6 +10,15 @@ return array(
|
||||
/**
|
||||
* 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:
|
||||
* 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:
|
||||
* 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
|
||||
* 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.
|
||||
* ascii-options:
|
||||
|
@@ -3817,7 +3817,7 @@ class CCache
|
||||
*
|
||||
*/
|
||||
|
||||
$version = "v0.7.9* (2015-12-07)";
|
||||
$version = "v0.7.11 (2016-04-18)";
|
||||
|
||||
// For CRemoteImage
|
||||
define("CIMAGE_USER_AGENT", "CImage/$version");
|
||||
@@ -4508,8 +4508,8 @@ $useOriginal = getDefined(array('skip-original', 'so'), false, true);
|
||||
$useOriginalDefault = getConfig('skip_original', false);
|
||||
|
||||
if ($useOriginalDefault === true) {
|
||||
verbose("use original is default ON");
|
||||
$useOriginal = true;
|
||||
verbose("skip original is default ON");
|
||||
$useOriginal = false;
|
||||
}
|
||||
|
||||
verbose("use original = $useOriginal");
|
||||
|
@@ -3817,7 +3817,7 @@ class CCache
|
||||
*
|
||||
*/
|
||||
|
||||
$version = "v0.7.9* (2015-12-07)";
|
||||
$version = "v0.7.11 (2016-04-18)";
|
||||
|
||||
// For CRemoteImage
|
||||
define("CIMAGE_USER_AGENT", "CImage/$version");
|
||||
@@ -4508,8 +4508,8 @@ $useOriginal = getDefined(array('skip-original', 'so'), false, true);
|
||||
$useOriginalDefault = getConfig('skip_original', false);
|
||||
|
||||
if ($useOriginalDefault === true) {
|
||||
verbose("use original is default ON");
|
||||
$useOriginal = true;
|
||||
verbose("skip original is default ON");
|
||||
$useOriginal = false;
|
||||
}
|
||||
|
||||
verbose("use original = $useOriginal");
|
||||
|
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user