Skip to content

Commit 8d65d46

Browse files
committed
imaginary small details
Signed-off-by: jameskimmel <[email protected]> add pdf Signed-off-by: jameskimmel <[email protected]>
1 parent ce559e5 commit 8d65d46

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

admin_manual/installation/server_tuning.rst

+17-7
Original file line numberDiff line numberDiff line change
@@ -223,18 +223,28 @@ Nextcloud to use Imaginary by editing your `config.php`:
223223
224224
<?php
225225
'enabledPreviewProviders' => [
226-
'OC\Preview\MP3',
227-
'OC\Preview\TXT',
228-
'OC\Preview\MarkDown',
229-
'OC\Preview\OpenDocument',
230-
'OC\Preview\Krita',
231226
'OC\Preview\Imaginary',
227+
'OC\Preview\ImaginaryPDF',
232228
],
233-
'preview_imaginary_url' => 'http://<url of imaginary>',
229+
'preview_imaginary_url' => 'http://<url of imaginary>:9000',
230+
231+
Adding OC\Preview\Imaginary will enable previews for these types:
232+
image/bmp
233+
image/x-bitmap
234+
image/png
235+
image/jpeg
236+
image/gif
237+
image/heic
238+
image/heif
239+
image/svg+xml
240+
image/tiff
241+
image/webp
242+
application/illustrator
243+
application/pdf
234244

235245
.. warning::
236246

237-
Make sure to start Imaginary with the `-return-size` command line parameter. Otherwise, there will be a minor performance impact. The flag requires a recent version of Imaginary (newer than v1.2.4) and is by default added to the `aio-imaginary` container.
247+
If you are not using your custom docker image, make sure to start Imaginary with the `-return-size` command line parameter. Otherwise, there will be a minor performance impact. The flag requires a recent version of Imaginary (newer than v1.2.4).
238248
Also make sure to add the capability `SYS_NICE` via `--cap-add=sys_nice` or `cap_add: - SYS_NICE` as it is required by imaginary to generate HEIC previews.
239249

240250
.. note::

0 commit comments

Comments
 (0)