make svg preview backend work with encryption

This commit is contained in:
Georg Ehrke 2013-05-27 11:09:55 +02:00
parent f78e002096
commit 62411965f9

View file

@ -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('<?xml version="1.0" encoding="UTF-8" standalone="no"?>' . $fileview->file_get_contents($path));
$svg->setImageFormat('jpg');
//new image object