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
parent ac045a2461
commit 86dccffff9
No known key found for this signature in database
GPG key ID: F941078878347C0C

View 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');