diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-08-15 13:21:35 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-08-15 13:22:05 +0200 |
commit | 825d8610d0abbf1063df3019533253908142ae43 (patch) | |
tree | be4e2cf9b808976d9ffa6cabebff7917eacb79db /lib/image.php | |
parent | 7fe9320ffe60d9f8346f424a235bbc51c99f9484 (diff) | |
download | nextcloud-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.php | 3 |
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; |