aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/preview
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-09-30 10:49:48 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-09-30 10:49:48 +0200
commit1051a3c6f5891e703a15225e12bbb9417755a860 (patch)
tree42309f8969042a29e2274e1b3d89da5a97dc322b /lib/private/preview
parentdb79ba547aaf4e3c8ab732aece11f8d738ebad95 (diff)
downloadnextcloud-server-1051a3c6f5891e703a15225e12bbb9417755a860.tar.gz
nextcloud-server-1051a3c6f5891e703a15225e12bbb9417755a860.zip
Change small thumbnails to 32 px
* fixes #16913 * fixes issues in IE8 where the thumbnail is too big
Diffstat (limited to 'lib/private/preview')
-rw-r--r--lib/private/preview/txt.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/preview/txt.php b/lib/private/preview/txt.php
index 0bba570a8c9..2fdc86d9546 100644
--- a/lib/private/preview/txt.php
+++ b/lib/private/preview/txt.php
@@ -53,7 +53,7 @@ class TXT extends Provider {
$lines = preg_split("/\r\n|\n|\r/", $content);
- $fontSize = ($maxX) ? (int) ((5 / 36) * $maxX) : 5; //5px
+ $fontSize = ($maxX) ? (int) ((5 / 32) * $maxX) : 5; //5px
$lineSize = ceil($fontSize * 1.25);
$image = imagecreate($maxX, $maxY);