Thumbnailing alternative: convert (command line ImageMagick instead of PHP bindings)

This commit is contained in:
Michael Save
2012-03-17 10:32:50 +11:00
parent d531487bad
commit 4c3486bec9
2 changed files with 47 additions and 4 deletions

View File

@@ -102,7 +102,7 @@
// Use a persistent connection (experimental)
$config['db']['persistent'] = false;
// Anything more to add to the DSN string (eg. port=xxx;foo=bar)
$config['db']['dsn'] = '';
$config['db']['dsn'] = 'charset=UTF-8';
// Timeout duration in seconds (not all drivers support this)
$config['db']['timeout'] = 5;
@@ -363,6 +363,9 @@
// Use Imagick instead of GD (some further config options below are ignored if set)
$config['imagick'] = false;
// Use the command line version of ImagickMagick rather than the PHP bindings.
$config['imagick_convert'] = false;
// Regular expression to check for IE MIME type detection XSS exploit. To disable, comment the line out
// https://github.com/savetheinternet/Tinyboard/issues/20
$config['ie_mime_type_detection'] = '/<(?:body|head|html|img|plaintext|pre|script|table|title|a href|channel|scriptlet)/i';