aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/PreviewManager.php
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-04-05 11:01:40 +0200
committerJulius Härtl <jus@bitgrid.net>2020-04-08 16:31:20 +0200
commit124b109bc8fbe76e7b4ed43b99f36c29022ade97 (patch)
tree2d8042030e470a094bfb69775a8d204a5354ac40 /lib/private/PreviewManager.php
parenta2e671c489528a935c7a4e186188f84ea2b3058e (diff)
downloadnextcloud-server-124b109bc8fbe76e7b4ed43b99f36c29022ade97.tar.gz
nextcloud-server-124b109bc8fbe76e7b4ed43b99f36c29022ade97.zip
Add preview provider for Krita files
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/PreviewManager.php')
-rw-r--r--lib/private/PreviewManager.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/PreviewManager.php b/lib/private/PreviewManager.php
index ab20ccdfbbe..adfc04199e3 100644
--- a/lib/private/PreviewManager.php
+++ b/lib/private/PreviewManager.php
@@ -293,7 +293,8 @@ class PreviewManager implements IPreview {
Preview\GIF::class,
Preview\BMP::class,
Preview\HEIC::class,
- Preview\XBitmap::class
+ Preview\XBitmap::class,
+ Preview\Krita::class,
];
$this->defaultProviders = $this->config->getSystemValue('enabledPreviewProviders', array_merge([
@@ -340,6 +341,7 @@ class PreviewManager implements IPreview {
$this->registerCoreProvider(Preview\GIF::class, '/image\/gif/');
$this->registerCoreProvider(Preview\BMP::class, '/image\/bmp/');
$this->registerCoreProvider(Preview\XBitmap::class, '/image\/x-xbitmap/');
+ $this->registerCoreProvider(Preview\Krita::class, '/application\/x-krita/');
$this->registerCoreProvider(Preview\MP3::class, '/audio\/mpeg/');
$this->registerCoreProvider(Preview\OpenDocument::class, '/application\/vnd.oasis.opendocument.*/');