aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVarun Patil <varunpatil@ucla.edu>2023-03-24 18:29:18 -0700
committerVarun Patil <varunpatil@ucla.edu>2023-03-24 18:30:37 -0700
commit35ea5025dd0bd69f4613c7c324687fa9af5aba9e (patch)
tree77a0823c5d2d9d03cef6150ab69f9c49b0a07f33
parentc3a39cbc75585243e286c0e99b245373055e114d (diff)
downloadnextcloud-server-35ea5025dd0bd69f4613c7c324687fa9af5aba9e.tar.gz
nextcloud-server-35ea5025dd0bd69f4613c7c324687fa9af5aba9e.zip
check-setup: recommend exif extension
JPEG previews are not correctly oriented when exif is not enabled along with other issues. There's no easy way to discover this either. Signed-off-by: Varun Patil <varunpatil@ucla.edu>
-rw-r--r--apps/settings/lib/Controller/CheckSetupController.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php
index a6f4d7a0d41..82a7e118d06 100644
--- a/apps/settings/lib/Controller/CheckSetupController.php
+++ b/apps/settings/lib/Controller/CheckSetupController.php
@@ -724,6 +724,12 @@ Raw output
$recommendedPHPModules[] = 'sysvsem';
}
+ if (!extension_loaded('exif')) {
+ // used to extract metadata from images
+ // required for correct orientation of preview images
+ $recommendedPHPModules[] = 'exif';
+ }
+
if (!defined('PASSWORD_ARGON2I')) {
// Installing php-sodium on >=php7.4 will provide PASSWORD_ARGON2I
// on previous version argon2 wasn't part of the "standard" extension