Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-01-11 15:35:56 +0300
committerGitHub <noreply@github.com>2022-01-11 15:35:56 +0300
commitc47406ad3cc1606d7357af6c32c4fa7dd0ac53a7 (patch)
tree77f9931990cd270451f9f738e14bb852704f26f2 /config/config.sample.php
parentb23934a45ec584e398835635584461a02c9b1dde (diff)
parentd3d65e5c889fc3922efc7a8c764027763bc4764f (diff)
Merge pull request #30291 from nextcloud/image-memory-limit
Prevent loading images that would require too much memory.
Diffstat (limited to 'config/config.sample.php')
-rw-r--r--config/config.sample.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index 0211d08676a..3eadbc61290 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -1044,6 +1044,16 @@ $CONFIG = [
'preview_max_filesize_image' => 50,
/**
+ * max memory for generating image previews with imagegd (default behavior)
+ * Reads the image dimensions from the header and assumes 32 bits per pixel.
+ * If creating the image would allocate more memory, preview generation will
+ * be disabled and the default mimetype icon is shown. Set to -1 for no limit.
+ *
+ * Defaults to ``128`` megabytes
+ */
+'preview_max_memory' => 128,
+
+/**
* custom path for LibreOffice/OpenOffice binary
*
*