aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobiasKaminsky <tobias@kaminsky.me>2021-07-21 09:14:20 +0200
committertobiasKaminsky <tobias@kaminsky.me>2021-07-21 09:14:20 +0200
commitf62ec2b47c233e8da495d61b656047ecd7645764 (patch)
treedf662b697293d72dd698cbec443d473748bf88c4
parent72e620186973454459e8de2972ecde92c9e62756 (diff)
downloadnextcloud-server-f62ec2b47c233e8da495d61b656047ecd7645764.tar.gz
nextcloud-server-f62ec2b47c233e8da495d61b656047ecd7645764.zip
Disable HEIC image preview provider for performance concerns
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
-rw-r--r--config/config.sample.php3
-rw-r--r--lib/private/PreviewManager.php3
2 files changed, 2 insertions, 4 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index 29fe3629806..ffe53238e92 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -1058,6 +1058,7 @@ $CONFIG = [
* concerns:
*
* - OC\Preview\Illustrator
+ * - OC\Preview\HEIC
* - OC\Preview\Movie
* - OC\Preview\MSOffice2003
* - OC\Preview\MSOffice2007
@@ -1075,7 +1076,6 @@ $CONFIG = [
*
* - OC\Preview\BMP
* - OC\Preview\GIF
- * - OC\Preview\HEIC
* - OC\Preview\JPEG
* - OC\Preview\MarkDown
* - OC\Preview\MP3
@@ -1089,7 +1089,6 @@ $CONFIG = [
'OC\Preview\PNG',
'OC\Preview\JPEG',
'OC\Preview\GIF',
- 'OC\Preview\HEIC',
'OC\Preview\BMP',
'OC\Preview\XBitmap',
'OC\Preview\MP3',
diff --git a/lib/private/PreviewManager.php b/lib/private/PreviewManager.php
index d6dc700e4a2..7ae13f01cb8 100644
--- a/lib/private/PreviewManager.php
+++ b/lib/private/PreviewManager.php
@@ -278,7 +278,6 @@ class PreviewManager implements IPreview {
* - OC\Preview\JPEG
* - OC\Preview\GIF
* - OC\Preview\BMP
- * - OC\Preview\HEIC
* - OC\Preview\XBitmap
* - OC\Preview\MarkDown
* - OC\Preview\MP3
@@ -286,6 +285,7 @@ class PreviewManager implements IPreview {
*
* The following providers are disabled by default due to performance or privacy concerns:
* - OC\Preview\Font
+ * - OC\Preview\HEIC
* - OC\Preview\Illustrator
* - OC\Preview\Movie
* - OC\Preview\MSOfficeDoc
@@ -311,7 +311,6 @@ class PreviewManager implements IPreview {
Preview\JPEG::class,
Preview\GIF::class,
Preview\BMP::class,
- Preview\HEIC::class,
Preview\XBitmap::class,
Preview\Krita::class,
Preview\WebP::class,