Skip to content

Commit

Permalink
Merge pull request #30971 from nextcloud/backport/stable22/office_pre…
Browse files Browse the repository at this point in the history
…view

Fix preview generation for office documents
  • Loading branch information
CarlSchwan authored Feb 2, 2022
2 parents 4ea9050 + 418473b commit 464f996
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Preview/Office.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
}

$image = new \OC_Image();
$image->loadFromData($png);
$image->loadFromData((string) $png);

$this->cleanTmpFiles();
unlink($pngPreview);
Expand Down

0 comments on commit 464f996

Please sign in to comment.