Merge pull request #18456 from nextcloud/fix/office/previews
Fix Office preview generation
This commit is contained in:
commit
34c48aaa92
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue