make svg preview backend work with encryption

remotes/origin/stable6
Georg Ehrke 12 years ago
parent f78e002096
commit 62411965f9
  1. 3
      lib/preview/svg.php

@ -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

Loading…
Cancel
Save