Scale up the font on larger previews
This commit is contained in:
parent
1a894bd0d8
commit
1592f25ed0
|
@ -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 New Issue