summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-04-07 16:45:16 +0200
committerOlivier Paroz <github@oparoz.com>2015-04-07 16:45:59 +0200
commit74bf9806b0fd17c82a5d3048d03a8dc735a2ce04 (patch)
treeb3ac9346a0d6c3ec30edc5e99cccd9c6598be655 /config
parent2182ae0d278f466e7f117b03bf4ebca0e6e9fe9b (diff)
downloadnextcloud-server-74bf9806b0fd17c82a5d3048d03a8dc735a2ce04.tar.gz
nextcloud-server-74bf9806b0fd17c82a5d3048d03a8dc735a2ce04.zip
Introducing the maximum size preview
The first time we're asked to generate a preview we'll generate one of the maximum dimension indicated in the configuration and all future resizing requests will be done on that preview in order to not waste time converting the same file over and over. One of the fixes required for #12465
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/config.sample.php b/config/config.sample.php
index 60932ab7d9b..29f7c2ad55a 100644
--- a/config/config.sample.php
+++ b/config/config.sample.php
@@ -620,12 +620,12 @@ $CONFIG = array(
* The maximum width, in pixels, of a preview. A value of ``null`` means there
* is no limit.
*/
-'preview_max_x' => null,
+'preview_max_x' => 2048,
/**
* The maximum height, in pixels, of a preview. A value of ``null`` means there
* is no limit.
*/
-'preview_max_y' => null,
+'preview_max_y' => 2048,
/**
* If a lot of small pictures are stored on the ownCloud instance and the
* preview system generates blurry previews, you might want to consider setting