From e9e9e635b337dc46111cdf95ccb16b7d28deb849 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 2 Mar 2015 12:14:58 +0100 Subject: 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 --- install.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'install.php') 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"), -- cgit v1.2.3-24-g4f1b