mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
make svg preview backend work with encryption
This commit is contained in:
parent
f78e002096
commit
62411965f9
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue