Skip to content
Snippets Groups Projects
Unverified Commit e2352cc0 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Max preview size to 4096x4096


With HiDPI screens. And even normal HD screens you want more detail from
your pictures. Or the ability to somewhat zoom on you previews. For this
we need somewhat larger previews.

Moving the default to 4096x4096 is a step up. Users that want the old
behavior can still set the values in config.php

Signed-off-by: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent db7bde6a
No related branches found
No related tags found
No related merge requests found
...@@ -849,16 +849,16 @@ $CONFIG = array( ...@@ -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)
......
...@@ -164,8 +164,8 @@ class Generator { ...@@ -164,8 +164,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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment