From: Georg Ehrke Date: Mon, 27 May 2013 09:09:55 +0000 (+0200) Subject: make svg preview backend work with encryption X-Git-Tag: v6.0.0alpha2~235^2~144 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=62411965f9ccfbe66584e91bc325d156e08196d2;p=nextcloud-server.git make svg preview backend work with encryption --- diff --git a/lib/preview/svg.php b/lib/preview/svg.php index 12b93f696ea..8f4697dce04 100644 --- a/lib/preview/svg.php +++ b/lib/preview/svg.php @@ -13,7 +13,8 @@ class OC_Preview_SVG extends OC_Preview_Provider{ public function getThumbnail($path,$maxX,$maxY,$scalingup,$fileview) { $svg = new Imagick(); - $svg->readImageBlob($fileview->file_get_contents($path)); + $svg->setResolution($maxX, $maxY); + $svg->readImageBlob('' . $fileview->file_get_contents($path)); $svg->setImageFormat('jpg'); //new image object