diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-10-25 16:13:50 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-10-28 17:48:43 +0200 |
commit | 36317896513ce229938d3cba96d32db19d2510d2 (patch) | |
tree | 5897796dc942200e8fb7fd02b2d8672573917bf2 /lib/private/Preview/SVG.php | |
parent | df4e6bab6938287e7c0a876bdeacb7e0d8617723 (diff) | |
download | nextcloud-server-36317896513ce229938d3cba96d32db19d2510d2.tar.gz nextcloud-server-36317896513ce229938d3cba96d32db19d2510d2.zip |
Fix resource usages in OC_Image
This makes sure using resource or GdImage (PHP>=8) behaves the same.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Preview/SVG.php')
-rw-r--r-- | lib/private/Preview/SVG.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Preview/SVG.php b/lib/private/Preview/SVG.php index cee0f341716..690a6b50ffe 100644 --- a/lib/private/Preview/SVG.php +++ b/lib/private/Preview/SVG.php @@ -69,7 +69,7 @@ class SVG extends ProviderV2 { //new image object $image = new \OC_Image(); - $image->loadFromData($svg); + $image->loadFromData((string) $svg); //check if image object is valid if ($image->valid()) { $image->scaleDownToFit($maxX, $maxY); |