Merge pull request #9661 from matthias-g/patch-2

Explain preview_max_memory configuration parameter
This commit is contained in:
Ferdinand Thiessen
2024-11-13 19:01:25 +01:00
committed by GitHub

View File

@@ -107,3 +107,18 @@ Default JPEG quality setting for preview images is '80'. Change this with:
::
occ config:app:set preview jpeg_quality --value="60"
Maximum memory for image generation:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
By default, Nextcloud generates image previews using the GD Graphics Library.
This configuration option limits the amount of memory that is allowed for preview generation.
If creating the preview image would allocate more memory than the limit,
preview generation will be disabled and the default mimetype icon is shown.
Default limit is 256 MB. Set to ``-1`` for no limit.
::
<?php
'preview_max_memory' => 256,