mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
Merge pull request #15635 from owncloud/issue/15634-empty-txt-previews
Scale up the font on larger previews
This commit is contained in:
commit
3e8f6cdba9
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ class TXT extends Provider {
|
|||
|
||||
$lines = preg_split("/\r\n|\n|\r/", $content);
|
||||
|
||||
$fontSize = 5; //5px
|
||||
$fontSize = ($maxX) ? (int) ((5 / 36) * $maxX) : 5; //5px
|
||||
$lineSize = ceil($fontSize * 1.25);
|
||||
|
||||
$image = imagecreate($maxX, $maxY);
|
||||
|
|
|
|||
Loading…
Reference in a new issue