Skip to content

Commit 74bf980

Browse files
committed
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
1 parent 2182ae0 commit 74bf980

File tree

3 files changed

+319
-138
lines changed

3 files changed

+319
-138
lines changed

config/config.sample.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,12 +620,12 @@
620620
* The maximum width, in pixels, of a preview. A value of ``null`` means there
621621
* is no limit.
622622
*/
623-
'preview_max_x' => null,
623+
'preview_max_x' => 2048,
624624
/**
625625
* The maximum height, in pixels, of a preview. A value of ``null`` means there
626626
* is no limit.
627627
*/
628-
'preview_max_y' => null,
628+
'preview_max_y' => 2048,
629629
/**
630630
* If a lot of small pictures are stored on the ownCloud instance and the
631631
* preview system generates blurry previews, you might want to consider setting

0 commit comments

Comments
 (0)