Fix Office preview generation

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-12-18 08:36:30 +01:00 committed by Backportbot
parent f6941a831c
commit 3d02121db3

View file

@ -56,7 +56,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');