diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-09-23 16:00:14 +0200 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-10-07 13:19:21 +0200 |
commit | f81053072ffcbb0346f9a7cebb1585718df0f6f0 (patch) | |
tree | 60f57064d8cbf150e7feb97f630b4adc545c7f56 /lib/private/preview | |
parent | d410faf11c57172bdf9d618a71e4aaf9640867c0 (diff) | |
download | nextcloud-server-f81053072ffcbb0346f9a7cebb1585718df0f6f0.tar.gz nextcloud-server-f81053072ffcbb0346f9a7cebb1585718df0f6f0.zip |
use readImage instead of readImageBlob
Diffstat (limited to 'lib/private/preview')
-rw-r--r-- | lib/private/preview/unknown.php | 3 |
1 files changed, 1 insertions, 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(); |