summaryrefslogtreecommitdiffstats
path: root/install.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-03-02 12:14:58 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-03-02 12:14:58 +0100
commite9e9e635b337dc46111cdf95ccb16b7d28deb849 (patch)
treec69c6e12c48f71306cf54640b24b8c133f793090 /install.php
parentea8471781ee26f79c3835e68b31353601e78d0a8 (diff)
Add imagemagick support
Adds additional support for imagemagick if GD doesn't support a file type and extends the files displayed as thumbnails to all images and pdf files. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'install.php')
-rw-r--r--install.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/install.php b/install.php
index 437a71123..3d486d911 100644
--- a/install.php
+++ b/install.php
@@ -68,6 +68,14 @@ if ($buf != "0") {
$errors .= " - Error when testing qrencode: Return code was \"$buf\".\n";
}
+// test imagemagick
+ob_start();
+passthru("convert --version 2>&1", $buf);
+ob_end_clean();
+if ($buf != "0") {
+ $errors .= " - Error when testing imagemagick (convert): Return code was \"$buf\".\n";
+}
+
// test PHP modules
$mod_groups = array(
"thumbnail generation" => array("gd"),