]> source.dussan.org Git - nextcloud-server.git/commitdiff
use readImage instead of readImageBlob
authorGeorg Ehrke <developer@georgehrke.com>
Mon, 23 Sep 2013 14:00:14 +0000 (16:00 +0200)
committerMorris Jobke <morris.jobke@gmail.com>
Mon, 7 Oct 2013 11:19:21 +0000 (13:19 +0200)
lib/private/preview/unknown.php

index fa2d4980a8f96741479ff918de75588a93c2a556..59667a7752323034e9533b8c13b1de0190cc20c8 100644 (file)
@@ -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();