Add Imaginary settings for previews

Signed-off-by: JanisPlayer <54918417+JanisPlayer@users.noreply.github.com>
This commit is contained in:
JanisPlayer
2023-09-04 22:41:44 +02:00
committed by GitHub
parent 554f3bf399
commit bd0f23f34b

View File

@@ -196,3 +196,27 @@ Nextcloud to use Imaginary by editing your `config.php`:
.. note::
For large instance, you should follow `Imaginary's scalability recommandation <https://github.com/h2non/imaginary#scalability>`.
Settings:
^^^^^^^^^^^^^^^^^^^^^
If you want set the preview format for imaginary.
You can change between jpeg and webp, the default is jpeg:
::
<?php
'preview_format' => 'webp',
If you want set a api key for imaginary':
::
<?php
'preview_imaginary_key' => 'secret',
Default WebP quality setting for preview images is '80'. Change this with:
::
occ config:app:set preview webp_quality --value="30"