mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
Merge pull request #9661 from matthias-g/patch-2
Explain preview_max_memory configuration parameter
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user