summaryrefslogtreecommitdiffstats
path: root/lib/preview.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-07-14 00:00:10 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-07-14 00:00:10 +0200
commit1303fe0f9fe7c67764fb48cbb84fcb30e4a32b33 (patch)
treee7e69fa0e4b44868e5401c9d42d4366ecc1e83be /lib/preview.php
parentc834d93e8778bbbe008c992e6fab5250296ec216 (diff)
downloadnextcloud-server-1303fe0f9fe7c67764fb48cbb84fcb30e4a32b33.tar.gz
nextcloud-server-1303fe0f9fe7c67764fb48cbb84fcb30e4a32b33.zip
OC\Preview - set scale factor down to 2 and upscale cached preview - this got lost in a git stash ...
Diffstat (limited to 'lib/preview.php')
-rwxr-xr-xlib/preview.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/preview.php b/lib/preview.php
index 08c0b7e20d0..03aaaceb9ca 100755
--- a/lib/preview.php
+++ b/lib/preview.php
@@ -60,7 +60,7 @@ class Preview {
//set config
$this->configMaxX = \OC_Config::getValue('preview_max_x', null);
$this->configMaxY = \OC_Config::getValue('preview_max_y', null);
- $this->maxScaleFactor = \OC_Config::getValue('preview_max_scale_factor', 10);
+ $this->maxScaleFactor = \OC_Config::getValue('preview_max_scale_factor', 2);
//save parameters
$this->setFile($file);
@@ -377,6 +377,7 @@ class Preview {
if($cached) {
$image = new \OC_Image($this->userview->file_get_contents($cached, 'r'));
$this->preview = $image->valid() ? $image : null;
+ $this->resizeAndCrop();
}
if(is_null($this->preview)) {