diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-12-18 08:36:30 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-12-18 08:36:30 +0100 |
commit | 86dccffff94c063194838905bb59aedf51c954aa (patch) | |
tree | 9a281ed196624376a5c94fc226d5205b9bcd4ae2 /lib/private/Preview | |
parent | ac045a2461c3532d6c6ca6c33033871b1b0e1dc1 (diff) | |
download | nextcloud-server-86dccffff94c063194838905bb59aedf51c954aa.tar.gz nextcloud-server-86dccffff94c063194838905bb59aedf51c954aa.zip |
Fix Office preview generation
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Preview')
-rw-r--r-- | lib/private/Preview/Office.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/Office.php b/lib/private/Preview/Office.php index af6a2ef89f8..bdf8c528135 100644 --- a/lib/private/Preview/Office.php +++ b/lib/private/Preview/Office.php @@ -60,7 +60,7 @@ abstract class Office extends ProviderV2 { $pngPreview = null; try { list($dirname, , , $filename) = array_values(pathinfo($absPath)); - $pngPreview = $dirname . '/' . $filename . '.png'; + $pngPreview = $tmpDir . '/' . $filename . '.png'; $png = new \imagick($pngPreview . '[0]'); $png->setImageFormat('jpg'); |