]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix Office preview generation 18456/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 18 Dec 2019 07:36:30 +0000 (08:36 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 18 Dec 2019 07:36:30 +0000 (08:36 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/Preview/Office.php

index af6a2ef89f897e4cbdf684aaa1114160f9aaa488..bdf8c52813589e043716cdc0798b84da7161664a 100644 (file)
@@ -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');