we better use 5MB (1024 * 1024 * 5 = 5242880) instead of 1MB.

in some cases 1MB was no enough to generate thumbnail
This commit is contained in:
Thomas Müller 2013-11-22 12:23:22 +01:00
parent c22019dec5
commit 14e7075030
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,9 @@ if (!\OC_Util::runningOnWindows()) {
$handle = $fileview->fopen($path, 'rb');
$firstmb = stream_get_contents($handle, 1048576); //1024 * 1024 = 1048576
// we better use 5MB (1024 * 1024 * 5 = 5242880) instead of 1MB.
// in some cases 1MB was no enough to generate thumbnail
$firstmb = stream_get_contents($handle, 5242880);
file_put_contents($absPath, $firstmb);
if (self::$avconvBinary) {