Merge pull request #7731 from nextcloud/preview_size_inc

Max preview size to 4096x4096
This commit is contained in:
Jan-Christoph Borchardt 2018-01-09 11:07:02 +01:00 committed by GitHub
commit 9386b07ed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -849,16 +849,16 @@ $CONFIG = array(
* The maximum width, in pixels, of a preview. A value of ``null`` means there * The maximum width, in pixels, of a preview. A value of ``null`` means there
* is no limit. * is no limit.
* *
* Defaults to ``2048`` * Defaults to ``4096``
*/ */
'preview_max_x' => 2048, 'preview_max_x' => 4096,
/** /**
* The maximum height, in pixels, of a preview. A value of ``null`` means there * The maximum height, in pixels, of a preview. A value of ``null`` means there
* is no limit. * is no limit.
* *
* Defaults to ``2048`` * Defaults to ``4096``
*/ */
'preview_max_y' => 2048, 'preview_max_y' => 4096,
/** /**
* max file size for generating image previews with imagegd (default behavior) * max file size for generating image previews with imagegd (default behavior)

View File

@ -168,8 +168,8 @@ class Generator {
continue; continue;
} }
$maxWidth = (int)$this->config->getSystemValue('preview_max_x', 2048); $maxWidth = (int)$this->config->getSystemValue('preview_max_x', 4096);
$maxHeight = (int)$this->config->getSystemValue('preview_max_y', 2048); $maxHeight = (int)$this->config->getSystemValue('preview_max_y', 4096);
$preview = $this->helper->getThumbnail($provider, $file, $maxWidth, $maxHeight); $preview = $this->helper->getThumbnail($provider, $file, $maxWidth, $maxHeight);