Skip to content
Snippets Groups Projects
Unverified Commit 9147a12e authored by Jan-Christoph Borchardt's avatar Jan-Christoph Borchardt Committed by Roeland Jago Douma
Browse files

Reduce text size of text file preview, fix #13720

parent 68c0fd38
No related branches found
No related tags found
No related merge requests found
...@@ -60,8 +60,9 @@ class TXT extends Provider { ...@@ -60,8 +60,9 @@ class TXT extends Provider {
$lines = preg_split("/\r\n|\n|\r/", $content); $lines = preg_split("/\r\n|\n|\r/", $content);
$fontSize = $maxX ? (int) ((5 / 32) * $maxX) : 5; //5px // Define text size of text file preview
$lineSize = ceil($fontSize * 1.25); $fontSize = $maxX ? (int) ((2 / 32) * $maxX) : 5; //5px
$lineSize = ceil($fontSize * 1.5);
$image = imagecreate($maxX, $maxY); $image = imagecreate($maxX, $maxY);
imagecolorallocate($image, 255, 255, 255); imagecolorallocate($image, 255, 255, 255);
......
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