aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/PreviewManager.php
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2020-11-16 22:16:34 +0100
committerJulius Härtl <jus@bitgrid.net>2022-03-17 08:24:07 +0100
commit9b6a1cc8ae41807e98f9c4155b6241d3f1f7e470 (patch)
treed12fa75ce3b16519a01cd8c06ec998b0acf86d81 /lib/private/PreviewManager.php
parent4cdc8900f7325d38056060b355e8f25b79b96413 (diff)
downloadnextcloud-server-9b6a1cc8ae41807e98f9c4155b6241d3f1f7e470.tar.gz
nextcloud-server-9b6a1cc8ae41807e98f9c4155b6241d3f1f7e470.zip
Send images to imaginary docker to generate previews
Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-Authored-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'lib/private/PreviewManager.php')
-rw-r--r--lib/private/PreviewManager.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/PreviewManager.php b/lib/private/PreviewManager.php
index 18d4427d346..6c17dd58b4b 100644
--- a/lib/private/PreviewManager.php
+++ b/lib/private/PreviewManager.php
@@ -387,6 +387,7 @@ class PreviewManager implements IPreview {
$this->registerCoreProvider(Preview\Krita::class, '/application\/x-krita/');
$this->registerCoreProvider(Preview\MP3::class, '/audio\/mpeg/');
$this->registerCoreProvider(Preview\OpenDocument::class, '/application\/vnd.oasis.opendocument.*/');
+ $this->registerCoreProvider(Preview\Imaginary::class, Preview\Imaginary::supportedMimeTypes());
// SVG, Office and Bitmap require imagick
if (extension_loaded('imagick')) {