Skip to content

Commit 6f1219c

Browse files
authored
Merge pull request #18475 from nextcloud/backport/18456/stable17
[stable17] Fix Office preview generation
2 parents 678cbd5 + 3d02121 commit 6f1219c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Preview/Office.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
5656
$pngPreview = null;
5757
try {
5858
list($dirname, , , $filename) = array_values(pathinfo($absPath));
59-
$pngPreview = $dirname . '/' . $filename . '.png';
59+
$pngPreview = $tmpDir . '/' . $filename . '.png';
6060

6161
$png = new \imagick($pngPreview . '[0]');
6262
$png->setImageFormat('jpg');

0 commit comments

Comments
 (0)