OC\Preview - set scale factor down to 2 and upscale cached preview - this got lost in a git stash ...

This commit is contained in:
Georg Ehrke 2013-07-14 00:00:10 +02:00
parent c834d93e87
commit 1303fe0f9f
1 changed files with 2 additions and 1 deletions

View File

@ -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)) {