git.cweiske.de
/
surrogator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
314a7c5
)
explain configuration options
author
Christian Weiske
<cweiske@cweiske.de>
Fri, 17 Aug 2012 20:05:33 +0000
(22:05 +0200)
committer
Christian Weiske
<cweiske@cweiske.de>
Fri, 17 Aug 2012 20:05:33 +0000
(22:05 +0200)
data/surrogator.config.php.dist
patch
|
blob
|
history
diff --git
a/data/surrogator.config.php.dist
b/data/surrogator.config.php.dist
index c7eef0b26eac95a35c88486d34f1082c26870f3c..23a1e8ab74f68a288a28408f06f1219d9017997f 100644
(file)
--- a/
data/surrogator.config.php.dist
+++ b/
data/surrogator.config.php.dist
@@
-1,10
+1,46
@@
<?php
<?php
+/**
+ * Directory where you source image files live
+ */
$rawDir = __DIR__ . '/../raw/';
$rawDir = __DIR__ . '/../raw/';
-$resDir = __DIR__ . '/../res/';
+
+/**
+ * Directory in which all the image files get generated into.
+ * You could put that to /var/cached/avatars/ or so
+ */
$varDir = __DIR__ . '/../var/';
$varDir = __DIR__ . '/../var/';
+
+/**
+ * Document root of the web server host.
+ */
$wwwDir = __DIR__ . '/../www/';
$wwwDir = __DIR__ . '/../www/';
+
+/**
+ * Directory of default resource files.
+ * You probably do not want to change that.
+ */
+$resDir = __DIR__ . '/../res/';
+
+/**
+ * Array of image sizes to generate.
+ * Needs to be in ascending order.
+ */
$sizes = array(16, 32, 48, 64, 80, 96, 128, 256, 512);
$sizes = array(16, 32, 48, 64, 80, 96, 128, 256, 512);
+
+/**
+ * Maximum image size supported by the server
+ */
$maxSize = 512;
$maxSize = 512;
-$logLevel = 1;//0 - nothing, 3 - high
+
+/**
+ * Default log level. 0 for no logging, 1 for important messages, 3 for all
+ */
+$logLevel = 1;
+
+/**
+ * By default, images are only generated if their source file (in raw/)
+ * is newer than the generated square file. If you set $forceUpdate
+ * to true, the images will always be regenerated.
+ */
$forceUpdate = false;
?>
$forceUpdate = false;
?>