summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-30 15:47:34 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-30 15:47:34 +0200
commit1d8c10cf638fb954d1cc20c47ad46e697a18e9e4 (patch)
tree5936d721dc868e799594978133e0bc63905b6413 /lib
parenteeac6e2ab17bb9bfd94c51e8e026daa25ef3a033 (diff)
parent1051a3c6f5891e703a15225e12bbb9417755a860 (diff)
downloadnextcloud-server-1d8c10cf638fb954d1cc20c47ad46e697a18e9e4.tar.gz
nextcloud-server-1d8c10cf638fb954d1cc20c47ad46e697a18e9e4.zip
Merge pull request #19468 from owncloud/fix-36-vs-32-previews
Change small thumbnails to 32 px
Diffstat (limited to 'lib')
-rw-r--r--lib/private/helper.php4
-rw-r--r--lib/private/preview/txt.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index b8e4b451835..dcd263daa24 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -193,11 +193,11 @@ class OC_Helper {
* Returns the path to the preview of the file.
*/
public static function previewIcon($path) {
- return self::linkToRoute( 'core_ajax_preview', array('x' => 36, 'y' => 36, 'file' => $path ));
+ return self::linkToRoute( 'core_ajax_preview', array('x' => 32, 'y' => 32, 'file' => $path ));
}
public static function publicPreviewIcon( $path, $token ) {
- return self::linkToRoute( 'core_ajax_public_preview', array('x' => 36, 'y' => 36, 'file' => $path, 't' => $token));
+ return self::linkToRoute( 'core_ajax_public_preview', array('x' => 32, 'y' => 32, 'file' => $path, 't' => $token));
}
/**
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);