Browse Source

Merge pull request #590 from hrniels/diagnostics-imagick

Added warning if Imagick is not installed/enabled.
Tobias Reich 7 years ago
parent
commit
c7c0ff4fb2
1 changed files with 4 additions and 0 deletions
  1. 4 0
      plugins/Diagnostics/index.php

+ 4 - 0
plugins/Diagnostics/index.php

@@ -99,6 +99,10 @@ if (empty(ini_get('allow_url_fopen'))) echo('Warning: You may experience problem
 // Check mysql version
 if ($database->server_version<50500) echo('Warning: Lychee uses the GBK charset to avoid sql injections on your MySQL version. Please update to MySQL 5.5 or higher to enable UTF-8 support.' . PHP_EOL);
 
+// Check imagick
+if (!extension_loaded('imagick')) echo('Warning: Pictures that are rotated lose their metadata! Please install Imagick to avoid that.' . PHP_EOL);
+else if (!$settings['imagick']) echo('Warning: Pictures that are rotated lose their metadata! Please enable Imagick in settings to avoid that.' . PHP_EOL);
+
 // Output
 if ($error==='') echo('No critical problems found. Lychee should work without problems!' . PHP_EOL);
 else             echo $error;