From f81053072ffcbb0346f9a7cebb1585718df0f6f0 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Mon, 23 Sep 2013 16:00:14 +0200 Subject: [PATCH] use readImage instead of readImageBlob --- lib/private/preview/unknown.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/private/preview/unknown.php b/lib/private/preview/unknown.php index fa2d4980a8f..59667a77523 100644 --- a/lib/private/preview/unknown.php +++ b/lib/private/preview/unknown.php @@ -22,11 +22,10 @@ class Unknown extends Provider { if (extension_loaded('imagick')) { $path = substr_replace($path, 'svg', -3); - $content = file_get_contents($path); $svg = new \Imagick(); $svg->setBackgroundColor(new \ImagickPixel('transparent')); - $svg->readImageBlob($content); + $svg->readImage($path); $svg->setImageFormat('png32'); $image = new \OC_Image(); -- 2.39.5