]> source.dussan.org Git - nextcloud-server.git/commit
Fix preview generation for office documents 30971/head
authorJonas Meurer <jonas@freesources.org>
Wed, 2 Feb 2022 10:57:17 +0000 (11:57 +0100)
committerJonas Meurer <jonas@freesources.org>
Wed, 2 Feb 2022 11:02:04 +0000 (12:02 +0100)
commit418473be4b3a15c5345768acb9cee43362ba3419
tree6dfa2d8e760ec451fce35f54010d7aa2194c46cf
parent4ea9050328c76eb3ab71b1f6c59b3c194e077a0b
Fix preview generation for office documents

`new \imagick()` returns an object, but we need the image blob (binary
string) from this object.

This is a partial backport of #26531, which brings a lot of refactoring
but also contains the fix.

Fixes: #29956
Signed-off-by: Jonas Meurer <jonas@freesources.org>
lib/private/Preview/Office.php