diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-01-11 13:35:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-11 13:35:56 +0100 |
commit | c47406ad3cc1606d7357af6c32c4fa7dd0ac53a7 (patch) | |
tree | 77f9931990cd270451f9f738e14bb852704f26f2 /config | |
parent | b23934a45ec584e398835635584461a02c9b1dde (diff) | |
parent | d3d65e5c889fc3922efc7a8c764027763bc4764f (diff) | |
download | nextcloud-server-c47406ad3cc1606d7357af6c32c4fa7dd0ac53a7.tar.gz nextcloud-server-c47406ad3cc1606d7357af6c32c4fa7dd0ac53a7.zip |
Merge pull request #30291 from nextcloud/image-memory-limit
Prevent loading images that would require too much memory.
Diffstat (limited to 'config')
-rw-r--r-- | config/config.sample.php | 10 |
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 * * |