summaryrefslogtreecommitdiffstats
path: root/lib/image.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-15 13:21:35 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-15 13:22:05 +0200
commit825d8610d0abbf1063df3019533253908142ae43 (patch)
treebe4e2cf9b808976d9ffa6cabebff7917eacb79db /lib/image.php
parent7fe9320ffe60d9f8346f424a235bbc51c99f9484 (diff)
downloadnextcloud-server-825d8610d0abbf1063df3019533253908142ae43.tar.gz
nextcloud-server-825d8610d0abbf1063df3019533253908142ae43.zip
fix svg and cache transparency issue
Diffstat (limited to 'lib/image.php')
-rw-r--r--lib/image.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/image.php b/lib/image.php
index 4bc38e20e56..53ffb24d18c 100644
--- a/lib/image.php
+++ b/lib/image.php
@@ -496,6 +496,9 @@ class OC_Image {
return false;
}
$this->resource = @imagecreatefromstring($str);
+ imagealphablending($this->resource, false);
+ imagesavealpha($this->resource, true);
+
if(!$this->resource) {
OC_Log::write('core', 'OC_Image->loadFromData, couldn\'t load', OC_Log::DEBUG);
return false;