use readImage instead of readImageBlob

This commit is contained in:
Georg Ehrke 2013-09-23 16:00:14 +02:00 committed by Morris Jobke
parent d410faf11c
commit f81053072f
1 changed files with 1 additions and 2 deletions

View 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();