Skip to content

Commit

Permalink
Introducing the maximum size preview
Browse files Browse the repository at this point in the history
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
  • Loading branch information
oparoz committed Apr 7, 2015
1 parent 2182ae0 commit 74bf980
Show file tree
Hide file tree
Showing 3 changed files with 319 additions and 138 deletions.
4 changes: 2 additions & 2 deletions config/config.sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -620,12 +620,12 @@
* The maximum width, in pixels, of a preview. A value of ``null`` means there
* is no limit.
*/
'preview_max_x' => null,
'preview_max_x' => 2048,
/**
* The maximum height, in pixels, of a preview. A value of ``null`` means there
* is no limit.
*/
'preview_max_y' => null,
'preview_max_y' => 2048,
/**
* If a lot of small pictures are stored on the ownCloud instance and the
* preview system generates blurry previews, you might want to consider setting
Expand Down
Loading

0 comments on commit 74bf980

Please sign in to comment.