mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
use readImage instead of readImageBlob
This commit is contained in:
parent
d410faf11c
commit
f81053072f
1 changed files with 1 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue